/* =================================
   首页专用样式
   ================================= */

/* 首页文章列表和分类样式 */
.post-meta {
	color: #999;
	font-size: 14px;
	margin: 10px 0;
}

.post-meta i {
	margin-right: 5px;
}

.badge {
	background-color: #d83127;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	margin-left: 10px;
}

.pagination-wrapper {
	margin: 30px 0;
	text-align: center;
}

.no-posts {
	text-align: center;
	padding: 40px 0;
}

.search-form {
	margin: 20px 0;
}

.category-description,
.tag-description,
.term-description {
	background-color: #f8f9fa;
	padding: 15px;
	border-left: 4px solid #d83127;
	margin: 20px 0;
}

.archive-posts {
	margin: 20px 0;
}

/* 响应式调整 */
@media (max-width: 767px) {
	.col-sm-1 {
		margin-bottom: 10px;
	}
	
	.col-sm-5 {
		margin-bottom: 10px;
	}
	
	.slide-box {
		height: 250px;
	}
	
	.flicking_con {
		top: 220px;
	}
}

/* 轮播图相关样式 */
*{margin:0;padding:0;list-style:none; }

.slide-box{
	width: 100%; 
	position: relative;
	overflow: hidden;
	/* 使用padding-bottom来设置固定宽高比 */
	padding-bottom: 35%; /* 这将创建一个大约3:1的宽高比 */
	height: 0;
}

.main_visual{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: #CCCCCC;
}

.main_image{
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	background: #e5e5e5;
}

.main_image ul{
	width: 9999px;
	height: 100%;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

.main_image li{
	float: left;
	width: 100%;  /* 宽度将由JavaScript动态设置 */
	height: 100%;
}

.main_image li span{
	height: 100%;
	width: 100%;
	display: block;
	background-position: center center;
	background-size: cover;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-repeat: no-repeat;
}

.main_image li a{
	display: block;
	width: 100%;
	height: 100%;
}

/* 响应式调整 */
@media (max-width: 480px){
	.slide-box{
		padding-bottom: 50%; /* 移动端使用2:1的宽高比 */
	}
}

@media (min-width: 481px) and (max-width: 768px){
	.slide-box{
		padding-bottom: 40%; /* 平板端使用2.5:1的宽高比 */
	}
}

@media (min-width: 769px){
	.slide-box{
		padding-bottom: 30%; /* 桌面端使用3.33:1的宽高比 */
	}
}

@media (min-width: 1200px){
	.slide-box{
		padding-bottom: 25%; /* 大屏幕使用4:1的宽高比 */
	}
}

div.flicking_con{
	position: absolute;
	bottom: 20px;
	left: 50%;
	z-index: 999;
	width: 300px;
	height: 21px;
	margin: 0 0 0 -150px;
	transform: translateX(50%);
}

div.flicking_con a{
	float: left;
	width: 21px;
	height: 21px;
	margin: 0 5px;
	padding: 0;
	background: url('../../assets/images/btn_main_img.png') 0 0 no-repeat;
	display: block;
	border-radius: 50%;
	transition: all 0.3s ease;
	text-align: center;
	line-height: 21px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

div.flicking_con a.on{
	background-position: 0 -21px;
}

#btn_prev,#btn_next{
	z-index: 11111;
	position: absolute;
	display: block;
	width: 53px!important;
	height: 54px!important;
	top: 50%;
	margin-top: -27px;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

#btn_prev:hover,#btn_next:hover{
	opacity: 1;
}

#btn_prev{
	background-image: url(../../assets/images/hover_left.png);
	left: 20px;
}

#btn_next{
	background-image: url(../../assets/images/hover_right.png);
	right: 20px;
}

/* 响应式调整按钮位置 */
@media (max-width: 768px){
	div.flicking_con{
		bottom: 10px;
		width: 200px;
		margin: 0 0 0 -100px;
	}
	
	#btn_prev{
		left: 10px;
		width: 40px!important;
		height: 40px!important;
	}
	
	#btn_next{
		right: 10px;
		width: 40px!important;
		height: 40px!important;
	}
}

/* 新闻区域样式 */
.news-section {
    background-color: #f2f2f2;
    padding: 15px 0;
}

.news-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.news-link {
    text-decoration: none;
    color: #333;
}

.news-link:hover {
    text-decoration: none;
    color: #d83127;
}

.news-more {
    text-align: center;
}

.more-link {
    color: #999;
    font-weight: bold;
    text-decoration: none;
}

.more-link:hover {
    color: #d83127;
    text-decoration: none;
}

.product-title-home {
    font-size: 17px;
    font-weight: bold;
} 