/* 全局重置 —— 更小的间隔、更紧凑的字体，保留原有白色基因 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;              /* 顶栏靠顶，不留白 */
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* ---------- 动态线条背景 (极简白底，浅灰线条，柔和动态) ---------- */
.line-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.line-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.dynamic-path {
    stroke: #c8c8cc;
    stroke-width: 0.6;
    fill: none;
    stroke-linecap: round;
    animation: flowMove 18s linear infinite;
}

.dynamic-path-reverse {
    stroke: #d1d1d6;
    stroke-width: 0.5;
    fill: none;
    stroke-linecap: round;
    animation: flowMoveReverse 22s linear infinite;
}

@keyframes flowMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

@keyframes flowMoveReverse {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* ---------- 顶栏 —— 全宽贴合，白色极简，极小间距 (所有尺寸缩减 20%~30%) ---------- */
.top-bar {
    position: relative;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 4px;         /* 上下左右间距压缩 */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
    border-bottom: 0.5px solid #efeff4;
    font-size: 11px;                /* 更小字体 */
    letter-spacing: 0.2px;
    margin-bottom: 2px;              /* 与下方距离减小 */
    max-width: none;
}

.xmod-logo {
    display: flex;
    align-items: center;
    gap: 4px;                       /* 间距缩小 */
}

.logo-icon {
    font-size: 13px;                 /* 之前16px */
    font-weight: 500;
    color: #0a0a0c;
    background: #f8f8fc;
    padding: 3px 6px;                /* 内边距减小 */
    border-radius: 10px;
    border: 0.3px solid #e5e5ea;
}

.logo-text {
    font-size: 11px;                  /* 之前13px */
    font-weight: 460;
    color: #1c1c1e;
    text-transform: uppercase;
}

.top-menu {
    display: flex;
    gap: 12px;                        /* 之前16px */
}

.menu-item {
    font-size: 10px;                   /* 之前12px */
    color: #6c6c70;
    text-decoration: none;
    border-bottom: 0.5px solid transparent;
    padding-bottom: 1px;
}

.menu-item:hover {
    border-bottom-color: #0a0a0c;
    color: #0a0a0c;
}

/* 所有内容放在z-index上层 */
.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;                         /* 之前16px */
    padding: 0 12px 16px;               /* 左右内边距减小 */
    max-width: none;
}

/* ---------- 钱包卡片 —— 明显变大，上半部分 (整体按比例缩小) ---------- */
.wallet-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(1.5px);
    border: 0.5px solid #e5e5ea;
    border-radius: 20px;                /* 之前24px */
    padding: 22px 16px;                  /* 上下32→22，左右24→16 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    margin-top: 2px;                     /* 之前4px */
    max-width: 100%;
}

/* 余额区域 */
.balance-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;                  /* 之前16px */
}

.balance-label {
    font-size: 11px;                      /* 之前13px */
    font-weight: 420;
    letter-spacing: 0.6px;
    color: #6c6c70;
    text-transform: uppercase;
    margin-bottom: 4px;                    /* 之前8px */
}

.balance-amount {
    font-size: 36px;                       /* 之前44px */
    font-weight: 480;
    line-height: 1;
    color: #0a0a0c;
    letter-spacing: -1px;
    margin-bottom: 2px;                     /* 之前6px */
}

.currency-unit {
    font-size: 9px;                         /* 之前11px */
    font-weight: 350;
    color: #8e8e93;
    margin-top: 0px;
    text-transform: lowercase;
}

/* 充值按钮 */
.recharge-btn {
    display: block;
    width: 100%;
    background: #0a0a0c;
    border: none;
    border-radius: 40px;
    padding: 8px 12px;                      /* 之前12px 16px */
    color: white;
    font-size: 13px;                         /* 之前15px */
    font-weight: 460;
    line-height: 1.2;
    letter-spacing: 1px;                     /* 略减 */
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;                          /* 之前10px */
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.recharge-btn:hover {
    background: #2c2c2e;
}

.recharge-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* ---------- 历史充值记录区域 —— 暂无充值记录，极简白 (缩小间距和字体) ---------- */
.history-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(1px);
    border: 0.5px solid #ececf0;
    border-radius: 16px;                     /* 之前20px */
    padding: 12px 12px;                       /* 上下18→12，左右18→12 */
    margin-bottom: 4px;                        /* 之前8px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    max-width: 100%;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;                        /* 之前12px */
    border-bottom: 0.5px dashed #dcdce0;
    padding-bottom: 4px;                        /* 之前8px */
}

.history-title {
    font-size: 11px;                            /* 之前13px */
    font-weight: 500;
    color: #1c1c1e;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.history-more {
    font-size: 9px;                              /* 之前10px */
    color: #8e8e93;
    text-decoration: none;
    border-bottom: 0.5px solid #c1c1c8;
    line-height: 1.2;
}

/* 暂无记录样式 —— 完全按照要求，不显示任何添加记录 (间距压缩) */
.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0 10px;                        /* 之前24px 0 20px */
    color: #a5a5af;
}

.empty-icon {
    font-size: 20px;                              /* 之前24px */
    margin-bottom: 4px;                            /* 之前8px */
    opacity: 0.5;
}

.empty-text {
    font-size: 11px;                               /* 之前12px */
    font-weight: 380;
    letter-spacing: 0.2px;
    color: #9a9aa2;
    font-style: normal;
}

.empty-hint {
    font-size: 8px;                                 /* 之前9px */
    color: #c1c1c8;
    margin-top: 4px;                                 /* 之前6px */
    text-transform: uppercase;
}

/* 微小脚标 */
.xmod-footer {
    margin-top: 4px;                                  /* 之前8px */
    font-size: 7px;                                   /* 之前8px */
    color: #a1a1ab;
    text-align: center;
    letter-spacing: 0.8px;                            /* 略减 */
    text-transform: uppercase;
    border-top: 0.25px solid #efeff4;
    padding-top: 8px;                                  /* 之前14px */
    width: 100%;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.attribution {
    font-size: 6px;                                     /* 之前7px */
    color: #c6c6c8;
    margin-top: 3px;
}

/* 适配极小屏 (维持比例) */
@media (max-width: 380px) {
    .top-bar {
        padding: 6px 10px 3px;
    }
    .wallet-card {
        padding: 18px 12px;
    }
    .balance-amount {
        font-size: 32px;                               /* 进一步缩小 */
    }
    .history-section {
        padding: 10px 10px;
    }
}

a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: white;           /* 充值链接白色 */
}

/* 顶栏中的菜单链接保持灰色 */
.menu-item, .menu-item:visited, .menu-item:hover, .menu-item:active {
    color: #6c6c70;
}
.menu-item:hover {
    color: #0a0a0c;
}

/* 移除所有可能的最大宽度限制 */
body, .top-bar, .content-wrapper, .wallet-card, .history-section, .xmod-footer {
    max-width: none !important;
}

/* 为了让「查看全部」颜色在未点击时也是灰色，覆盖之前的白色 */
.history-more, .history-more:visited, .history-more:hover, .history-more:active {
    color: #8e8e93 !important;
}