@charset "utf-8";
/* CSS Document */
/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family:  "serif","微软雅黑";	
	
   
}

body {
    font-family: "Microsoft Yahei", Arial, sans-serif;   font-size: 16px;  line-height: 1.6;
    color: #333;
    background-color: #eef1f3;
}
h2{font-size: 40px;margin: 10px 0 50px;}

a{color: #333;text-decoration: none;}
a:hover{text-decoration: none;}
a:visited{text-decoration: none;border: none;}
a:active{text-decoration: none;}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.top-line{background: #fff;height: 38px;line-height: 38px; width: 100%;}
.top-line .login{float: right;margin-right: 10%; color: #03234b;}
.top-line .login a{color: #03234b;margin: 0 6px;}
/* 顶部横幅 */
.banner {
    background: #003366 ;    
    color: white;
	height: auto;
}

.banner-content {
width: 100%;
    display: flex;
    justify-content:flex-start;
    align-items: center;
}
.banner-img{text-align: left;}
.banner-img img{display: block;width: 100%;}
.banner-text{margin-left: 50px;}
.banner-text h1 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
	font-weight: normal;
}

.banner-btn {
    background-color: #ffcc00;
    color: #003366;
    border: none;
    padding: 12px 30px;
    font-size: 30px;    
    border-radius: 4px;
    cursor: pointer;
}

/* 介绍区域 */
.intro {
    
    padding: 30px 0;
}

.intro-text {
    margin-bottom: 20px;
    color: #333;
	background: #fff;
    padding: 40px 60px;
}
.intro-text span{font-size: 16px;font-weight: bold;}
.intro-buttons {
    display: flex;
    justify-content: space-around;
}

.btn-yellow {
    background: url(/images/stm32c5/btn01.png) no-repeat;
    color: #003366;
    border: none;
    cursor: pointer;
	width: 282px; height: 71px;
	font-size: 17px;
	line-height: 80px;
	text-align: center;
}

.btn-blue {
    background: url(/images/stm32c5/btn02.png) no-repeat;  
	color: #003366;
    border: none;
    width: 282px; height: 71px;
	font-size: 17px;
	line-height: 80px;
    cursor: pointer;
	text-align: center;
}

/* 四大优势 */
.advantages {
    padding: 30px 0;
}

.advantages h2 {
    text-align: center;   
    color: #003366;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.advantage-card {
    padding: 20px ;
    border-radius: 4px;
    color: white;
	position: relative;
}
.advantage-card  i{position: absolute; top: 0; right: 0;}
.advantage-card li{list-style: circle;    margin-left: 20px;}
.advantage-card.dark {
    background-color: #03234b;
}

.advantage-card.yellow {
    background-color: #ffd200;
    color: #003366;
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.advantage-card ul {
    list-style: none;
   
}

/* 应用场景 */
.application {
   
    padding: 30px 0;
}

.application h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
}

.application-icons {
    display: flex;
    justify-content: space-around;
}

.app-item {
    text-align: center;
}

.app-item .icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #003366;
}

/* 主推产品 */
.main-products {
    
    color: white;
    padding: 40px 0;
	background: url(/images/stm32c5/bg.png) no-repeat left center #003366;
}

.main-products h2 {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;  
    margin: 0 auto;
	align-items: center;
}

.product-item {
    background-color: #ffcc00;
    color: #003366;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* 开发套件 */
.kits {    
    padding: 30px 0;
}

.kits h2 {
    text-align: center;
    color: #003366;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.kit-item {
    text-align: center;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.kit-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* 技术资源 */
.resources {
    background-color: white;
    padding: 30px 0;
}

.resources h2 {
    text-align: center;
    color: #003366;
}

.resources-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.video-placeholder {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.resource-links p {
    margin-bottom: 15px;
    color: #555;
}
.resource-links a:hover{color: #50bce9;}
.resource-links strong{margin-bottom: 10px;display: inline-block;}
.resource-footer {
    text-align: center;   

}

/* 游戏区域 */
.game-section {
    background: url(/images/stm32c5/bg.jpg) no-repeat right #010e1f;
    color: white;
    padding: 40px 0;
}

.game-title {
    text-align: center;
	margin-top: 30px;
    margin-bottom: 50px;
	position: relative;
}

.game-title .tag {
    background:url(/images/stm32c5/icon-8.png) no-repeat;
    width: 204px;height: 61px;
	position: absolute;	
	left: 160px;
    top: -40px;
	
}

.game-title h2 {
    display: inline;   
}
.game-step{background: url(/images/stm32c5/icon-9.png) no-repeat; width: 160px; height: 51px; text-align: center;line-height: 51px;font-size: 18px;color: #001741;    margin-right: 20px;}

.game-steps {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 30px; 
	background: #1e2c42;
	padding: 8px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.step-item a{color: #fff;text-decoration: underline;}
.step-item a:hover{color: #50bce9;}
.step-check {
    
    background: url(/images/stm32c5/icon-10.png) no-repeat;
    width: 26px;
    height: 26px;    
    display: flex;
   
}

.game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: #2e496b;
    color: white;
    border: none;
    padding: 12px 20px 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
	text-align: left;
	font-size: 20px;
}
.tab-btn span{
    font-weight: bold;
	display: block;
	font-size: 20px;

}
.tab-btn.active {
    background-color: #ffcc00;
    color: #003366;   
}

.tab-content {
    display: none;
    background-color: white;
    color: #333;
    padding: 20px 40px;
    border-radius: 0 4px 4px 4px;
	border: 2px solid #ffcc00;
}

.tab-content.active {
    display: block;
}

.game-table {
    width: 100%;
    border-collapse: collapse;
}

.game-table td {
    border: 1px solid #ddd;
    padding: 15px;
}

.table-btn {
    text-align: center;
}
.table-btn{
    text-align: center;
	margin: 30px auto 20px;
}
.table-btn a{
    background-color: #ffcc00;
    color: #003366;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    cursor: pointer;
}
.table-btn a:hover{background: #03234b;color: #fff;}

.tab-sm{background: #e3f7fe;border-radius: 4px;text-align: center;padding: 12px 20px;margin-bottom: 30px;text-align: left;}
.game-con{background: rgb(60, 180, 230);  border-radius: 20px;    padding: 40px;}
.p-game-box{border: 2px solid #fff;display: inline-block;width: 564px;height: 564px;display: block;margin: 0 auto;}
.p-game-jigsaw-box{width: 100%;}

/* 响应式适配 */
@media (max-width: 1200px) {
.banner-text h1{font-size: 30px;}
.banner-btn{font-size: 22px;    padding: 6px 20px;}
}

@media (max-width: 768px) {
body{font-size: 15px;}
h2 {
    font-size: 30px;
    margin: 0px 0 20px;
}
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .kits-grid {
        grid-template-columns: 1fr;
    }

    .resources-content {
        grid-template-columns: 1fr;
    }
.application {
    padding: 10px 0;
}
.main-products{background-size: cover;    padding: 30px 0;}
    .application-icons {
        gap: 20px;
    }
	.app-item img{width: 100%;}
    .kit-item img{max-width: 170px;}
	.game-title .tag{top: -60px;left: 10px;}
    .game-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 4px;
        margin-bottom: 5px;
		padding: 6px 20px 6px 20px;
		font-size: 18px;
    }
    .tab-btn span{
	   font-size: 18px;
	}
    .tab-btn.active {
        border-radius: 4px;
    }
	.game-steps {
      display: inline-block;
	  width: 100%;
	  background: none;
	  margin-bottom: 10px;
	  }
	.game-step{
	  margin-bottom: 15px;
	}  
	.step-item{
	   margin-bottom: 10px;
	 }
	.intro-text{
	padding: 20px;
	}
	.intro-buttons {
       display: inline-block;
       justify-content: normal;
       text-align: center;
	   }
	.btn-yellow, .btn-blue{display: inline-block;}
.banner-content {
width: 100%;
    display: inline-block;
    justify-content:flex-start;
    align-items: center;
}
.banner-img{display: none;}
.banner-text{margin: 20px;}
.banner-text h1{font-size: 26px;}
.banner-btn{font-size: 20px;    padding: 6px 12px;}
.tab-content{padding: 10px;}
.game-con{padding: 10px;}
.tab-sm{margin-bottom: 15px;}
.p-game-box{width: 100%; height: 100%;}
.p-game-jigsaw-box img{width: 100%;}
}
