/* 响应式设计 - 媒体查询 */


/* 平板设备 */

@media screen and (max-width: 996px) {
	.hero h1 {
		font-size: 2.2rem;
	}
	.device.desktop {
		display: none;
	}
	.mq-box {
		background-color: var(--accent-color);
	}
	.mq-box::after {
		content: "平板设备 (max-width: 992px)";
	}
	
	.banner {
		height: 259px;
	}
	.slide h2 {
		font-size: 1.8rem;
	}
	.slide p {
		font-size: 1.1rem;
	}
	
	
	.index_catalog1 {
		height: 259px;
	}
	.index_catalog1 {
		width: 100%;
		margin: 0 auto;
		height: 280px;
	}
	.index_catalog1 .fl {
		width: 200px;
		height: 200px;
		background: #007AFF;
		margin-left: 1.1rem;
		margin-bottom: 1.1rem;
	}
	.index_about {
		width: 992px;
		margin: 0 auto;
	}
	
}


/* 大屏手机 */

@media screen and (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--secondary-color);
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.5s ease;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}
	nav.active {
		max-height: 300px;
	}
	nav ul {
		flex-direction: column;
		padding: 1rem 0;
	}
	nav li {
		margin: 0;
		text-align: center;
	}
	nav a {
		display: block;
		padding: 0.8rem 1rem;
	}
	.hero {
		padding: 3rem 0;
	}
	.hero h1 {
		font-size: 1.8rem;
	}
	.device.tablet {
		display: none;
	}
	.mq-box {
		background-color: #9b59b6;
	}
	.mq-box::after {
		content: "大屏手机 (max-width: 768px)";
	}
	
	/*banner*/
	.banner {
		height: 201px;
	}
	.banner-nav {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}
	.slide h2 {
		font-size: 1.6rem;
	}
	.slide p {
		font-size: 1rem;
	}
	.slide-content {
		padding: 20px;
		margin: 15px;
	}
	.controls {
		flex-direction: column;
		gap: 15px;
	}
	
	/**/
	.index_catalog1 {
		height: 150px;
	}
	
	.index_about {
		width: 768px;
		margin: 0 auto;
	}
	
}


/* 小屏手机 */

@media screen and (max-width: 576px) {
	.hero h1 {
		font-size: 1.6rem;
	}
	.hero p {
		font-size: 1rem;
	}
	.section-title h2 {
		font-size: 1.8rem;
	}
	.principle-card {
		padding: 1.5rem;
	}
	.device.mobile {
		width: 250px;
	}
	.device.mobile .device-screen {
		height: 400px;
	}
	.mq-box {
		background-color: #2ecc71;
	}
	.mq-box::after {
		content: "小屏手机 (max-width: 576px)";
	}
	
	
	h1 {
		font-size: 2rem;
	}
	.banner {
		height: 151x;
	}
	.slide h2 {
		font-size: 1.4rem;
	}
	.slide p {
		font-size: 0.9rem;
		margin-bottom: 15px;
	}
	.slide-btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.feature {
		font-size: 0.85rem;
		padding: 8px 15px;
	}
	.banner-nav {
		display: none;
		/* 在小屏幕上隐藏导航按钮，使用触摸滑动 */
	}
}


/* 超小屏幕 */

@media screen and (max-width: 400px) {
	.container {
		padding: 0 15px;
	}
	.hero h1 {
		font-size: 1.4rem;
	}
	.device.mobile {
		width: 220px;
	}
	.device.mobile .device-screen {
		height: 350px;
	}
	.mq-box {
		padding: 1.5rem;
	}
	.mq-box::after {
		content: "超小屏幕 (max-width: 400px)";
	}
}