* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

body {
    background: url(../img/page_bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 默认样式 */
.header {
    position: absolute;
    	background: url(../img/header_nav_bg.png) no-repeat;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    background-size: cover;
    z-index: 9999;
}

.header .public-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%; /* 使用百分比代替固定宽度 */
    max-width: 1300px; /* 最大宽度限制 */
    margin: auto;
}

.logo img {
    height: 40px;
}

.nav a {
    display: inline-block;
    line-height: 80px;
    vertical-align: top;
    padding: 0 20px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.nav .active {
    color: #ff0024;
    border-bottom: 4px solid #ff0024;
}

.header-login {
    display: flex;
    align-items: center;
    color: #ffffff;

}

.header-login img {
    height: 40px;
    margin-right: 10px;
}

.header-login p {
    color: #05f521;
    margin-left: 10px;
    font-size: 25px;
}



@media (max-width: 1368px) {

}

@media (max-width: 768px) {
.header {
            position: relative;
            height: 60px; /* 根据需要设置高度 */
        }
        
        .header-login {
            position: absolute;
            right: 0;
            padding-bottom: 20px;
            
           
        }
.logo{
            display: none;
        }
        .header-login img {
display: none;
}



  body {
        min-width: unset; /* 移除最小宽度限制 */
    }

    .header {
        height: auto;
        background-size: 100% 100%;
    }

    .header .public-width {
        flex-direction: column;
        align-items: flex-start;
        width: 95%;
        padding: 10px;
    }

    .nav {
        display: none; /* 默认隐藏 */
        width: 100%;
        flex-direction: column;
    }

    .nav.active {
        display: flex; /* 汉堡菜单展开时显示 */
    }

    .nav a {
        line-height: 50px;
        padding: 10px 0;
        font-size: 16px;
        border-bottom: 1px solid #444;
    }





.nav a {
	display: inline-block;
	line-height: 3vh;
	vertical-align: top;
	padding: 0 20px;
	text-align: center;
	font-size: 18px;
	color: #fff;
	font-weight: bold;
}

.nav .active {
	color: #ff0024;
	border-bottom: 4px solid #ff0024;
}
  body {
                font-size: 14px;
            }
            .public-width {
                padding: 0 10px;
                flex-direction: column;
                align-items: flex-start;
            }
            .notice-container {
                margin: 100px auto;
                width: 95%;
                padding: 10px;
            }
            .header {
                font-size: 30px;
                padding: 10px 0;
            }
            .nav {
                display: none;
                position: absolute;
                top: 60px;
                left: 0;
                width: 100%;
                background-color: #333;
                flex-direction: column;
                z-index: 1000;
            }
            .nav.active {
                display: flex !important;
            }
            .nav a, .dropdown {
                width: 100%;
                text-align: center;
                padding: 15px 0;
                border-bottom: 1px solid #444;
            }
            .dropdown .dropbtn {
                padding: 15px;
                width: 100%;
            }
            .dropdown-content {
                position: relative;
                left: 0;
                top: 0;
                width: 100%;
                background-color: #444;
            }
        
            .hamburger {
                display: block !important;
            }
            .notice2-h3 h3 {
                font-size: 28px;
            }
            .filter-bar {
                flex-direction: column;
                gap: 10px;
            }
            .category-switch {
                flex-direction: column;
                align-items: center;
            }
            .category-btn {
                width: 100%;
                margin: 5px 0;
                padding: 12px;
            }
            .filter-options {
                flex-direction: column;
                gap: 10px;
            }
            .search-bar input[type="text"] {
                width: 100%;
                box-sizing: border-box;
            }
            .search-bar button {
                width: 100%;
                border-radius: 5px;
                margin-top: 5px;
            }
            .sort-options select {
                width: 100px;
            }
            .notice2-text {
                padding: 8px;
                min-height: auto;
            }
            .nt-header {
                flex-direction: column;
                align-items: flex-start;
            }
            .nt-title {
                font-size: 16px;
            }
            .nt-time {
                font-size: 12px;
            }
            .nt-summary {
                font-size: 14px;
            }
            .nt-footer {
                position: static;
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }
            .action-buttons {
                justify-content: flex-start;
                width: 100%;
                gap: 10px;
            }
            .like-btn, .dislike-btn, .delete-btn {
                padding: 8px 15px;
                font-size: 12px;
            }
            .pagination {
                flex-direction: column;
                gap: 10px;
            }
            .page-btn {
                padding: 10px;
                width: 100%;
            }
            .page-jump {
                width: 100%;
                flex-direction: column;
            }
            .page-jump input {
                width: 100%;
            }
            .page-jump button {
                width: 100%;
            }
            .submit-article h3 {
                font-size: 18px;
            }
            .form-group input, .form-group textarea, .form-group select {
                font-size: 14px;
            }
            .submit-btn {
                width: 100%;
                padding: 12px;
            }
            #mytextarea {
                height: 300px;
            }
}


