/* 顶部导航栏样式（新版） */
.top-header {
    width: 100%;
    /*height: 80px; !* ✔ 增加头部高度：你可改为 70/90/100px *!*/
    padding: 0 20px;
    background-color: #0f3460;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ✔ 让内容靠左对齐 */
    gap: 50px; /* ✔ 控制 logo 与菜单之间的距离，可按需要调整 */
    border-bottom: 1px solid #30475e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 左侧 Logo 区域 */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    width: 45px;   /* ✔ 更大 Logo 适应更高的头部 */
    height: 45px;
    border-radius: 5px;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    color: #4ecca3;
}

/* 菜单栏靠左 */
.header-menu {
    display: flex;
    gap: 25px;
}

.header-menu a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 18px;
    transition: .3s;
}

.header-menu a:hover {
    color: #4ecca3;
}

/* 登录注册 / 用户信息 */
.header-right {
    margin-left: auto; /* ✔ 将登录按钮推到最右边 */
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-btn {
    color: #4ecca3;
    text-decoration: none;
    font-weight: bold;
}

.auth-btn:hover {
    color: #e6e6e6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6e6e6;
}

.logout {
    cursor: pointer;
    color: #e84545;
}

.logout:hover {
    color: #ff6666;
}


/*内容*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #e6e6e6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    display: flex;
    height: 90vh;
    padding: 20px;
    gap: 20px;
}

.chart-container {
    width: 75%;
    height: 100%;
    background-color: #16213e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #30475e;
}

.currency-pair {
    font-size: 24px;
    font-weight: bold;
    color: #4ecca3;
}

.price-info {
    display: flex;
    gap: 20px;
}

.price {
    font-size: 18px;
}

.price.up {
    color: #4ecca3;
}

.price.down {
    color: #e84545;
}

.timeframe-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.timeframe-btn {
    padding: 8px 15px;
    background-color: #30475e;
    border: none;
    border-radius: 5px;
    color: #e6e6e6;
    cursor: pointer;
    transition: all 0.3s;
}

.timeframe-btn:hover {
    background-color: #4ecca3;
    color: #16213e;
}

.timeframe-btn.active {
    background-color: #4ecca3;
    color: #16213e;
    font-weight: bold;
}

.chart-wrapper {
    flex: 1;
    position: relative;
}

.notifications-container {
    width: 25%;
    height: 100%;
    background-color: #16213e;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-header {
    padding: 15px;
    background-color: #30475e;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #30475e;
    border-radius: 5px;
    border-left: 4px solid #4ecca3;
}

.notification.warning {
    border-left-color: #e84545;
}

.notification.info {
    border-left-color: #4ecca3;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #8f8f8f;
    text-align: right;
}

.disclaimer {
    background-color: #0f3460;
    color: #8f8f8f;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #16213e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #30475e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ecca3;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .chart-container, .notifications-container {
        width: 100%;
    }

    .chart-container {
        height: 70vh;
    }

    .notifications-container {
        height: 30vh;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #8f8f8f;
}

.recharge-btn {
    margin-right: 14px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #4ecca3, #2ecc71);
    border: none;
    border-radius: 500px;   /* 四个角完全圆 */
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(78, 204, 163, 0.35);
    transition: all 0.25s ease;
}

.recharge-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 18px rgba(78, 204, 163, 0.55);
}

.recharge-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 8px rgba(78, 204, 163, 0.3);
}

.recharge-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.pay-card {
    background: #1a1a2e;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.pay-card img {
    width: 48px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 8px;
}

.pay-card span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e6e6e6;
}

.pay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.pay-card.active {
    border-color: #4ecca3;
    background: linear-gradient(135deg, #1f3c3a, #16213e);
    box-shadow: 0 0 0 2px rgba(78,204,163,0.35),
                0 10px 28px rgba(78,204,163,0.25);
}

.pay-card .amount {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #4ecca3;
    letter-spacing: 0.5px;
}

.pay-card.active .amount {
    color: #ffffff;
}

.pay-card .points {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #f6c343;   /* 金色 = 奖励 */
}

.pay-card.active .points {
    color: #ffffff;
}