body {  
    font-family: Arial, sans-serif;  
    margin: 0;  
    padding: 0;  
    background-color: #f4f4f4;  
    height: 100vh;
}  

* {  
    box-sizing: border-box;  
    margin: 0;  
    padding: 0;  
}  


header {  
    /* 在该颜色增加透明度 */
    background-color: #333;  
    color: white;
    position: fixed; /* 固定在顶部 */ 
    top: 0; /* 距离顶部距离 */  
    z-index: 1000;
    height: 50px; /* 高度 */  
    width: 100%; /* 宽度占满整个屏幕 */  
}  

.navbar {  
    display: flex;  
    justify-content: space-between;  
    align-items: start;  
}  

.logo {  
    font-size: 1.5rem; 
    display: flex; 
    align-items: middle;
    white-space: nowrap;
    overflow: hidden;
}  

/* 默认菜单样式 */  
.nav-links {  
    list-style: none;  
    display: flex;  
    margin-left: auto; /* 将菜单项推到右边 */  
    
}  

.nav-links .nav-item {  
    margin: 0 1rem;  
    /*超长显示省略号*/
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}  

.nav-links a {  
    color: white;  
    text-decoration: none;  
    padding: 0.5rem 1rem;  
    transition: background 0.3s;
    
}  

.nav-links a:hover {  
    background-color: #575757;  
    border-radius: 4px;  
}  

.toggle {  
    display: none; /* 默认隐藏，手机时会显示 */  
    font-size: 2rem;  
    cursor: pointer;
    color: blue;
}  

/* 设置视频的样式 */  
.video-background {  
    position: relative; /* 让子元素绝对定位 */  
    width: 100%;  
    height: 100%;  
    overflow: hidden; /* 防止溢出 */
}  

/* 视频样式 */  
.video-background video {  
    position: absolute;  
    top: 50%;  
    left: 50%;  
    min-width: 100%;  
    min-height: 100%;  
    width: auto;  
    height: auto;  
    z-index: -1000; /* 背景设置在底层 */  
    transform: translate(-50%, -50%); /* 居中 */  
    object-fit: cover; /* 确保视频覆盖整个 div */  
} 
/* 横向屏幕样式 */
@media (orientation: landscape) {
    .image-item{
        flex: 1 1 calc(50% - 20px);
    }
    .token-item{
        flex: 1 1 calc(30% - 20px);
        margin-top: 0.5rem;
    }
    .dialog{
        top: 50%;  
    left: 50%;  
    width: 70%; 
    transform: translate(-50%, -50%);   
    }
    /* .gameInput{
        font-size: 1rem;width: 8rem;text-align: center;margin-left: 1rem;
    } */
    
    .numberDiv{
        font-size: 1rem;display: inline-block;width: 5rem;
        height: 2rem;line-height: 2rem;text-align: center;
        border: 1px solid #ccc;border-radius: 5px;margin-left: 1rem;
    }
}

/* 縱向屏幕样式 */  
@media (orientation: portrait){  
    .nav-links {  
        position: absolute;  
        top: 60px; /* 导航栏高度 */  
        right:  0;  
        width: 40%; /* 设置菜单宽度 */  
        background-color: #333;
        line-height: 40px;  
        flex-direction: column;  
        display: none; /* 默认隐藏菜单 */  
        padding: 1rem 0; /* 增加内边距 */  

    }  

    .nav-links .nav-item {  
        text-align: center; /* 让链接靠左对齐 */  
        margin: 0; /* 手机上去掉横向间距 */
        /* 禁止换行*/
        white-space: nowrap;  
    }  

    .toggle {  
        display: block; /* 手机上显示切换菜单按钮 */  
    }  
    .div-image {  
        height: 40%;
    }
    .div-other {  
        height: 60%;
    }
    .dialog{
        top: 20%;  
    left: 2%;  
    width: 96%;   
    }


    .image-item {  
        /* flex: 1 1 100%;   */
        flex: 1 1 calc(100% - 20px);
    }
    .token-item{
        flex: 1 1 calc(100% - 20px);
        margin-top: 0.5rem;
        
    }

    /* .gameInput{
        font-size: 1rem;width: 8rem;text-align: center;
    } */
    
    .numberDiv{
        font-size: 1rem;display: inline-block;width: 16%;
        height: 2rem;line-height: 2rem;text-align: center;
        border: 1px solid #ccc;border-radius: 5px;margin-left: 0.2rem;
    }
    
    
}  

.amount-btn {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.amount-input {
    flex: 1;
    padding: 10px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.active {  
    display: flex; /* 激活状态显示菜单 */  
}

.container {  
    max-width: 1200px;  
    margin: 0 auto;  
    height: 100%;
    overflow-y: auto; /* 允许页面内容滚动 */  
}  

h1 {  
    text-align: center;  
    margin-bottom: 20px;  
    color: #333;  
}  

.image-list {  
    list-style-type: none;  
    padding: 0;  
    display: flex;  
    flex-wrap: wrap;  
    justify-content: space-between;  
}  

.image-item {  
    margin: 10px;
    background: rgba(128, 128, 128, 0.5);  
    color: white;
    border-radius: 8px;  
    overflow: hidden;  
    text-align: center;  
    /* padding: 2rem;   */
    line-height: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    font-size: lighter;
}  
.token-item {  
    margin: 10px;
    border-radius: 4px;
    /* 手型光标   */
    
}
.product-desc{
    text-align: left;
}

.image-item img {  
    width: 100%;  
    height: auto;  
}  

.image-item p {  
    margin: 10px;  
    color: #666;  
}  

.div-image {  
    height: 50%;
}
.div-other {  
    height: 50%;
}
.copy-icon {  
    margin-right: 5px; /* 图标与文本间距 */  
    cursor: pointer; /* 手指光标 */ 
} 
.copied{
    font-size: 14px;
}



/* 保留原有 CSS，添加以下样式 */  

footer {  
    background-color: #333; /* 背景颜色 */  
    color: white; /* 字体颜色 */  
    text-align: center; /* 文本居中 */  
    padding: 1rem; /* 内边距 */  
    position: fixed; /* 固定在底部 */   
    bottom: 0; /* 保持在页面底部 */  
    left: 0;  
    z-index: 10000; /* 保持在最底层 */  
    width: 100%; /* 宽度占满页面 */  
    height: 50px; /* 高度 */  
}  

main {  
    flex: 1;
    overflow-y: hidden; /* 允许页面内容滚动 */  
    margin-top: 50px; /* 顶部导航栏高度 */  
} 

.price {  
    font-size: 18px;  
    font-weight: bold;  
    margin: 10px 0;  
}  

.buy-btn {  
    background-color:#007bff;   
    color: white;  
    border: none;  
    padding: 10px 15px;  
    cursor: pointer;  
    border-radius: 5px;  
    transition: background-color 0.3s;  
    max-height: 3rem;
    max-width: 10rem;
    font-size: large;
    white-space: nowrap;
}  

.buy-btn:hover {  
    background-color: #218838;   
} 

body.locked {  
    overflow: hidden; /* 锁定背景滚动 */  
}  

/* 模态框背景 */  
.modal {  
    display: none; /* 默认隐藏 */  
    position:fixed;  
    top: 0;  
    left: 0;
    width: 100%;  
    height: 100%;  
    background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */  
    justify-content: center;  
    align-items: center;  
}  
/* 固定模态框高度*/
.dialog {  
    position: fixed;  

    /* min-height: 70%; */
    /* height: 50%; /* 最大高度    */
    min-height: 70vh; /* 最小高度为视口的70% */
    max-height: 70vh; /* 最大高度也为70%，防止内容过多时撑高 */
     
    background-color: white;   
    border-radius: 5px;  
    z-index: 1000;  
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    overflow: hidden;
}  

/* 模态框内容 */  
.modal-content {  
    background-color: white;  
    padding: 5px;  
    border-radius: 8px;  
    width: 100%; /* 宽度 */
}  

.notification {  
    position: absolute; /* 绝对定位 */  
    top: 5px; /* 上边距 */  
    right: 10px; /* 右边距 */  
    width: 10px; /* 红点宽度 */  
    height: 10px; /* 红点高度 */  
    background-color: red; /* 红点颜色 */  
    border-radius: 50%; /* 圆形 */
    z-index: 10000;  
}  

.close-button {  
    background-color: #007bff;  
    color: white;  
    border: none;  
    padding: 10px;  
    cursor: pointer;  
    border-radius: 5px;  
    float: right; /* 右对齐 */  
}  

.close-button:hover {  
    background-color: #0056b3; /* 悬停效果 */  
}  




.modal-header {  
    display: flex;  
    justify-content: space-between;  
    align-items: center;   
}  

.close {  
    cursor: pointer;   
    font-size: 18px;   
    color: white;   
}  

.close:hover {  
    color: #333;   
}  

.input-group {  
    margin-bottom: 15px;   
}  

.input-group label {  
    display: block;   
    margin-bottom: 5px;   
}  

.input-group input[type="text"],  
.input-group input[type="number"],  
.input-group textarea {  
    width: 100%;   
    padding: 10px;   
    border: 1px solid #ccc;   
    border-radius: 5px;   
}  

.input-group .previewImage {  
    max-width: 100%;   
    height: auto;   
    margin-top: 10px;   
    border: 1px solid #ccc;   
    border-radius: 5px;   
}  

.input-group .addProductbutton {  
    padding: 10px 15px;   
    background-color: #007bff;   
    color: white;   
    border: none;   
    border-radius: 5px;   
    cursor: pointer;   
}  

.input-group .addProductbutton:hover {  
    background-color: #0056b3;   
}  

.gameTab{
    display: inline-block;width: 25%;height: 2rem;background-color: gray;
    padding: 0.25rem;margin-left: 0.5rem;
}
.gameTab.active{
    background-color: #007bff;
    color: white;
}
.gameTab:hover{
    background-color: #0056b3;
    cursor: pointer;
}

.gameInput{
    font-size: 1rem;width: 30%;text-align: center;
}

/* .numberDiv{
    font-size: 1rem;display: inline-block;width: 5rem;
    height: 2rem;line-height: 2rem;text-align: center;
    border: 1px solid #ccc;border-radius: 5px;margin-left: 1rem;
} */

.numberDiv:hover{
    cursor: pointer;
    background-color: #0056b3;
}
.numberDiv.active{
    background-color: #007bff;
    display: inline-block;
}

table{
    border-collapse: collapse;
    width: 100%;
}

th{
    text-align: center;
    background-color: #007bff;
    color: white;
    padding: 0.5rem;
    width: 15%;
    border: #575757 solid 1px;
}
td{
    text-align: center;
    padding: 0.5rem;
    max-width: 15%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: #575757 solid 1px;
}

.chart-container {
    display: flex;
    margin-bottom: 40px;
    width: 100%;
    /* 水平居中 */
    justify-content: center;
}

.chart {
    margin-right: 30px;
}

.chart-title {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.bar-container {
    display: flex;
    align-items: flex-end;
    height: 200px;
    border-bottom: 1px solid #333;
    padding-top: 20px;
}

.bar {
    width: 40px;
    margin-right: 20px;
    position: relative;
    transition: height 0.5s ease;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
}

.bar-value {
    position: absolute;
    top: -20px;
    width: 100%;
    text-align: center;
}


.carousel-container {
    position: relative;
    /* max-width: 100%;
    margin: 20px auto; */
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: auto; /* 高度自适应 */
}

.carousel-slide img {
    min-width: 100%;
    max-width: 100%; /* 限制图片最大宽度 */
    height: auto; /* 高度自适应 */
    display: block; /* 消除图片底部间隙 */
}

/* 导航按钮 */
#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

/* 指示点 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

#search-btn:hover {
            background-color: #45a049;
}

.lockTokenInfoLine{
    text-align: left;font-size: 1.5rem;
    color: black;
    margin-left: 0.5rem;
}

