header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 64px;
    background: white;
    border-bottom: 1px solid #eee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    gap: 0px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    flex-direction: column;
    font-size: 12px;
    align-items: flex-end;
}

.logo-title{
    font-size: 22px;
    margin-bottom: 0px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.logo-subtitle{
    margin-top: 0px;
    color: rgba(0,0,0,0.4);
}
.main-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    text-decoration: none;
    color: #1a1a1a;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-tag {
    font-size: 12px;
    padding: 2px 4px;
    background: #00b897;
    color: white;
    border-radius: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    width: 200px;
}

.header-btn {
    padding: 8px 16px;
    background: rgba(1, 188, 141, 0.1);
    color: #00b897;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: .3s all;
}

.header-btn img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.header-btn:hover {
    background: rgba(1, 188, 141, 0.2);
}

.user-assets {
    display: flex;
    gap: 16px;
}

.assets-link,
.orders-link,
.support-link {
    text-decoration: none;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.arrow {
    font-size: 12px;
}

.notifications {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4f;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.user-menu img {
    width: 24px;
    height: 24px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.language-switch img {
    width: 24px;
    height: 24px;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.theme-switch img {
    width: 24px;
    height: 24px;
}

.login-btn,
.register-btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
}

.login-btn {
    color: #1a1a1a;
}

.register-btn {
    background: #1a1a1a;
    color: white;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
    border-radius: 50px;
    color: #ff4d4f;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s all;
}

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

.recharge-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.recharge-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}

.close-recharge {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.amount-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.amount-input:focus {
    border-color: #00b897;
}

.protocol-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s;
}

.protocol-select:focus {
    border-color: #00b897;
}

.qr-code-container {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wallet-address-container {
    position: relative;
    /* margin: 16px 0; */
}

.wallet-address {
    background: #f5f5f5;
    padding: 16px;
    padding-right: 40px;
    border-radius: 8px;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    border: 1px dashed #ddd;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.refresh-address {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.refresh-address:hover {
    background: rgba(0, 184, 151, 0.1);
}

.refresh-address svg {
    display: block;
    transition: transform 0.3s ease;
}

.refresh-address.loading {
    pointer-events: none;
    opacity: 0.7;
}

.refresh-address.loading svg {
    animation: refreshSpin 1s linear infinite;
}

.refresh-address:active svg {
    transform: rotate(180deg);
}

.wallet-address.updating {
    opacity: 0;
    transform: translateY(10px);
}

@keyframes refreshSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.copy-address, .next-step {
    background: #00b897;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}
.copy-address {
    background: #00b897;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
.copy-address:hover, .next-step:hover {
    background: #00a67c;
}

/* 客服浮动窗口 */
.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.support-window {
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.support-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-support {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    min-height: 300px;
    max-height: calc(80vh - 180px);
}

.support-input {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.support-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    resize: none;
    height: 80px;
}

.support-input button {
    padding: 12px 24px;
    background: #00b897;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
}

/* 未读消息红点 */
.unread-dot {
    width: 8px;
    height: 8px;
    background: #ff4d4f;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: -4px;
}
.chat-container {
    max-width: 800px;
    margin: 84px auto 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.admin {
    align-items: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.message.user .message-content {
    background: #00b897;
    color: white;
}

.message.admin .message-content {
    background: #f0f0f0;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.chat-input {
    display: flex;
    gap: 12px;
}

.chat-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    resize: none;
    height: 80px;
}

.chat-input button {
    padding: 12px 24px;
    background: #00b897;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: flex-end;
}

.chat-input button:hover {
    background: #00a67c;
}
@media (max-width: 768px) {
    /* .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    } */
    .logo{
        padding-left: 10px;
    }
    .logo-title{
        font-size: 18px;
    }
    .logo-subtitle{
        font-size: 12px;
    }
    .user-assets,.new-tag,#jiaoyi_item{
        display: none;
    }
    .header-left{
        gap: 20px;
        height: 64px;
    }
    .main-nav{
        gap: 10px;
    }
    .main-header{
        padding: 0px 10px 0px 0px;
    }
    .support-link2,.mob_dingdan{
        display: flex !important;
    }

}
@media (max-width: 480px) {
    .main-header{
        padding: 0px 10px 0px 0px;
    }
    .main-nav{
        gap: 10px;
    }
    .header-left{
        gap: 10px;
    }
    .header-right{
        gap: 10px;
    }
    .header-btn,.logout-btn{
        padding: 4px 8px;
        font-size: 12px;
    }
    .container2{
        padding: 0px;
        max-width: 360px;
    }
}
.support-link2,.mob_dingdan{
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,1);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
.support-link2 img,.mob_dingdan img{
    width: 30px;
    height: 30px;
}
.mob_dingdan{
    bottom: 30px;
}
#qrcode{
    margin: 0 auto;
}
#qrcode img{
    margin: 0 auto;
}