/* 首页专属样式 home.css */

/* ========================
   焦点新闻大图轮播
   ======================== */
.banner-swiper {
	width: 100%;
	height: 400px;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	margin-bottom: 30px;
}

.banner-swiper .swiper-slide {
	position: relative;
	width: 100%;
	height: 100%;
}

.banner-swiper .swiper-slide a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.banner-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 5s ease;
}

.banner-swiper .swiper-slide a:hover img {
	transform: scale(1.05);
}

.banner-swiper .slide-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 50px 20px 20px;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
	box-sizing: border-box;
	z-index: 2;
}

.banner-swiper .slide-caption h3 {
	font-size: 20px;
	line-height: 28px;
	color: #fff;
	font-weight: bold;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.banner-swiper .swiper-pagination {
	bottom: 15px !important;
	text-align: right;
	padding-right: 20px;
	box-sizing: border-box;
}

.banner-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: rgba(255,255,255,0.6);
	opacity: 1;
	margin: 0 4px !important;
}

.banner-swiper .swiper-pagination-bullet-active {
	background: #d50011;
	width: 20px;
	border-radius: 4px;
}

/* ========================
   最新资讯列表（首页微调）
   ======================== */
.index-news {
	margin-bottom: 30px;
}

.index-news .list li .wen .w01 a:hover,
.index-news .list li .nopic_wen .w01 a:hover {
	color: #d50110;
}

/* ========================
   热门推荐
   ======================== */
.hot-rec {
	margin-bottom: 10px;
}

.hot-rec-grid {
	width: 100%;
	overflow: hidden;
	margin-top: 15px;
}

.hot-rec-grid .rec-item {
	width: calc(50% - 10px);
	float: left;
	margin-right: 20px;
	margin-bottom: 20px;
	background-color: #fff;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.hot-rec-grid .rec-item:nth-child(2n) {
	margin-right: 0;
}

.hot-rec-grid .rec-item:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hot-rec-grid .rec-item .pic {
	width: 100%;
	height: 180px;
	overflow: hidden;
	display: block;
}

.hot-rec-grid .rec-item .pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.hot-rec-grid .rec-item:hover .pic img {
	transform: scale(1.05);
}

.hot-rec-grid .rec-item h4 {
	padding: 12px 15px 15px;
	font-size: 15px;
	line-height: 22px;
	color: #333;
	font-weight: normal;
	height: 44px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hot-rec-grid .rec-item h4 a:hover {
	color: #d50110;
}

/* ========================
   右侧边栏 - 通用卡片
   ======================== */
.rbar .side-box {
	width: 100%;
	padding: 20px;
	box-sizing: border-box;
	background-color: #fff;
	margin-bottom: 20px;
}

.rbar .side-box .title {
	margin-bottom: 15px;
}

/* ========================
   热门点击排行
   ======================== */
.rank-list {
	width: 100%;
}

.rank-list li {
	width: 100%;
	overflow: hidden;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
}

.rank-list li:last-child {
	margin-bottom: 0;
}

.rank-list li .num {
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 12px;
	color: #666;
	background-color: #eee;
	border-radius: 4px;
	margin-right: 10px;
	flex-shrink: 0;
	font-weight: bold;
}

.rank-list li:nth-child(1) .num,
.rank-list li:nth-child(2) .num,
.rank-list li:nth-child(3) .num {
	background-color: #d50011;
	color: #fff;
}

.rank-list li a {
	flex: 1;
	font-size: 14px;
	line-height: 22px;
	color: #333;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.rank-list li a:hover {
	color: #d50110;
}

/* ========================
   图片推荐位
   ======================== */
.ad-box a {
	display: block;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.ad-box a img {
	width: 100%;
	display: block;
	transition: transform 0.5s ease;
}

.ad-box a:hover img {
	transform: scale(1.03);
}

.ad-box .ad-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: 30px 12px 10px;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
	box-sizing: border-box;
}

.ad-box .ad-caption span {
	color: #fff;
	font-size: 14px;
	line-height: 20px;
}

/* ========================
   資訊速遞（垂直數軸）
   ======================== */
.timeline {
	width: 100%;
	position: relative;
	padding-left: 18px;
	box-sizing: border-box;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(to bottom, #e8e8e8 0%, #d50011 50%, #e8e8e8 100%);
}

.timeline-item {
	position: relative;
	padding-bottom: 18px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-dot {
	position: absolute;
	left: -18px;
	top: 6px;
	width: 10px;
	height: 10px;
	background-color: #fff;
	border: 2px solid #d50011;
	border-radius: 50%;
	box-sizing: border-box;
	z-index: 2;
	transition: all 0.3s ease;
}

.timeline-item:first-child .timeline-dot {
	background-color: #d50011;
	border-color: #d50011;
	box-shadow: 0 0 0 3px rgba(213, 0, 17, 0.15);
}

.timeline-item:hover .timeline-dot {
	background-color: #d50011;
	border-color: #d50011;
	transform: scale(1.2);
}

.timeline-content {
	padding-left: 10px;
}

.timeline-date {
	display: inline-block;
	font-size: 12px;
	color: #999;
	line-height: 1;
	margin-bottom: 6px;
}

.timeline-content h4 {
	font-size: 14px;
	line-height: 22px;
	font-weight: normal;
	margin-bottom: 5px;
}

.timeline-content h4 a {
	color: #333;
	transition: color 0.3s ease;
}

.timeline-content h4 a:hover {
	color: #d50110;
}

.timeline-content p {
	font-size: 12px;
	line-height: 18px;
	color: #888;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
