* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(to right, #e8f5e9, #f5f5f5);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
label{
    margin-bottom: 5px;
    display: inline-block;
}
.container {
    display: flex;
    max-width: 1200px;
    /* border-radius: 20px; */
    overflow: hidden;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
}

.left-section {
    flex: 1;
    padding: 40px;
    /* background: #f8fdf9; */
}
.left-section p{
    color: rgba(0, 0, 0, 0.5);

} 
.right-section {
    flex: 1;
    padding: 40px;
    background: white;
    border-radius: 20px;
}

h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.payment-methods {
    margin-top: 40px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.payment-icons img {
    height: 30px;
    object-fit: contain;
}

.more {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab {
    text-decoration: none;
    padding: 10px 30px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.tab.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.input-group {
    margin-bottom: 20px;
}

.currency-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.currency-input input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
}

.currency-input select {
    padding: 12px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
}

.card-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    z-index: 9999;
}

.buy-button {
    width: 100%;
    padding: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
}

.history-button {
    width: 100%;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.rate-info {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.payment-option:hover {
    border-color: #00b897;
}

.payment-option .option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.payment-option .option-icon img {
    max-width: 100%;
    max-height: 100%;
}

.payment-option span {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.payment-option.bank {
    border-color: #00b897;
} 
.jianbian{
    position: absolute;
    width: 52.9%;
    padding-bottom: 50%;
    left: 0px;
    margin-top: -10%;
    opacity: 0.35;
    transform: rotate(30deg);
    background: rgb(68, 255, 143);
    filter: blur(250px);
    z-index: -1;
}
.jianbian2{
    position: absolute;
    width: 58%;
    padding-bottom: 50%;
    transform: translateX(-50%);
    top: -100px;
    left: 70%;
    opacity: 0.25;
    background: rgb(255, 213, 64);
    filter: blur(400px);
    z-index: -1;
}
.neirong{
    max-width: 1248px;
    width: 100%;
    margin: auto;
    padding: 80px 24px 120px;
    position: relative;
}

select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.currency-input select:disabled {
    opacity: 0.7;
    border-color: #ddd;
}

/* 支付方式下拉菜单样式 */
.payment-method {
    position: relative;
}

.payment-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 80vh;
    overflow-y: auto;
}

.payment-dropdown::-webkit-scrollbar {
    width: 6px;
}

.payment-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.payment-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.payment-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.payment-category {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.payment-category:last-child {
    border-bottom: none;
}

.payment-category h4 {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-method-item:hover {
    background: #f8f8f8;
    border-color: #00b897;
}

.payment-method-item img {
    width: 24px;
    height: 24px;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 14px;
    color: #333;
}

.card-brands {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.card-brands img {
    height: 16px;
    width: auto;
}

/* 添加遮罩层 */
.payment-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 充值模态框样式 */
.recharge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999999999;
    justify-content: center;
    align-items: center;
}

.recharge-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 99999999;
}

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

.recharge-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-recharge {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.recharge-step {
    margin-bottom: 20px;
}

.amount-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.protocol-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
}

.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.wallet-address {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    /* margin: 15px 0; */
    word-break: break-all;
    font-family: monospace;
}

.copy-address {
    background: #00b897;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.copy-address:hover {
    background: #00a67c;
}

.next-step {
    background: #00b897;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.next-step:hover {
    background: #00a67c;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-section {
        padding: 20px;
    }
    #jieshoudefukuanfangshi{
        display: none;
    }
    #title_p2{
        margin-bottom: 30px !important;
    }
    #title_h1{
        font-size: 30px !important;
    }
}
.currency-input{
    align-items: center;
    position: relative;
}
.hb_icon{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 80px;
    border-radius: 50%;
}