* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    overflow-x: hidden; /* 防止水平滚动 */
}

/* Header Styles */
header {
    background-color: transparent;
    padding: 1% 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* 添加一个半透明的覆盖层，用于在需要时显示 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* 当悬停或滚动时显示背景 */
header:hover::before,
header.scrolled::before {
    opacity: 1;
}

.logo {
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 2; /* 确保logo在覆盖层之上 */
}

.logo-img {
    transition: all 0.3s ease;
    display: block;
}

/* 鼠标悬停时切换为白色logo */
header:hover .logo-img {
    content: url('https://x-res.hdnbe.com/lnhyun/logow.svg');
}

/* 页面滚动时也切换为白色logo */
header.scrolled .logo-img {
    content: url('https://x-res.hdnbe.com/lnhyun/logow.svg');
}

.menu {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2; /* 确保菜单在覆盖层之上 */
}

.item-menu {
    padding: 30px 25px;
    margin: 0 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
}

.item-menu:hover {
    color: dodgerblue;
    text-shadow: none;
    transform: translateY(-2px);
}

.login, .register {
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
}

.login:hover, .register:hover {
    color: dodgerblue;
    text-shadow: none;
}

/* Main Content Styles */
main {
    margin-top: 0; /* 移除顶部边距，让banner完全占据屏幕 */
}

.banner {
    background-image: url('../img/background-image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* 确保没有顶部边距 */
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /*padding: 20px;*/
    animation: fadeIn 1s ease-in;
}

.banner-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease-out;
}

.cacx-banner-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease-out;
}

.cacx-banner-content {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 70px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.8s ease-out;
}

.cacx-query {
    outline: none;
    width: 500px;
    height: 50px;
    overflow: hidden;
    animation: fadeIn 1.2s ease-in;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));*/
    margin-bottom: 40px;
    border-radius: 25px 25px 25px 25px;
    text-align: center;
    background-color: #333;
    color: white;
    z-index: 1;
    border-right: none;
    padding-right: 10px;
}

.cacx-end {
    font-weight: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.news-end-box {
    width: 800px;
    text-align: left;
    margin-bottom: 150px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    color: white;
    border-radius: 15px 15px 15px 15px;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 4%;
    padding-bottom: 4%;
}

.new-content-li {
    display: inline;
    cursor: pointer;
    transition: all .3s ease;
}

.new-content-li:hover {
    cursor: pointer;
    color: dodgerblue;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-number-button {
    outline: none;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    transition: all .3s ease;
}

.page-number-button:hover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background-color: dodgerblue;
    transition: all .3s ease;
}

.new-date {
    float: right;
    padding-right: 4%;
}

.cacx-end-box {
    margin-bottom: 150px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    color: white;
    border-radius: 15px 15px 15px 15px;
    text-align: left;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
}

.cacx-end-box-content {
    padding-right: 5%;
}

.username,.password {
    display: block;
    width: 270px;
    height: 40px;
    border-radius: 5px 5px 5px 5px;
    outline: none;
    margin-top: 7px;
    padding-left: 5px;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    color: white;
}

.txyzm {
    display: block;
    width: 170px;
    height: 40px;
    border-radius: 5px 5px 5px 5px;
    outline: none;
    margin-top: 7px;
    padding-left: 5px;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    color: white;
}

.user-xy,.reset-password {
    display: inline;
}

.reset-password {
    float: left;
}

.register-link {
    float: right;
}

.login-button {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 7px;
    height: 40px;
    outline: none;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    color: white;
    border-radius: 5px 5px 5px 5px;
    transition: all .3s ease;
}

/*.login-end-box {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
}*/

.ydty,.user-xy,.fyk {
    margin-top: 10%;
}

.user-xy {
    color: dodgerblue;
    cursor: pointer;
    transition: all .3s ease;
}

.user-xy:hover {
    text-decoration: underline;
    transition: all .3s ease;
}

.register-link,.reset-password {
    cursor: pointer;
    transition: all .3s ease;
}

.register-link:hover,.reset-password:hover {
    color: dodgerblue;
    transition: all .3s ease;
}

.banner-content-wrapper-login {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /*padding: 20px;*/
    animation: fadeIn 1s ease-in;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    padding-top: 2%;
    padding-bottom: 5%;
    padding-left: 2%;
    padding-right: 2%;
    border-radius: 7px 7px 7px 7px;
}

.login-end-box {
    margin-top: 10%;
}

.login-button:hover {
    background-color: dodgerblue;
    color: white;
    transition: all .3s ease;
}

.cacx-query-btn {
    outline: none;
    height: 50px;
    border: none;
    overflow: hidden;
    animation: fadeIn 1.2s ease-in;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);*/
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    z-index: 2;
    position: absolute;
    border-radius: 0 25px 25px 0;
    right: 0px;
    width: 50px;
}

.cacx-banner-content-date {
    padding-right: 30%;
}

.banner-content {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s ease-out;
}

.banner-btn {
    outline: none;
    border: none;
    color: white;
    width: 150px;
    height: 50px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.4s ease;
    animation: fadeIn 1.2s ease-in;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 液态玻璃效果的关键部分 */
.banner-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.4s ease;
    z-index: -1;
}

.banner-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -2;
}

.banner-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.banner-btn:hover::before {
    animation: liquidFlow 1.5s infinite;
}

/* 液态流动动画 */
@keyframes liquidFlow {
    0% {
        transform: rotate(45deg) translate(-10%, -10%);
    }
    100% {
        transform: rotate(45deg) translate(10%, 10%);
    }
}

/* 添加动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.copyright, .beian {
    margin: 10px 0;
    color: #ccc;
    transition: color 0.3s ease;
}

.beian-link {
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: white;
    transition: color 0.3s ease;
}

.beian-icon {
    vertical-align: middle;
}

/* 页面特定样式 */
body[data-page="index"] #index {
    color: dodgerblue;
    font-weight: bold;
}

body[data-page="cacx"] #cacx {
    color: dodgerblue;
    font-weight: bold;
}

body[data-page="news"] #news {
    color: dodgerblue;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    .menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .item-menu, .login, .register {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-content {
        font-size: 1.2rem;
    }

    .cacx-banner-title {
        font-size: 2rem;
    }

    .cacx-banner-content {
        font-size: 1.2rem;
    }
    
    main {
        margin-top: 0;
    }
    
    .banner {
        height: 100vh;
    }
}