/* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Ma Shan Zheng', cursive, 'Noto Sans SC', sans-serif;
            background: #A32620;
            color: #F2D07E;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* 背景条纹 */
        .bg-stripes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            background: repeating-linear-gradient(
                45deg,
                rgba(0, 0, 0, 0.1),
                rgba(0, 0, 0, 0.1) 10px,
                transparent 10px,
                transparent 20px
            );
        }

        /* 装饰元素 */
        .decorations {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .decoration {
            position: absolute;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(242, 208, 126, 0.2) 0%, transparent 70%);
            border-radius: 50%;
        }

        .decoration:nth-child(1) {
            top: 10%;
            left: 10%;
        }

        .decoration:nth-child(2) {
            top: 30%;
            right: 15%;
        }

        .decoration:nth-child(3) {
            bottom: 20%;
            left: 20%;
        }

        .decoration:nth-child(4) {
            bottom: 10%;
            right: 10%;
        }

        /* 动态元素容器 */
        .dynamic-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .falling-element {
            position: absolute;
            font-size: 2rem;
            animation: fall linear infinite;
        }

        @keyframes fall {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(calc(100vh + 100px)) rotate(360deg);
                opacity: 0;
            }
        }

        /* 配色方案 */
        :root {
            --primary-red: #A32620;
            --secondary-red: #8B0000;
            --accent-yellow: #F2D07E;
            --accent-gold: #FFD700;
            --text-white: #FFFFFF;
            --text-gray: #CCCCCC;
        }

        /* 顶部导航 */
        .top-nav {
            background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            border-bottom: 3px solid var(--accent-yellow);
            position: relative;
            z-index: 100;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--accent-yellow);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .project-name {
            font-size: 1.2rem;
            color: var(--accent-yellow);
            font-weight: 700;
            letter-spacing: 2px;
        }

        /* 导航菜单 */
        .nav-menu {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-menu li a {
            color: var(--accent-yellow);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 700;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-menu li a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent-yellow);
            transform: translateX(-50%);
            transition: width 0.3s ease;
        }

        .nav-menu li a:hover {
            background: rgba(242, 208, 126, 0.1);
        }

        .nav-menu li a:hover::before {
            width: 80%;
        }

        /* 移动端菜单按钮 */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--accent-yellow);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* 主要内容 */
        main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 3rem 2rem;
            position: relative;
            z-index: 1;
        }

        .section {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(15px);
            border-radius: 15px;
            padding: 2.5rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
            border: 2px solid rgba(242, 208, 126, 0.3);
            position: relative;
            overflow: hidden;
        }

        .section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-yellow) 0%, transparent 100%);
        }

        .section h2 {
            color: var(--accent-yellow);
            font-size: 2.5rem;
            margin-bottom: 2rem;
            border-bottom: 3px solid rgba(242, 208, 126, 0.3);
            padding-bottom: 0.8rem;
            position: relative;
            font-weight: 900;
            letter-spacing: 2px;
        }

        .section h2::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 100px;
            height: 3px;
            background: var(--accent-yellow);
        }

        .section h3 {
            color: var(--accent-yellow);
            font-size: 1.8rem;
            margin: 1.5rem 0;
            font-weight: 800;
        }

        /* 钱包连接 */
        .wallet-connect {
            text-align: center;
            margin-bottom: 2.5rem;
            margin-top: 2.5rem;
        }

        .connect-btn {
            background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-gold) 100%);
            color: var(--primary-red);
            border: none;
            padding: 1.2rem 3rem;
            font-size: 1.3rem;
            font-weight: 800;
            border-radius: 60px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 6px 20px rgba(242, 208, 126, 0.4);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .connect-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(242, 208, 126, 0.6);
        }

        /* 奖池数据 */
        .pool-data {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 2.5rem 0;
        }

        .data-card {
            background: rgba(0, 0, 0, 0.3);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            border: 2px solid rgba(242, 208, 126, 0.4);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .data-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(242, 208, 126, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .data-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-yellow);
            box-shadow: 0 10px 30px rgba(242, 208, 126, 0.3);
        }

        .data-card:hover::before {
            opacity: 1;
        }

        .data-card h4 {
            color: var(--accent-yellow);
            margin-bottom: 1rem;
            font-size: 1.3rem;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .data-value {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--accent-yellow);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        /* 分红倒计时 */
        .countdown {
            text-align: center;
            background: linear-gradient(135deg, rgba(242, 208, 126, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
            padding: 2.5rem;
            border-radius: 20px;
            margin: 2.5rem 0;
            border: 3px solid rgba(242, 208, 126, 0.5);
            box-shadow: 0 10px 30px rgba(242, 208, 126, 0.3);
        }

        .countdown h3 {
            color: var(--accent-yellow);
            margin-bottom: 1.5rem;
            font-size: 2rem;
            font-weight: 900;
        }

        .countdown-timer {
            font-size: 3.5rem;
            font-weight: 900;
            color: var(--accent-yellow);
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
            letter-spacing: 3px;
        }

        /* 分红记录 */
        .dividend-table {
            /*width: 100%;*/
            /*border-collapse: collapse;*/
            /*margin: 2.5rem 0;*/
            /*background: rgba(0, 0, 0, 0.2);*/
            /*border-radius: 15px;*/
            /*overflow: hidden;*/
        }

        .dividend-table th, .dividend-table td {
            padding: 1.2rem;
            text-align: left;
            border-bottom: 1px solid rgba(242, 208, 126, 0.2);
            color: var(--accent-yellow);
        }

        .dividend-table th {
            background: rgba(242, 208, 126, 0.2);
            color: var(--accent-yellow);
            font-weight: 900;
            font-size: 1.1rem;
        }

        .dividend-table tr:last-child td {
            border-bottom: none;
        }

        .dividend-table tr:hover {
            background: rgba(242, 208, 126, 0.05);
        }

        /* 核心玩法讲解 */
        .gameplay-details {
            background: rgba(0, 0, 0, 0.2);
            padding: 2rem;
            border-radius: 15px;
            margin: 2rem 0;
            border-left: 4px solid var(--accent-yellow);
        }

        .gameplay-details h4 {
            color: var(--accent-yellow);
            font-size: 1.4rem;
            margin-bottom: 1rem;
            font-weight: 800;
        }

        .gameplay-details p {
            color: var(--accent-yellow);
            margin: 0.5rem 0;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        /* 底部 */
        footer {
            background: linear-gradient(135deg, var(--secondary-red) 0%, var(--primary-red) 100%);
            padding: 3rem 0;
            text-align: center;
            border-top: 3px solid var(--accent-yellow);
            margin-top: 3rem;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 1;
        }

        .footer-info {
            color: var(--accent-yellow);
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            color: var(--accent-yellow);
            text-decoration: none;
            font-size: 1.3rem;
            font-weight: 700;
            padding: 0.8rem 1.5rem;
            border-radius: 30px;
            transition: all 0.3s ease;
            background: rgba(242, 208, 126, 0.1);
            display: flex;
            align-items: center;
        }

        .social-links a:hover {
            color: var(--primary-red);
            background: var(--accent-yellow);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(242, 208, 126, 0.4);
        }
    
        .icon_img{
            width: 30px;
            margin-right: 10px;
        }
            
        /* 响应式设计 */
        @media (max-width: 768px) {
            .top-nav {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }

            .nav-menu {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .mobile-menu-btn {
                display: block;
            }

            .pool-data {
                grid-template-columns: 1fr;
            }

            .countdown-timer {
                font-size: 2.5rem;
            }

            .logo {
                font-size: 2rem;
            }
        }
        .wallet-connect { text-align: center; margin-top: 50px; }
        /*.connect-btn { padding: 10px 20px; font-size: 16px; cursor: pointer; background: #4CAF50; color: white; border: none; border-radius: 5px; }*/
        .refresh-btn { padding: 5px 10px; font-size: 14px; cursor: pointer; background: #2196F3; color: white; border: none; border-radius: 3px; margin-left: 10px; }
        .result { margin-top: 20px; padding: 15px; border: 1px solid #ccc; border-radius: 5px; max-width: 600px; margin-left: auto; margin-right: auto; }
        .address { word-break: break-all; }
        
        /* 按钮加载状态 */
        .btn-loading {
            opacity: 0.7;
            cursor: not-allowed;
            pointer-events: none;
            position: relative;
            padding-right: 30px; /* 为旋转图标留空间 */
        }
        .btn-loading::after {
            content: "";
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            border: 2px solid transparent;
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            to { transform: translateY(-50%) rotate(360deg); }
        }
        
        /* 刷新按钮基础样式（可选，美化） */
        .refresh-btn {
            padding: 8px 20px;
            font-size: 14px;
            cursor: pointer;
            background: #2196F3;
            color: white;
            border: none;
            border-radius: 30px;
            transition: background 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .refresh-btn:hover {
            background: #0b7dda;
        }
        
 /* 移动端菜单样式 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* 确保按钮显示 */
        position: absolute;
        right: 20px;
        top: 20px;
        background: none;
        border: none;
        color: var(--accent-yellow);
        font-size: 2rem;
        cursor: pointer;
        z-index: 101;
    }
    .nav-menu {
        display: none; /* 默认隐藏 */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* 根据顶部导航高度调整 */
        left: 0;
        background: var(--primary-red);
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 100;
    }
    .nav-menu.active {
        display: flex; /* 点击后显示 */
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
}

/* 签到按钮样式 */
.sign-btn {
    background: #F2D07E;
    color: #A32620;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-size: 1rem;
}
.sign-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sign-btn:not(:disabled):hover {
    background: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(242, 208, 126, 0.5);
}

/* 签到模块 */
.sign-section {
    /*text-align: center;*/
}
.sign-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

/* 圆形签到按钮 */
.sign-btn-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-gold) 100%);
    color: var(--primary-red);
    border: none;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(242, 208, 126, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0 10px;
    position: relative;
    animation: pulse 2s infinite;
}

.sign-btn-circle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.sign-btn-circle:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(242, 208, 126, 0.8);
}

/* 发散动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(242, 208, 126, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(242, 208, 126, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(242, 208, 126, 0.5);
    }
}

/* 如果使用之前定义的 .btn-loading，需要适配圆形按钮 */
.sign-btn-circle.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.sign-btn-circle.btn-loading::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border: 3px solid transparent;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 签到表格滚动容器 */
.sign-table-wrapper {
    max-height: 400px; /* 可根据需要调整高度 */
    overflow-y: auto;
    border: 1px solid rgba(242, 208, 126, 0.2);
    border-radius: 8px;
    margin-top: 1rem;
}

/* 表格宽度占满容器 */
.dividend-table {
    width: 100%;
    border-collapse: collapse;
}

/* 表头固定 */
.dividend-table thead {
    position: sticky;
    top: 0;
    background: var(--primary-red); /* 与页面主背景色一致，防止透出下方内容 */
    z-index: 10;
}

/* 确保表头单元格背景也一致 */
.dividend-table thead th {
    background: var(--primary-red);
    color: var(--accent-yellow);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--accent-yellow);
}

/* 表格行样式 */
.dividend-table tbody td {
    padding: 10px 12px;
    color: var(--accent-yellow);
    border-bottom: 1px solid rgba(242, 208, 126, 0.2);
}

/* 悬停效果 */
.dividend-table tbody tr:hover {
    background: rgba(242, 208, 126, 0.1);
}


/* 自定义滚动条样式（针对Webkit内核浏览器，如Chrome、Edge、Safari） */
.sign-table-wrapper::-webkit-scrollbar {
    width: 8px;                /* 滚动条宽度 */
    height: 8px;               /* 水平滚动条高度 */
}

.sign-table-wrapper::-webkit-scrollbar-track {
    background: rgba(242, 208, 126, 0.1);  /* 轨道背景色：浅金色透明 */
    border-radius: 4px;
}

.sign-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);       /* 滑块使用主金色 */
    border-radius: 4px;
    transition: background 0.2s;
}

.sign-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);          /* 悬停时加深 */
}

/* 针对Firefox的备用样式（支持有限，设置颜色即可） */
.sign-table-wrapper {
    scrollbar-width: thin;                   /* 可选：thin / auto */
    scrollbar-color: var(--accent-yellow) rgba(242, 208, 126, 0.1);
}
        