/* 基础样式，适用于所有设备 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #000;
}

.container {
    width: 100%;
    padding: 0.125vh;
    box-sizing: border-box;
}

.header, .footer {
    color: #000;
    padding: 0.125vh 0;
    display: flex;
    justify-content: space-between;
}

.content {
    margin-bottom: 1.5em;
}

/* 较大屏幕（PC）的特定样式 */
@media (min-width: 1024px) {
    .container {
        width: 960px; /* 固定宽度或使用百分比 */
        margin: 0 auto; /* 水平居中 */
    }
    body {
        font-size: 1em; /* 较大的字体大小 */
    }
}

/* 平板（Pad）的特定样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: 71.5em; /* 根据需要调整宽度 */
    }
    body {
        font-size: 0.8em; /* 中等的字体大小 */
    }
}

/* 手机屏幕的特定样式 */
@media (max-width: 767px) {
    .container {
        width: auto; /* 宽度自适应 */
    }
    .header, .footer {
        padding: 0.3em 0;
    }
    body {
        font-size: 0.75em; /* 较小的字体大小 */
    }
}

/* 移除所有超链接的下划线和默认颜色 */
a {
    text-decoration: none; /* 移除下划线 */
    color: inherit;        /* 继承父元素的颜色 */
}


/* 可选：为悬停状态的超链接添加样式，以提供反馈 */
a:hover {
    
    color: orangered;            /* 鼠标悬停时改变颜色，如果需要 */
}


/* 为带有类名 "striped-table" 的表格的所有行设置基本样式 */
.striped-table tr {
    border: 1px solid #ddd; /* 表格行之间的边框 */
}

/* 为带有类名 "striped-table" 的表格的奇数行设置背景颜色 */
.striped-table tr:nth-child(odd) {
    background-color: rgba(246, 219, 191, 0.492);
    height: 1.3rem;
}


/* 为带有类名 "striped-table-1" 的表格的偶数行设置背景颜色 */
.striped-table tr:nth-child(even) {
    background-color: #fbfaf7;
    height: 1.3rem;
}

.striped-table tr:hover {
    background-color: orange;
    color: #fff;
}

.striped-table tr {
    border: 1px solid #ddd; /* 表格行之间的边框 */
    height: 1.3rem;
}

.striped-table td {
    height: 2rem;
}

.striped-table th {
    height: 2rem;
}

/* 隐藏 radio 圆点 */
.radio-input {
    display: none;
}

/* 标签样式 */
.radio-label {
    padding: 0.25em 1em;
    background-color: rgba(246, 219, 191, 0.492);
    cursor: pointer;
    transition: background-color 0.3s;
    border: none;
    border-radius: 0.5em;
    padding: 0.2em 1em;
    box-shadow: 0px 0.125vh 0.125vh rgba(246, 219, 191, 0.492);
    display: inline-block;
    margin: 0.5em;
}

/* 选中的标签样式 */
.radio-input:checked +.radio-label {
    color: #fff;
    background-color: orangered;
    border: none;
    border-radius: 0.5em;
    padding: 0.2em 1em;
    box-shadow: 0px 0.125vh 0.125vh rgba(246, 219, 195, 0.492);
    display: inline-block;
    margin: 0.5em;
}

/* 普通菜单样式 */
.box1 {
    flex: 1; /* 每个菜单项占据相同的空间 */
    height: 30px;
    background-color: #fdf9f0;
    border-radius: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.2em;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 0.5em; /* 增加一些内边距 */
}

a.box1:hover {
    background-color: rgba(246, 219, 191, 0.492);
}




/* 管理菜单样式 */
.menu_box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 0.5em;
    background-color: #fdf9f0;
    border-radius: 1em;
    transition: background-color 0.3s ease; /* 添加背景颜色过渡效果 */
}

.menu_box:hover {
    background-color: #e6e0d1; /* 鼠标悬停时的背景颜色 */
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.has-submenu {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100px;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease; /* 添加透明度过渡效果 */
    opacity: 0; /* 初始透明度为 0 */
    z-index: 1000; /* 确保子菜单在其他元素之上 */
    background-color: #fff; /* 添加背景色以便更好地显示 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.sub-menu li {
    margin: 0;
    text-align: center; /* 子菜单字体居中显示 */
}

.sub-menu a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
}

.sub-menu a:hover {
    background-color: orange;
}

.has-submenu:hover .sub-menu {
    display: block;
    opacity: 1; /* 鼠标悬停时透明度为 1 */
}




a.box1:hover {
    background-color: rgba(246, 219, 191, 0.492);
}

@media (max-width: 768px) {
    .box1 {
        flex-basis: 100%; /* 在小屏幕上全宽 */
    }
}

.container_menu {
    display: flex;
    justify-content: space-around; /* 确保子元素平均分布 */
    align-items: center;
    padding: 1em;
    
}

/* 按钮样式 */
.submit_btn {
    background-color: #f9ead1;
    border: none;
    border-radius: 0.8rem;
    padding: 0.125rem 0.5rem;
    
    display: inline-block;
    margin: 0.1em;
    cursor: pointer;
}

.submit_btn_orangered {
    background-color: orangered;
    border: none;
    color: #fff;
    border-radius: 0.8rem;
    padding: 0.125rem 0.5rem;
    cursor: pointer;
    display: inline-block;
    margin: 0.1em;
}

.label_btn {
    background-color: #f9ead1;
    border: none;
    border-radius: 0.5em;
    padding: 0.2em 1em;
   
    display: inline-block;
    margin: 0.5em;
}

/* 响应式按钮样式 */
@media (min-width: 1024px) {
    .submit_btn, .submit_btn_orangered {
        padding: 0.75em 2em; /* PC尺寸 */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .submit_btn, .submit_btn_orangered {
        padding: 0.6em 1.5em; /* 平板尺寸 */
    }
}

@media (max-width: 767px) {
    .submit_btn, .submit_btn_orangered {
        padding: 0.5em 1em; /* 手机尺寸 */
        font-size: 0.8em; /* 调整字体大小 */
    }
}

.highlight {
    font-weight: bold;
    color: red;
    font-size: xx-large;
}



#nav {
    background-color: rgba(246, 219, 191, 0.492);
}

#nav ul {
    list-style: none;
    margin-left: 3em;
}

#nav li {
    display: inline;
}

#nav a {
    line-height: 1.3em;
    padding: 0.5em 0.5em;
    text-decoration: none;
}

#nav a:hover {
    background-color: orange;
}

/* 基础样式，适用于所有设备 */
#chart-container-highest-ranking, #chart-container-lowest-ranking {
    width: 100%;
    margin: 0 auto;
}

/* 较大屏幕（PC）的特定样式 */
@media (min-width: 1024px) {
    #chart-container-highest-ranking, #chart-container-lowest-ranking {
        height: 400px; /* 较大的高度 */
    }
}

/* 平板（Pad）的特定样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    #chart-container-highest-ranking, #chart-container-lowest-ranking {
        height: 300px; /* 中等的高度 */
    }
}

/* 手机屏幕的特定样式 */
@media (max-width: 767px) {
    #chart-container-highest-ranking, #chart-container-lowest-ranking {
        height: 200px; /* 较小的高度 */
    }
}

/* ECharts标题的基础样式 */
.echart-title {
    font-size: 1em; /* 默认字体大小 */
}

/* 较大屏幕（PC）的特定样式 */
@media (min-width: 1024px) {
    .echart-title {
        font-size: 20px; /* 较大的字体大小 */
    }
}

/* 平板（Pad）的特定样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .echart-title {
        font-size: 16px; /* 中等的字体大小 */
    }
}

/* 手机屏幕的特定样式 */
@media (max-width: 767px) {
    .echart-title {
        font-size: 14px; /* 较小的字体大小 */
    }
}

/* 你可以添加一些响应式样式，但主要的显示/隐藏逻辑将通过JavaScript控制 */  
.footer {  
    display: none; /* 默认隐藏footer */  
}  

@media (min-width: 1024px) {  
    /* 对于大屏幕设备（如PC），可以添加一些特定的样式 */  
} 

.shadow_div {
    transition: .2s all;
    box-shadow:
        7px 7px 12px rgba(0, 0, 0, .4),
        -7px -7px 12px rgba(255, 255, 255, .9),
        inset 0 0 0 rgba(255, 255, 255, .9),
        inset 0 0 0 rgba(0, 0, 0, .4);
    
    &:active {
        box-shadow:
            0 0 0 rgba(0, 0, 0, .4),
            0 0 0 rgba(255, 255, 255, .9),
            inset -7px -7px 12px rgba(255, 255, 255, .9),
            inset 7px 7px 12px rgba(0, 0, 0, .4);
    }
    flex: 1; /* 每个菜单项占据相同的空间 */

    background-color: #fbfaf7;
    border-radius: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5em;
    text-decoration: none;
    color: orange;
    font-weight: bold;
    padding: 0.5em; /* 增加一些内边距 */
}

.input {
    background-color: white;
    border: none;
    border-radius: 0.8em;
    padding: 0.5em 1em;
    box-shadow: 0px 0.125vh 0.125vh rgba(246, 219, 191, 0.492);
    display: inline-block;
    margin: 0.2em;
}

.input_free_width {
    background-color: white;
    border: none;
    border-radius: 0.8em;
    padding: 0.5em 1em;
    box-shadow: 0px 0.125vh 0.125vh rgba(246, 219, 191, 0.492);
    display: inline-block;
    margin: 0.2em;
    /* 新增属性，使宽度自动适应内容 */
    width: fit-content;
    /* 确保输入框内容不会超出输入框 */
    max-width: 100%;
    /* 防止输入框在某些情况下宽度过小 */
    min-width: 2rem; 
    text-align: center;
}

/* CSS */
.button-vip {
    margin: 0.1em;
    padding: 0.125em 0.5em;
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: auto;
    color: white;
    border-radius: 0.5em;
    display: block;
    border: 0em;
    box-shadow: 0em 0em 0em -0.5em #f09819;
    background-image: linear-gradient(45deg, #FF512F 0%, #F09819  51%, #FF512F  100%);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    right: 0;
    display: inline-block;
  }
  
  .button-vip:hover {
    background-position: right center;
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
  }
  
  .button-vip:active {
    transform: scale(0.95);
  }

  .button-vip-silver {
    margin: 0.1em;
    padding: 0.125em 0.5em;
    font-size: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: auto;
    color: rgb(255, 255, 255);
    border-radius: 0.5em;
    display: block;
    border: 0em;
    box-shadow: 0em 0em 0em -0.5em #797268;
    background-image: linear-gradient(45deg, #C0C0C0 0%, #797268  51%, #C0C0C0  100%);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    right: 0;
    display: inline-block;
  }

  .button-com {  
    margin: 0.7em;  
    padding: 0.25em 0.5em;  
    text-align: center;  
    text-transform: uppercase;  
    transition: 0.5s;    
    color: white;  
    border-radius: 0.5em;  
    border: none; /* 改为 none 而不是 0em，更清晰 */  
    box-shadow: 0em 0em 0em -0.5em #f09819;  
    background-image: linear-gradient(45deg, #FF512F 0%, #F09819 51%, #FF512F 100%);  
    cursor: pointer;  
    user-select: none;  
    -webkit-user-select: none;  
    touch-action: manipulation;  
    /* 移除 right 属性，因为它在 inline-block 或 inline 元素上无效 */  
    display: inline-block; /* 改为 inline-block */  
}

.title-subject {
    background: orange;
    border-top-left-radius: 1rem;
    padding: 0.6rem;
    color: white;
    
}

.title-div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #fdf9f0;
}

.title-left-border{
    border-left: 0.5rem solid orange;
    background:  #fdf9f0;
    padding: 0.6rem;
    letter-spacing: 1px;
}