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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区 */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* 支付表单 */
.payment-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.payment-form h2 {
    color: #4a5568;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* 金额选项 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

@media (max-width: 576px) {
    .amount-options {
        grid-template-columns: 1fr;
    }
}

.amount-option {
    position: relative;
}

.amount-option input[type="radio"] {
    display: none;
}

.amount-option label {
    display: block;
    padding: 20px 15px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-option input[type="radio"]:checked + label {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.amount-option label .amount {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.amount-option label .coins {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 支付方式 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-method input[type="radio"]:checked + label {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.payment-method label i {
    font-size: 1.5rem;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* 订单信息 */
.order-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.order-info h3 {
    color: #4a5568;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.order-info span {
    font-weight: bold;
    color: #2d3748;
}

/* 支付二维码 */
.payment-qrcode {
    margin: 25px 0;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}

.payment-qrcode img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

/* 支付状态 */
.payment-status {
    margin: 25px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.status-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a5568;
}

/* 取消按钮 */
.btn-cancel {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 说明区域 */
.instructions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.instructions h3 {
    color: #4a5568;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    list-style: none;
}

.instructions li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.instructions li:last-child {
    border-bottom: none;
}

.instructions li i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px;
    background: #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 30px;
}

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

.fa-spin {
    animation: pulse 1.5s infinite;
}

/* 成功状态 */
.status-success {
    color: #48bb78;
}

.status-error {
    color: #e53e3e;
}

.status-pending {
    color: #ed8936;
}

/* 支付链接样式 */
.manual-payment-link {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.payment-link {
    color: #667eea;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #667eea;
    transition: all 0.3s;
}

.payment-link:hover {
    background-color: #667eea;
    color: white;
    text-decoration: none;
}

.payment-link-container {
    margin: 25px 0;
    text-align: center;
}

.payment-link-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.payment-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.payment-link-btn:active {
    transform: translateY(0);
}

.payment-link-btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.qrcode-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}