﻿/* ========== 自适应样式 ========== */

/* 平板及以下 */
@media screen and (max-width: 1024px) {
	.header-inner {
		height: 100px;
	}
	.header-logo {
		height: 60px;
	}
	.banner-section {
		height: 500px;
	}
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 手机横屏 */
@media screen and (max-width: 768px) {
	.header-inner {
		height: 80px;
	}
	.header-logo {
		height: 50px;
	}
	.banner-section {
		height: 360px;
	}
}

/* 手机竖屏 */
@media screen and (max-width: 480px) {
	.header-inner {
		height: 60px;
	}
	.header-logo {
		height: 40px;
	}
	.banner-section {
		height: 260px;
	}
	.banner-swiper .swiper-pagination {
		bottom: 10px;
	}
	.banner-swiper .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
	}
	.section-title {
		font-size: 24px;
	}
	.card-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.card-text {
		font-size: 16px;
	}
}

/* ========== 专栏首页自适应 ========== */
@media screen and (max-width: 1024px) {
	.nav-item a {
		padding: 0 20px;
		font-size: 16px;
	}
}

@media screen and (max-width: 768px) {
	.hamburger {
		display: block;
	}
	/* PC导航隐藏 */
	.pc-nav {
		display: none !important;
	}
	/* 移动端菜单默认隐藏，点击展开 */
	.mobile-nav {
		display: none;
	}
	.mobile-nav.open {
		display: block;
	}
	.col-header {
		height: auto;
		display: block;
		overflow: visible;
		position: relative;
		z-index: 100;
	}
	.col-logo {
		max-width: 100%;
	}
	.col-header-inner {
		height: 100px;
	}
	.col-banner {
		height: 200px;
	}
	/* 成果简介响应式 */
	.intro-inner {
		flex-direction: column;
		gap: 30px;
	}
	.intro-right {
		flex: 1;
		width: 100%;
	}
	.intro-video {
		width: 100%;
		height: auto;
		aspect-ratio: 660 / 380;
	}
	.intro-title {
		font-size: 24px;
	}
	/* 成果报告响应式 */
	.report-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.report-title {
		font-size: 24px;
	}
	/* 申报书+支撑材料响应式 */
	.dual-inner {
		flex-direction: column;
		gap: 40px;
	}
	.dual-title {
		font-size: 24px;
	}
	/* 文章列表页响应式 */
	.article-inner {
		flex-direction: column;
		gap: 30px;
	}
	.article-sidebar {
		flex: 1;
		width: 100%;
	}
	.article-content {
		width: 100%;
		min-width: 0;
	}
	.article-title {
		font-size: 24px;
	}
	.article-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.article-item {
		padding: 14px 12px;
	}
	.article-item-text {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 14px;
	}
	.article-item-date {
		flex-shrink: 0;
		margin-left: 10px;
		font-size: 12px;
		white-space: nowrap;
	}
	.sidebar-title {
		font-size: 18px;
		padding: 14px 16px;
	}
	.sidebar-item > a {
		padding: 12px 16px;
		font-size: 14px;
	}
	.sidebar-sub-item a {
		padding: 10px 16px 10px 30px;
		font-size: 13px;
	}
	.article-title {
		font-size: 22px;
	}
	.sidebar-sub {
		display: none;
	}
	#sidebarList {
		display: none;
	}
	/* 文章详情响应式 */
	.detail-title {
		font-size: 22px;
	}
	.detail-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.detail-content {
		font-size: 15px;
	}
    .article-item:nth-child(5n){
        margin-bottom:30px;
    }
}
