/* ========== 全局重置 ========== */
* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    background-color: rgb(94, 163, 242);
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ========== 统一容器宽度控制：宽屏居中，消除右侧空白 ========== */
.header,
.banner,
.main,
.footer {
    
    width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.banner{
    height: 660px;
}

/* ========== Header ========== */
.header {
    position: relative;
    height: 160px;
    background-color: rgb(52, 126, 213);
}

.header_logo {
    position: absolute;
    top: 33px;
    left: 46px;
}

.header_logo img {
    display: block;
}

/* ========== Banner ========== */
.banner {
    position: relative;
    aspect-ratio: 1920 / 660;
    background-image: url('../img/banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    overflow: hidden;
}

.banner a {
    display: flex;
    flex-direction: row-reverse;
    position: absolute;
    top: 89.5454%;
    right: 9%;
    height: 7.575757%;
    width: 10.57291666%;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.banner a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 346px;
    background-color: rgb(52, 126, 213);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 20;
}

.lefttext {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 30px;
    top: 80px;
    left: 245px;
}

.footer_logo_u {
    display: flex;
    flex-direction: row;
}

.footer_logo_d {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: white;
}

.logoimg {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    left: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.weixin {
    position: relative;
    top: 0;
}

.weibo {
    position: relative;
    top: 10px;
}

.logo img {
    position: absolute;
}

.logo img:last-child {
    opacity: 0;
}

.animate_logo_enter {
    animation: logoenter 1s forwards;
}

.animate_logo_leave {
    animation: logoleave 1s forwards;
}

@keyframes logoenter {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes logoleave {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.qrimg {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 30px;
    left: 520px;
}

.qrimg img:last-child {
    position: absolute;
    top: 50px;
}

.qrimg img {
    position: relative;
    opacity: 0;
}

.qrenter {
    animation: qrenter1 1s forwards;
}

.qrleave {
    animation: qrleave1 1s forwards;
}

@keyframes qrenter1 {
    0% { opacity: 0; left: 300px; }
    100% { opacity: 1; left: 30px; }
}

@keyframes qrleave1 {
    0% { opacity: 1; left: 30px; }
    100% { opacity: 0; left: 300px; }
}

.righttext {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    right: 260px;
    top: 66px;
    height: 120px;
    text-align: right;
    line-height: 0;
    margin: 0;
}

.righttext p {
    color: white;
    display: block;
    margin-top: 1em;
    gap: 6px;
    margin-bottom: 1.9em;
}

.footlinks {
    height: 30px;
    display: flex;
    flex-direction: row-reverse;
    gap: 75px;
}

.friendlinks a,
.friendemail a {
    font-size: 20px;
    text-decoration: none;
    color: white;
    outline: none;
}