        :root {
            --bg-color: #0b1328; /* 极深黑蓝色底 */    
            /* 1. 卡片背景：改为带透明度的深紫黑渐变基础色 */
            /* 建议在 .home-card 中使用 background: var(--card-gradient); */
            --card-bg-start: rgba(15, 12, 41, 0.9);  /* 深蓝黑 */
            --card-bg-end: rgba(48, 0, 72, 0.85);    /* 深紫黑 */
            --card-gradient: linear-gradient(135deg, var(--card-bg-start) 0%, var(--card-bg-end) 100%);
            /* 2. 导航背景：比卡片更深一点的半透紫黑 */
            --nav-bg: rgba(10, 10, 25, 0.8);
            /* 3. 主色：明亮的紫罗兰色（带一点蓝调） */
            --primary-color: rgba(172, 173, 251, 0.9);
            /* 4. 辅色：深邃的霓虹蓝紫 */
            --accent-color: #a855f7;
            --text-main: #e0f7fa;/* 文字颜色 */
            --text-dim: #94a3b8;/* 辅助文字颜色 */
            /* 对应的边框和阴影也建议微调以符合紫蓝色调 */
            --border-color: rgba(168, 85, 247, 0.2);/* 边框颜色 */
            --neon-shadow: 0 0 15px rgba(99, 102, 241, 0.3);/* 紫色霓虹阴影 */
        }


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Saira', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* 科技感背景 */
        .background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: 
                radial-gradient(circle at 50% 50%, #0a192f 0%, #05080a 100%);
        }
        .background::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                              linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(ellipse at center, black, transparent 80%);
            opacity: 0.2;
        }

        .main {
            max-width: 600px;
            margin: 0 auto;
            padding: 12px;
            position: relative;
            padding-bottom: 100px; /* 为底部导航留空 */
        }



        /* 内容板块通用样式 */
        #page-home, #page-dex, #page-mining, #page-node, #page-share {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 16px;
            backdrop-filter: blur(10px);
            animation: fadeIn 0.4s ease-out;
            margin-bottom: 20px;
        }

        h3 {
            color: var(--primary-color);
            font-size: 22px;
            margin-bottom: 20px;
            border-left: 4px solid var(--primary-color);
            padding-left: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        h4 {
            color: var(--text-main);
            margin: 15px 0 10px 0;
            font-size: 18px;
        }

        p {
            color: var(--text-dim);
            font-size: 14px;
            line-height: 1.8;
            margin-bottom: 8px;
        }

        ul {
            list-style: none;
        }

        ul li {
            margin-bottom: 15px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        /* 表单与交互元素 */
        span[id] {
            color: var(--primary-color);
            font-weight: bold;
        }

        button {
            width: 100%;
            padding: 12px;
            margin-top: 15px;
            background: linear-gradient(135deg,#5f1db2,#1e1135, #5f1db2);
            border: solid 1px rgba(172, 173, 251, 0.9);
            border-radius: 8px;
            color: #fff;
            font-weight: bold;
            cursor: pointer;
            transition: 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(178,123,252, 0.5);
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(178,123,252, 0.5);
        }

        hr {
            border: none;
            border-top: 1px solid var(--border-color);
            margin: 20px 0;
        }

        /* 交易池卡片微调 */
        #page-dex > div {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 15px;
        }

        /* 底部导航栏 */
        #nav-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 60px;
            background: rgba(5, 8, 10, 0.95);
            border-top: 1px solid var(--border-color);
            backdrop-filter: blur(15px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }

        .footer {
            text-align: center;
            font-size: 12px;
            color: var(--text-dim);
            margin-top: 20px;
        }

        .pcolor {
            color: var(--primary-color);
        }

        /* 汉堡菜单面板样式 */
        #menu-btn {
            display: flex;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 101;
        }

        #menu-btn span {
            width: 25px;
            height: 2px;
            background: var(--primary-color);
            transition: 0.3s;
        }

        #menu-panel {
            position: fixed;
            top: 50px;
            left: 10px;
            background: var(--nav-bg);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px;
            display: none; /* 默认隐藏 */
            flex-direction: column;
            min-width: 120px;
            box-shadow: var(--neon-shadow);
        }

        #menu-panel a {
            color: var(--text-main);
            text-decoration: none;
            padding: 12px 15px;
            font-size: 14px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        #menu-panel a:last-child {
            border-bottom: none;
        }

        #menu-panel a:hover {
            color: var(--primary-color);
            background: rgba(0, 225, 255, 0.1);
        }

        /* 连接钱包按钮 */
        #conn span, #curent_addr {
            font-size: 12px !important;
            transition: 0.3s;
        }

        #conn:hover span {
            background: var(--primary-color) !important;
            color: #000 !important;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 链接样式 */
        a { color: var(--primary-color); text-decoration: none; }
      
      
      
/* DEX 专属样式 - 类 Uniswap 风格 */
.dex-container {
    max-width: 480px;
    margin: 0 auto;
    background: #0d1117; /* 更深的卡片底色 */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dex-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 4px;
}

.dex-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 12px;
    font-weight: bold;
    color: var(--text-dim);
    transition: 0.3s;
}

.dex-tab.active {
    background: var(--text-dim);
    color: #05080a;
}

.swap-box {
    background: #191b1f;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.swap-box:hover {
    border-color: rgba(0, 225, 255, 0.3);
}

.swap-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.swap-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swap-input-row input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    width: 60%;
    outline: none;
    font-weight: bold;
}

.token-info {
    display: flex;
    align-items: center;
    background: #2c2f36;
    padding: 6px 12px;
    border-radius: 16px;
    gap: 8px;
}

.token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    font-weight: bold;
}

.arrow-divider {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -10px 0;
    z-index: 2;
    position: relative;
}

.arrow-icon-inner {
    background: #191b1f;
    border: 4px solid #0d1117;
    border-radius: 12px;
    padding: 4px;
    color: var(--primary-color);
}

.dex-details {
    padding: 12px;
    font-size: 13px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-dim);
}

/* 售罄前限制样式 */
.limit-box {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
}

.limit-box h5 {
    color: #ffaa00;
    margin-bottom: 4px;
    font-size: 14px;
}

.limit-box p {
    font-size: 12px;
    margin-bottom: 2px;
    color: #ffd480;
}

/* 矿机页面专属样式 */
.mining-card {
    background: rgba(255, 255, 255, 0.03);
    /*border: 1px solid var(--border-color);*/
    border: 1px dashed rgba(110, 0, 255, 0.7);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

/* 3. 增强可见性：给 input-container 一个稍微明显的底色，防止背景穿透 */
.input-container {
    background: rgba(0, 0, 0, 0.5); /* 加深底色 */
    border: 1px solid rgba(0, 225, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    min-height: 50px; /* 给一个保底高度 */
}

.input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

.input-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* 1. 确保输入框在 Flex 布局中不会被挤压成 0 */
.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%; /* 确保整行占满 */
}

.input-row input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    height: 28px;
    flex: 1; /* 重要：让 input 占据剩余所有空间，防止被挤消失 */
    min-width: 0; /* 防止 Flex 容器下的溢出 bug */
    outline: none;
    display: block !important; /* 强制显示 */
    font-weight: bold;
}

/* 2. 移除 number 类型的默认箭头，防止干扰布局 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.max-btn {
    background: rgba(0, 225, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    font-weight: bold;
}

.max-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.mining-info-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.mining-info-row span{
    color: var(--text-main);
}



/* 首页四宫格容器 */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    gap: 15px;
    margin-bottom: 25px;
}

/* 单个卡片样式 */
.home-card {
    background: rgba(16, 24, 32, 0.6);
    border: 1px solid rgba(175, 100, 255, 0.6);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.home-card:hover {
    background: rgba(0, 225, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 225, 255, 0.2);
}

/* 左上角数字标号 */
.card-num {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图标样式 */
.card-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 标题 */
.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}

/* 描述文字 */
.card-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
    padding: 0 5px;
}

/* SVG 图标简单适配 */
.card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}



/* 优化后的样式 */
.share-item {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-height: 44px; /* 设置最小高度 */
}

.share-item p {
    margin: 0;
    flex: 1;
    font-size: 13px;       /* 稍微调小一点字体，更专业 */
    word-break: break-all; /* 强制长地址换行 */
    color: #eee;
    padding-right: 8px;
}
.share-item p span{
    color: #888888;
}

.icon-copy-btn {
    flex-shrink: 0; /* 极其重要：防止按钮在文字多的时候被挤扁 */
    /*background: transparent;*/
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 3px;
    color: #00ff88;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    max-width: 25px;
}


.icon-copy-btn:hover {
    opacity: 0.7;
}

.icon-copy-btn svg {
    display: block;
}


.top_marquee {
    width: 100%;
    /*background: rgba(0, 0, 0, 0.5);*/
    color: #999999;
    font-size: 16px;
    padding: 5px 0;
    overflow: hidden; 
    position: relative;
    white-space: nowrap;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
/* 核心：防止手机端自动放大字体 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
#marquee-content {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    font-size: 16px; /* 确保内容也继承 */
    line-height: 1.2; /* 紧凑一些 */
    visibility: hidden;
}

#marquee-content.active {
    visibility: visible;
    animation: marquee-run 15s linear infinite;
}


/* 针对 iOS 等移动端的兼容性写法 */
@-webkit-keyframes marquee-run {
    0% { -webkit-transform: translateX(100%); }
    100% { -webkit-transform: translateX(-100%); }
}
@keyframes marquee-run {
    0% { transform: translateX(0); } /* 初始位置：就在左侧显示 */
    100% { transform: translateX(-100%); } /* 向左彻底滑出 */
}

@-webkit-keyframes marquee-run {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(-100%); }
}

/* 针对手机端的媒体查询，记得也要带上 animation 名称 */
@media (max-width: 768px) {
    #marquee-content.active {
        animation: marquee-run 10s linear infinite; /* 手机端快一点 */
    }
}





/* SweetAlert2 黑暗模式定制 */
.swal2-popup {
    background: rgba(16, 24, 32, 0.95) !important; /* 深色背景 */
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    /*border: 1px solid rgba(0, 225, 255, 0.3) !important;*/
    border: 1px solid rgba(110, 0, 255, 0.7)!important;
    border-radius: 20px !important;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.2) !important;
}

/* 标题颜色 */
.swal2-title {
    color: #cd9bff !important;
}

/* 内容文字颜色 */
.swal2-html-container {
    color: #e0f7fa !important;
}

/* 确认按钮定制 */
.swal2-confirm {
    /*background: linear-gradient(45deg, rgba(144, 93, 210, 0.9), rgba(181, 125, 255, 0.9)) !important;*/
    background: linear-gradient(135deg,#5f1db2,#1e1135, #5f1db2)!important;
    border: solid 1px rgba(172, 173, 251, 0.9)!important;
    box-shadow: 0 4px 15px rgba(0, 225, 255, 0.3) !important;
    border-radius: 10px !important;
    padding: 10px 30px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* 取消按钮定制 */
.swal2-cancel {
    background: transparent !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 10px !important;
}

/* 加载动画圈颜色 */
.swal2-loader {
    border-color: #ddc2ff transparent #ddc2ff transparent !important;
}

/* 成功/错误图标微调 */
.swal2-icon.swal2-success {
    border-color: #00ff88 !important;
    color: #00ff88 !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #00ff88 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(0, 255, 136, .3) !important;
}


        .price_container {
            width: 100%;
            max-width: 800px;
            background-color: #1a1b1f;
            padding: 8px;
            border-radius: 10px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            margin-top: 0px;
            margin-bottom:10px;
        }
        .price_header {
            margin-bottom: 5px;
            padding-left: 5px;
        }
        .price_header h2 {
            margin: 0;
            font-size: 1.1rem;
            color: #00ff88;
        }
        .price_header span {
            margin: 0;
            font-size: 13px;
            color: #00ff88;
        }
        #status {
            font-size: 0.75rem;
            color: #888;
            margin-top: 5px;
        }
        .chart-wrapper {
            position: relative;
            /* 手机端高度 300px，电脑端 400px */
            height: 200px; 
            width: 100%;
        }
        @media (min-width: 768px) {
            .chart-wrapper { height: 400px; }
        }
