﻿/* ===== 移动端响应式样式 ===== */
/* 所有移动端样式均包裹在媒体查询内，确保不影响PC端 */

@media screen and (max-width: 1700px) {
	.header-scrolled{
		height: 150px;
	}
}

@media screen and (max-width: 768px) {

	/* 文章列表页 */
	.page-banner {
		height: 200px;
	}

	.page-container {
		flex-direction: column;
		padding: 20px 0px;
		gap: 20px;
	}

	.page-sidebar {
		width: 100%;
	}

	.sidebar-title {
		padding: 15px;
		font-size: 18px;
		position: relative;
		cursor: pointer;
	}

	.sidebar-title::after {
		content: '';
		position: absolute;
		right: 15px;
		top: 50%;
		width: 8px;
		height: 8px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: translateY(-70%) rotate(45deg);
		transition: transform 0.3s ease;
	}

	.page-sidebar.open .sidebar-title::after {
		transform: translateY(-30%) rotate(-135deg);
	}

	.sidebar-menu {
		display: none;
	}

	.sidebar-menu li {
		border-bottom: 1px solid #eee;
	}

	.sidebar-menu li a {
		padding: 12px 20px;
		font-size: 14px;
	}

	.sidebar-menu li .sub-menu li a {
		padding: 10px 20px 10px 40px;
		font-size: 12px;
	}

	.sidebar-bottom-img {
		display: none;
	}

	/* 图片列表 */
	.picture-grid {
		gap: 15px;
	}

	.picture-item {
		flex: 0 0 calc(50% - 8px);
	}

	.picture-title {
		font-size: 14px;
	}

	/* 人员列表 */
	.personnel-grid {
		gap: 15px;
	}

	.personnel-item {
		flex: 0 0 calc(50% - 8px);
	}

	.personnel-title {
		font-size: 14px;
	}

	.category-title {
		padding: 6px 40px;
		font-size: 16px;
	}

	.page-content-header {
		align-items: center;
		gap: 8px;
	}

	.page-content-header h2 {
		font-size: 18px;
	}

	.breadcrumb {
		font-size: 12px;
	}

	.article-item {
		gap: 12px;
		padding: 15px 0;
	}

	.article-date {
		width: 80px;
		padding: 8px 0;
	}

	.article-date .day {
		font-size: 18px;
	}

	.article-info h3 {
		font-size: 14px;
	}

	.article-info p {
		font-size: 12px;
	}

	/* 头部 */
	.header {
		padding: 10px 0;
	}

	.header-wrap {
		width: 100%;
		padding: 0 15px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.logo {
		float: none;
		display: block;
		padding-top: 0;
	}

	.logo img {
		height: 45px;
	}

	.header-right {
		float: none;
		position: static;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
	}

	.header-top {
		margin-bottom: 0;
		text-align: right;
		display: flex;
		align-items: center;
		order: 1;
	}

	.banner-text-img {
		display: none;
	}

	.header-links a,
	.header-links span {
		font-size: 12px;
	}

	.header-links span {
		margin: 0 5px;
	}

	.search-icon img {
		width: 14px;
		height: 14px;
		margin-left: 5px;
	}

	/* 汉堡菜单按钮 */
	.mobile-menu-btn {
		display: block;
		position: relative;
		right: auto;
		top: auto;
		transform: none;
		width: 26px;
		height: 20px;
		cursor: pointer;
		z-index: 1001;
		order: -1;
		margin-bottom: 6px;
		padding-top: 30px;
	}

	.mobile-menu-btn span {
		display: block;
		width: 100%;
		height: 3px;
		background-color: #fff;
		margin-bottom: 5px;
		border-radius: 2px;
		transition: all 0.3s ease;
	}

	.mobile-menu-btn span:last-child {
		margin-bottom: 0;
	}

	.mobile-menu-btn.active span:nth-child(1) {
		transform: rotate(45deg);
		margin-top: 8px;
	}

	.mobile-menu-btn.active span:nth-child(2) {
		opacity: 0;
	}

	.mobile-menu-btn.active span:nth-child(3) {
		transform: rotate(-45deg);
		margin-top: -16px;
	}

	/* 导航遮罩 */
	.nav-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.5);
		z-index: 99;
	}

	.nav-overlay.active {
		display: block;
	}

	/* 导航 */
	.nav {
		display: block;
		position: fixed;
		top: 0;
		right: -80%;
		width: 80%;
		height: 100%;
		background-color: #67a660;
		z-index: 9999;
		padding: 60px 20px 20px;
		transition: right 0.3s ease;
		overflow-y: auto;
		box-sizing: border-box;
	}

	.nav.open {
		right: 0;
	}

	.nav-list li {
		float: none;
		margin-left: 0;
		text-align: left;
		border-bottom: 1px solid rgba(255,255,255,0.2);
	}

	.nav-list li a {
		font-size: 16px;
		padding: 15px 0;
	}

	.nav-list li a::after {
		display: none;
	}

	/* 二级菜单 */
	.nav-list .has-submenu:hover .submenu {
		display: none;
        animation: none;
	}

	.submenu {
		display: none;
		position: static;
		transform: none;
		background-color: rgba(0,0,0,0.15);
		padding: 0;
		margin: 0;
		border-radius: 0;
		min-width: auto;
		width: 100%;
	}

	.submenu::before {
		display: none;
	}

	.submenu li {
		margin: 0;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.submenu li:last-child {
		border-bottom: none;
	}

	.submenu li a {
		font-size: 14px;
		padding: 12px 15px;
		color: rgba(255,255,255,0.9);
		display: block;
	}

	.submenu li a:hover {
		background-color: rgba(0,0,0,0.1);
		color: #fff;
	}

	/* 搜索弹窗 */
	.search-input {
		font-size: 16px;
	}

	.search-btn {
		font-size: 14px;
		padding: 8px 20px;
	}

	/* 回到顶部按钮 */
	.back-to-top {
		width: 40px;
		height: 40px;
		font-size: 20px;
		line-height: 40px;
		bottom: 15px;
		right: 15px;
	}

	/* Banner */
	.banner-swiper {
		height: 280px;
	}

	.banner-swiper .swiper-slide {
		height: 100%;
	}

	.banner-swiper .swiper-pagination {
		bottom: 10px;
	}

	.banner-swiper .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}
	
	.header{
		height: auto;
	}

	/* 新闻动态 / 通知公告 */
	.news-section {
		padding: 30px 0;
		padding-bottom: 0;
	}

	.news-left,
	.news-right {
		width: 100%;
		float: none;
		margin-bottom: 30px;
	}

	.news-left {
		padding: 0 15px;
		box-sizing: border-box;
	}

	.news-right {
		padding: 0 15px;
		box-sizing: border-box;
	}

	.news-header {
		margin-bottom: 15px;
	}

	.section-title h2 {
		font-size: 20px;
	}

	.more-link {
		font-size: 12px;
	}

	.news-slider {
		width: 100%;
		position: relative;
		z-index: auto;
		margin-top: 0;
		margin-bottom: 20px;
	}

	.news-swiper {
		width: 100%;
	}

	.news-swiper .swiper-slide img {
		width: 100%;
		height: auto;
	}

	.news-slide-info {
		width: 100%;
		position: relative;
	}

	.news-slide-title {
		width: 100%;
		float: none;
		font-size: 13px;
	}

	.news-pagination {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		text-align: center;
		margin-top: 10px;
		width: 100%;
	}

	.news-content .news-list {
		width: 100%;
		margin-left: 0;
	}

	.news-top-item {
		margin: 0;
		padding: 15px;
	}

	.news-item-list li a {
		padding: 10px 15px;
		font-size: 13px;
	}

	.news-item-list li a:hover {
		padding-left: 15px;
	}

	.notice-list {
		background-color: #f5f5f5;
		border-radius: 0 0 0 20px;
	}

	.notice-top-item {
		padding: 15px;
		border-bottom: 1px solid rgba(0,0,0,0.1);
	}

	.notice-top-item .notice-title {
		font-size: 14px;
		color: #222222;
	}

	.notice-item-list li a {
		padding: 10px 15px;
		font-size: 13px;
		color: #222222;
		border-bottom: none;
	}

	.notice-item-list li a:hover {
		padding-left: 15px;
	}

	.notice-item-date {
		color: #999;
	}

	.research-banner {
		margin-top: 20px;
		padding: 0 15px;
		box-sizing: border-box;
	}

	/* 学科建设 / 选项卡 */
	.section-tab-wrap {
		margin-top: 30px;
		box-sizing: border-box;
	}

	.subject-left,
	.tab-right {
		width: 100%;
		margin-bottom: 30px;
	}

	.subject-list {
		padding: 10px 15px;
	}

	.subject-date {
		padding: 6px 10px;
		min-width: 44px;
	}

	.subject-date .day {
		font-size: 18px;
	}

	.subject-title {
		font-size: 14px;
	}

	.tab-nav {
		gap: 20px;
	}

	.tab-item {
		font-size: 16px;
		padding-left: 0;
	}
	
	.tab-item img{
		height: 10px;
	}

	.tab-content,
	.feature-tab-content {
		padding: 15px;
	}

	.tab-date .day {
		font-size: 22px;
	}

	.tab-top-title {
		font-size: 15px;
	}

	.tab-item-list li a {
		font-size: 13px;
		padding: 8px 0;
	}

	.tab-item-date {
		display: none;
	}

	/* 专题专栏 / 作物学"1+5" */
	.feature-section {
		margin-top: 0px;
		padding: 30px 0;
	}

	.feature-left,
	.feature-right {
		width: 100%;
		margin-bottom: 30px;
	}
	
	.feature-top-item {
		padding: 15px;
	}

	.feature-top-title {
		font-size: 14px;
	}

	.feature-top-desc {
		font-size: 12px;
	}

	.feature-item-list li a {
		font-size: 13px;
		padding: 10px 0;
	}

	.feature-item-date {
		display: none;
	}

	.topic-grid {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
	}

	.topic-item {
		width: calc(50% - 5px);
	}

	/* 招生工作 / 就业工作 / 校友园地 */
	.info-section {
		padding: 30px 0;
	}

	.info-wrap {
		flex-direction: column;
		gap: 20px;
	}

	.info-column {
		width: 100%;
	}

	.info-title-wrap h2 {
		font-size: 18px;
	}

	.info-top-title {
		font-size: 14px;
	}

	.info-list li a {
		font-size: 13px;
		padding: 8px 0;
	}

	.info-item-date {
		display: none;
	}

	/* Footer */
	.footer {
		padding: 30px 0;
		margin-top: 20px;
		padding-bottom: 0;
	}
	
	.footer-middle{
		width: 100%;
	}

	.footer-wrap {
		flex-direction: column;
		gap: 0;
		max-width: 100%;
		width: 100%;
	}

	.footer-left-block {
		width: 100%;
		flex: none;
		margin-right: 0;
		border-radius: 0;
		padding: 30px 15px;
	}

	.footer-right-block {
		width: 100%;
		flex: none;
		margin-left: 0;
		border-radius: 0;
		padding: 30px 15px;
		flex-direction: column;
		gap: 20px;
		box-sizing: border-box;
	}

	.friend-links {
		flex-direction: column;
	}

	.friend-links select {
		width: 100%;
	}

	/* 文章详情页 */
	.article-title {
		font-size: 18px;
		line-height: 1.6;
		padding-bottom: 15px;
		margin-bottom: 15px;
	}

	.article-meta {
		margin-bottom: 20px;
		font-size: 12px;
	}

	.article-meta .meta-item {
		margin: 0 8px;
	}

	.article-body {
		font-size: 14px;
		line-height: 1.8;
	}

	.article-body p {
		margin: 10px 0;
		line-height: 1.8;
	}
}