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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: #fff;
    min-height: 100vh;
}

/* 钱包状态 */
.wallet-status {
    height: 1px;
    opacity: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: #f44336;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.status-text {
    margin-right: 10px;
    font-weight: 500;
}

.connect-wallet-btn {
    background-color: white;
    color: #333;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.connect-wallet-btn:hover {
    background-color: #f0f0f0;
}

.connect-wallet-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

.top-content {
    text-align: center;
}
.vip-img {
    width: 24px;
    height: 24px;
}
.vip-title {
    font-size: 32px;
    color: #333;
    font-weight: 500;
    margin-top: -19px;
}

/* 主内容 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content-left {
    flex: 1;
    min-width: 300px;
}

.content-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
}

.main-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin: 30px 0 14px;
}

.subtitle {
    font-size: 1.2rem;
    color: #999;
    line-height: 1.6;
}

/* 货币选项 */
.currency-options {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.currency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: white; */
    padding: 15px 20px;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
    /* transition: transform 0.2s, box-shadow 0.2s; */
    border-top: 1px solid #ededed;
    
}
.currency-item:last-child {
    border-bottom: 1px solid #ededed;
}

.currency-info {
    display: flex;
    align-items: center;
}

.currency-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    margin-right: 10px;
    font-weight: bold;
    color: #333;
    border: 2px solid #eee;
}

.currency-name {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
}

.connect-btn {
    background-color: white!important;
    color: #333 !important;
    border: 1px solid #ddd!important;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.connect-btn:hover {
    background-color: #f5f5f5;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.hidden {
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

.contract-address {
    font-family: monospace;
    background-color: #f5f8ff;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #d0d7e9;
    color: #1890ff;
    font-weight: bold;
}

.contract-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
}

.contract-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #888;
}

.notice {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 10px;
    border-radius: 4px;
    color: #d48806;
    font-size: 0.9rem;
    margin-top: 15px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background-color: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.modal-btn-cancel {
    background-color: #e74c3c;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 1rem;
    }
    
    .content-left, .content-right {
        flex: 100%;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .wallet-status {
        position: relative;
        top: 0;
        right: 0;
        /* margin-bottom: 20px; */
        width: 100%;
        justify-content: space-between;
    }
    
    .container {
        padding: 15px;
    }

    
    .currency-logo {
        width: 30px;
        height: 30px;
    }
}

/* 为各个币种添加特定颜色 */
.currency-item[data-currency="USDT"] .currency-logo {
    background-color: #26A17B;
    color: white;
}

.currency-item[data-currency="USDC"] .currency-logo {
    background-color: #2775CA;
    color: white;
}

.currency-item[data-currency="ETH"] .currency-logo {
    background-color: #627EEA;
    color: white;
}

.currency-item[data-currency="WBTC"] .currency-logo {
    background-color: #F7931A;
    color: white;
}

.currency-item[data-currency="BNB"] .currency-logo {
    background-color: #F3BA2F;
    color: white;
}

.currency-item[data-currency="DAI"] .currency-logo {
    background-color: #F4B731;
    color: white;
}

.currency-item[data-currency="BUSD"] .currency-logo {
    background-color: #F0B90B;
    color: white;
}

.currency-item[data-currency="LINK"] .currency-logo {
    background-color: #2A5ADA;
    color: white;
}

.currency-item[data-currency="AAVE"] .currency-logo {
    background-color: #2EBAC6;
    color: white;
}

.currency-item[data-currency="SHIB"] .currency-logo {
    background-color: #E42D04;
    color: white;
} 

.connect-btn.loading {
    opacity: 0.7;
    position: relative;
}
.connect-btn.loading::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 10px;
    height: 10px;
    border: 1px solid #1890ff;
    border-top: 1px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}