/* 全局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* 字体 */
@font-face {
    font-family: 'MOJANG';
    src: url("./fonts/MOJANGABC.woff2") format('woff2'), url("./fonts/MOJANGABC.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "weiruanyahei";
    src: url("./fonts/msyh.ttc") format('truetype');
}

/* 全屏滚动（整页都能滑） */
html, body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: url("./image/background.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "weiruanyahei", sans-serif;
}

    html::-webkit-scrollbar, body::-webkit-scrollbar {
        display: none;
    }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.nav {
    background-color: rgba(0,210,210,0.85);
    padding: 16px 16px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-item {
    position: relative;
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 16px;
}

    .nav-item a, .dropbtn {
        display: flex;
        align-items: flex-start;
        justify-content: left;
        color: white;
        font-size: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

.logo {
    font-family: 'MOJANG';
    font-size: 24px;
}

    .logo a {
        color: white;
    }

/* 底部导航 - 固定 + 无白边 + 不拦滑动 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,210,210,0.85);
    color: white;
    text-align: center;
    padding: 16px;
    height: auto;
    font-size: 18px;
    z-index: 9999;
}

    .footer a {
        color: white;
    }

.ul {
    list-style-type: none;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #00e2e2;
    min-width: 208px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 10;
    max-width: 90vw;
}

    .dropdown-content a {
        padding: 12px 16px;
        display: block;
        font-size: 16px;
    }

.dropdown:hover .dropdown-content {
    display: block;
}

.placeholder-header {
    height: 60px;
}

.placeholder-footer {
    height: 128px;
}

.main {
    padding: 0px 16px 0px 16px;
    display: flex;
    flex-direction: column;
    max-width: 1680px;
    margin: 0 auto;
    gap: 16px;
}

.card {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    min-height: 50px;
    font-size: 18px;
    color: #006060;
    text-align: center;
}

    .card .line {
        width: 150px;
        padding: 0px;
        height: 8px;
        background-color: #008080;
        border-radius: 8px;
        margin: 0 auto;
    }

    .card .line2 {
        height: 50px;
        padding: 0px;
        width: 8px;
        background-color: #008080;
        border-radius: 8px;
    }

    .card .title {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }

    .card .index {
        background-color: none;
        padding-top: 16px;
        text-align: start;
        display: flex;
        gap: 16px;
        justify-content: center;
        gap: 32px;
        flex-direction: row;
    }

        .card .index div {
            width: 50%;
        }

        .card .index img {
            width: 25%;
        }

        .card .index p {
            margin: 0;
            text-indent: 2em;
            line-height: 1.6;
        }

        .card .index ul {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
        }

            .card .index ul li a {
                text-align: center;
                align-content: center;
            }

            .card .index ul a {
                color: #006060;
                list-style-type: none;
            }

    .card h1 {
        font-family: '黑体';
        font-size: 150%;
        text-align: center;
        color: #006060;
    }

    .card .info {
        display: flex;
        gap: 16px;
        flex-direction: column;
    }

        .card .info p {
            margin: 0;
            text-indent: 2em;
            line-height: 1.6;
        }

        .card .info .personal-info {
            display: flex; 
            flex-direction: row; 
            justify-content: center;
        }

    .card .info img {
        width: 25%;
        min-width: 200px;
        padding: 16px;
        
    }

@media(max-width: 768px) {
    .header {
        height: 100px;
    }

    .placeholder-header {
        padding-top: 171px;
    }

    .nav-item a, .dropbtn {
        color: white;
        padding: 16px 12px;
        font-size: 16px;
    }

    .nav {
        flex-direction: column; /* 竖排 */
        align-items: flex-start;
        gap: 16px;
    }

    .nav-list {
        display: grid;
        flex-direction: column; /* 导航项竖排 */
        grid-template-columns: repeat(3, 1fr); /* 3列 */
        grid-template-rows: repeat(2, auto); /* 2行 */
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-item a, .dropbtn {
        width: 100%;
        padding: 12px 10px;
        justify-content: center;
        text-align: left;
    }

    .footer {
        font-size: 10px;
        height: auto;
    }

    .card .info .personal-info {
        flex-direction: column;
    }

    .card .info img {
        margin:auto;   
    }

    .placeholder-footer {
        height: 88px;
    }
}

@media(max-width: 1300px) {
    .card div{
        flex-direction: column;
    }
}
