* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

/* Header 样式 */
header {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
    position: relative;
    top: 0;
    z-index: 1000;
    background-color: #fff;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Main Content */
main {
    flex: 1;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fcf3d6 url('../images/natural-paper.png');
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.return-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fcf3d6 url('../images/natural-paper.png');
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.content {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.left-section {
    flex: 1;
}

.right-section {
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #b8860b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.product-card.active {
    border-color: #bdb76b;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.product-card,
.payment-option {
    position: relative;
}

.product-card.active::after,
.payment-option.active::after {
    content: "✓";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #bdb76b;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.yuanbao-image {
    width: 100px;
    height: 70px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 5px;
}

.product-label {
    font-size: 14px;
    color: #666;
}

.custom-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.custom-input:focus {
    outline: none;
    border-color: #bdb76b;
}

.info-box {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #bdb76b;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: bold;
    color: #b8860b;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #bdb76b;
}

.qr-login-section {
    text-align: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f9f9f9;
}

.qr-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.qr-code {
    width: 120px;
    height: 120px;
    border: 3px solid #bdb76b;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

.qr-tip {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.payment-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-option.active {
    border-color: #bdb76b;
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.payment-icon {
    height: 60px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
}

.payment-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


.payment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    /* 间距 */
    margin-top: 20px;
    font-size: 16px;
}

.actual-amount-label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}


.confirm-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #bdb76b 0%, #b8860b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
}

.confirm-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 页脚样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    gap: 20px;
}

footer {
    background-color: #fff;
    color: #000;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.copyright {
    text-align: left;
    font-size: 14px;
    line-height: 24px;
    display: inline-block;
}

.copyright p {
    opacity: 1;
}

.copyright a {
    color: #333;
    text-decoration: none;
    outline: none;
}

/* 元宝信息展示框样式 */
.info-banner {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.yuanbao-info {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border: 2px solid #b8860b;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.2);
}

.yuanbao-info h4 {
    color: #8b4513;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 5px;
}

.yuanbao-info p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 充值提示信息样式 */
.recharge-tips {
    background: #f8f9fa;
    border-top: 3px solid #b8860b;
    margin-top: 40px;
    padding: 30px 0;
}

.tips-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tips-container h3 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    position: relative;
}

.tips-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #b8860b;
    border-radius: 2px;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #b8860b;
}

.tip-item h4 {
    color: #8b4513;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: bold;
}

.tip-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tip-item p:last-child {
    margin-bottom: 0;
}


.success-container {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out;
}

.success-icon::after {
    content: "✓";
    color: white;
    font-size: 48px;
    font-weight: bold;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 32px;
    font-weight: bold;
    color: #52c41a;
    margin-bottom: 20px;
}

.success-message {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 10px;
}

.contact-info {
    background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
    border: 2px solid #ffd666;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-left {
    flex: 1;
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    color: #d48806;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-title::before {
    content: "⚠";
    font-size: 20px;
}

.contact-details {
    font-size: 15px;
    color: #8c6e3d;
    line-height: 1.8;
    text-align: left;
}

.qq-group {
    display: inline-block;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #b8860b;
    margin: 0 3px;
    border: 1px solid #ffd666;
}

.contact-right {
    text-align: center;
}

.qr-code-img {
    width: 140px;
    height: 170px;
    border: 3px solid #bdb76b;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-text {
    font-size: 13px;
    color: #8c6e3d;
    margin-top: 8px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #bdb76b 0%, #b8860b 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.4);
}

.btn-secondary {
    background: white;
    color: #b8860b;
    border: 2px solid #bdb76b;
}

.btn-secondary:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-banner {
        margin-bottom: 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .yuanbao-info {
        padding: 15px;
    }

    .recharge-tips {
        margin-top: 30px;
        padding: 20px 0;
    }

    .tips-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tip-item {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 15px 10px;
    }

    /* 移动端隐藏元宝图片 */
    .product-card .yuanbao-image {
        display: none;
    }

    .qr-login-section {
        display: none;
    }

    /* 调整价格和标签的显示 */
    .product-card .product-price {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .product-card .product-label {
        font-size: 13px;
    }

    /* 调整选中标记位置 */
    .product-card.active::after {
        bottom: 5px;
        right: 5px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
}