/*设置内外边距 字体*/
* {
    padding: 0;
    margin: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', 'Songti SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;

}

body,
html {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', 'Songti SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: #333333;
}

li {
    list-style-type: none;
}

body {
    background-image: url('../pic/bg.png');
    background-size: cover;
    /* 图片会拉伸以完全覆盖整个容器 */
    background-position: center center;
    /* 图片会从容器的中心开始 */
    background-repeat: no-repeat;
    /* 图片不会重复 */
    background-attachment: fixed;
    /* 背景图片固定，不会随着滚动而滚动 */
}

/* .main{
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('../pic/bg.png');
    background-size: cover;
    background-position: center;
} */
.main {
    flex: 1;
    /* display: flex; */
    /* justify-content: center; */
    /* overflow: visible;  /* 隐藏溢出的内容 */
    /* flex-direction: column;
    height: 100%; */
    display: grid;
    /* grid-template-rows: 1fr auto; */
    height: 100%;
    width: 100%;
}

.main .background-wrapper {

    background-color: transparent;
    /* 设置半透明背景色 */
    backdrop-filter: blur(10px);
    /* 添加毛玻璃效果，调整数值以增加/减少模糊程度 */
    border-radius: 10px;
    align-items: center;
    flex-direction: column;
    /* 如果您希望子div垂直排列 */
    width: 100%;
    height: 100%;

}

.main .background-wrapper .top-wrapper {
    display: flex;
    justify-content: center;
    height: 95px;
}

.main .background-wrapper .top-wrapper a.logo-a {
    margin-right: 50px;
}

.main .background-wrapper .top-wrapper::af {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* 横杠的高度 */
    background-color: #333;
    /* 横杠的颜色 */
}

.main .background-wrapper .top-wrapper ul.navi {
    display: flex;
    /* min-width: 700px; */

    /* overflow: hidden; */
}

.main .background-wrapper .top-wrapper ul.navi .n {
    width: 140px;
    height: 50px;
    margin: 0 auto;
    margin-top: 25px;
    position: relative;
    padding-right: 20px;
    display: inline-block;
    place-items: center;
    /* 居中内容 */
}

.main .background-wrapper .top-wrapper ul.navi .n::after {
    content: "/";
    font-size: 30px;
    position: absolute;
    top: 50%;
    right: 5px;
    /* 调整斜杠的位置，可以根据需要调整此值 */
    transform: translateY(-50%);
    color: #333;
    /* 斜杠的颜色 */

}

.n a.navi {
    position: relative;
    display: block;
    height: 40px;
    width: 120px;
    margin-left: 16px;
    margin-right: 20px;
    text-align: center;
    justify-content: center;
    /* 水平居中 */
    margin-top: 13px;
    text-decoration: none;
    color: #333;
    /* 初始状态下字体颜色 */
    transition: color 0.3s, font-weight 0s;
    /* 添加颜色透明度的渐变效果 */
}

.n a.navi:hover {
    color: #467AF2;
    /* 鼠标悬停时字体颜色渐变为 #467AF2 */
    /* font-weight: bold; /* 鼠标悬停时字体加粗 */
}

.n a.guide {
    color: #333;
    /* 初始状态下字体颜色 */
    transition: color 0.3s, font-weight 0s;
    /* 添加颜色透明度的渐变效果 */
}

.n a.guide:hover {
    color: #467AF2;
}

.n a.navi::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    /* 调整下划线位置，可以根据需要调整此值 */
    width: 100%;
    height: 2px;
    /* 下划线的高度 */
    background-color: #467AF2;
    /* 下划线的颜色 */
    transform: scaleX(0);
    /* 初始状态下下划线宽度为0，不显示 */
    transform-origin: left;
    /* 让下划线从左边开始变化 */
    transition: transform 0.3s;
    /* 添加下划线的渐变效果 */
}

.n a.navi:hover::before {
    transform: scaleX(1);
    /* 鼠标接触时下划线宽度变为1，显示完整下划线 */
}

.main .background-wrapper .top-wrapper .login_register {
    margin-left: 80px;
    width: 200px;
    height: 100px;
    display: flex;
}

.main .background-wrapper .top-wrapper .login_register li.m {
    margin-left: 20px
}

.main .background-wrapper .top-wrapper .login_register button.register {
    display: block;
    text-align: center;
    height: 40px;
    width: 70px;
    margin-top: 30px;
    border: 2px transparent;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(51, 112, 255, 0.4);
    background-color: #3370FF;
}

.main .background-wrapper .top-wrapper .login_register button.register:hover {
    background-color: #64b8f6;

}

#logoutButton {
    cursor: pointer;
}


.hidden-box {
    margin-top: 10px;
    height: 70px;
    width: 500px;
    display: none;
    position: absolute;
    top: 100%;
    left: -50%;
    background-color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 2px solid white;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(51, 112, 255, 0.8);
}

.hidden-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
}

.hidden-box ul li {
    margin: 0 20px;
    margin-right: 10px;
    font-size: 20px;
}

.n:hover .hidden-box {
    opacity: 1;
    display: flex;
    position: absolute;
    z-index: 9999;
}

.announcement {
    display: flex;
    align-items: center;
    /* 垂直居中 */
    border: 2px solid #e9e9e9;
    background-color: #d6e3ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 830px;
    text-align: left;
    padding: 10px 10px;
}

.left-image {
    width: 50px;
    /* 你可以设置任何你需要的宽度 */
    height: auto;
    /* 保持图片比例 */
    margin-right: 20px;
    /* 右边距，以与文字分开 */
}

.TPO_second_wrapper {
    display: flex;
    justify-content: center;
    /* margin-top: 30px; */

}

.TPO_second_wrapper .TPO_list {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    /* 设置半透明背景颜色 */
    border-radius: 30px;
    box-shadow: 5px 5px 10px rgba(31, 30, 29, 0.2);
    height: auto;
    width: 1050px;
    margin: 30px auto;
    position: relative;
}

.TPO_second_wrapper .question_list {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    /* 设置半透明背景颜色 */
    border-radius: 30px;
    box-shadow: 5px 5px 10px rgba(31, 30, 29, 0.2);
    height: auto;
    width: 1050px;
    margin: auto;
    margin-bottom: 80px;

}

.TPO_second_wrapper .TPO_list h3 {
    margin-right: 20px;
}

.question_list_frame_total {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.TPO_list a:hover,
.question_list a:hover {
    color: #467AF2;
    /* 鼠标悬停时字体颜色渐变为 #467AF2 */
    /* font-weight: bold; /* 鼠标悬停时字体加粗 */
}

.TPO_list a,
.question_list a {
    color: #333;
    /* 初始状态下字体颜色 */
    transition: color 0.3s, font-weight 0s;
    /* 添加颜色透明度的渐变效果 */
    margin-left: 5px;
}

tbody td {
    height: 80px;
    text-align: center;
    vertical-align: middle;
    vertical-align: middle;
}

tr.question_line {
    transition: background-color 0.3s ease;
    padding: 10px;
    position: relative;
}

tr.question_line:hover {
    background-color: #e1f0ff;
    padding: 20px;
    /* 或者你想要的其他悬停时的值 */
}

.question_line {
    position: relative;
}

.content-wrapper {
    position: relative;
}

.hover-image {
    display: none;
    position: absolute;
    left: 0;
    /* 如果你想在右侧显示图片 */
    top: 50%;
    transform: translateY(-50%);
}

.question_line:hover .hover-image {
    display: block;
}

.login_register button.activate {
    display: block;
    text-align: center;
    height: 40px;
    width: 70px;
    margin-top: 30px;
    border: 2px transparent;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(55, 9, 107, 0.4);
    background-color: #623a82;
    margin-left: 20px;
}

.login_register button.activate:hover {
    background-color: #8650b3;
}

.login_register img.star {
    width: 20px;
    height: 20px;
    margin-top: 15px;
    margin-left: -5px;
    display: none;
}

.login_register .activate:hover+img {
    display: block;
}

.year_categorize {
    display: flex;
}

.year_categorize h4 {
    margin-right: 20px;
}

/* 优化后的TPO列表设计 */
.TPO_list {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

/* .TPO_list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3370ff 0%, #64b8f6 100%);
} */

/* 主标题优化 */
.tpo-main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.tpo-main-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpo-main-header img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 紧凑的年份选择器 */
.year_categorize_new {
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.year_categorize_new::before {
    display: none;
}

/* 副标题区域 */
.reform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reform-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reform-header h4::before {
    content: '📅';
    font-size: 14px;
}

/* 紧凑的年份按钮 */
.year-buttons {
    display: flex;
    gap: 4px;
    background: #ffffff;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.year-btn {
    position: relative;
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 55px;
    text-align: center;
    overflow: hidden;
}

.year-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3370ff 0%, #4f82ff 100%);
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.year-btn span {
    position: relative;
    z-index: 1;
}

.year-btn:hover {
    color: #3370ff;
}

.year-btn:hover::before {
    opacity: 0.1;
    transform: scale(1);
}

.year-btn.active {
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(51, 112, 255, 0.3);
}

.year-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

/* 紧凑的月份网格 */
.year-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.year-content.hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
}

.year-content.visible {
    opacity: 1;
    max-height: 800px;
    padding: 12px 0 0 0;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 0;
}

.months-grid a {
    position: relative;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    color: #475569;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.months-grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s;
}

.months-grid a:hover::before {
    left: 100%;
}

.months-grid a:hover {
    background: linear-gradient(135deg, #3370ff 0%, #4f82ff 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.3);
    border-color: #3370ff;
}

.months-grid a:active {
    transform: translateY(-1px);
}

/* 当前月份特殊样式 */
.months-grid a.current-month {
    background: linear-gradient(135deg, #3370ff 0%, #4f82ff 100%);
    color: white;
    border-color: #3370ff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(51, 112, 255, 0.3);
}

.months-grid a.current-month::after {
    content: '●';
    position: absolute;
    top: 3px;
    right: 6px;
    font-size: 8px;
    color: #ffffff;
}

/* 加载动画 */
.months-grid.loading a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.months-grid.loading a:nth-child(1) {
    animation-delay: 0.1s;
}

.months-grid.loading a:nth-child(2) {
    animation-delay: 0.15s;
}

.months-grid.loading a:nth-child(3) {
    animation-delay: 0.2s;
}

.months-grid.loading a:nth-child(4) {
    animation-delay: 0.25s;
}

.months-grid.loading a:nth-child(5) {
    animation-delay: 0.3s;
}

.months-grid.loading a:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 优化的移动端响应式设计 */
@media (max-width: 768px) {
    .TPO_list {
        padding: 16px;
        border-radius: 8px;
    }

    .tpo-main-header h3 {
        font-size: 20px;
    }

    .tpo-main-header img {
        width: 40px;
        height: 40px;
    }

    .reform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 12px;
    }

    .reform-header h4 {
        font-size: 15px;
    }

    .year-buttons {
        width: 100%;
        justify-content: center;
    }

    .year-btn {
        padding: 5px 12px;
        font-size: 12px;
        min-width: 50px;
    }

    .months-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .months-grid a {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .TPO_list {
        padding: 12px;
    }

    .tpo-main-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .year-btn {
        flex: 1;
    }
}

/* New Badge Style via Pseudo-element */
.navi .n:first-child a.navi {
    position: relative;
}

.navi .n:first-child a.navi::after {
    content: 'NEW';
    position: absolute;
    top: -8px;
    right: -25px;
    background-color: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    font-weight: bold;
    animation: bounce 2s infinite;
    z-index: 10;
    transform: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1.5px);
    }
}