/* 覆盖pages.css中的样式，修复hero区域图片显示问题 */

/* 基础样式 */
.topway-hero.hero-slider {
    position: relative !important;
    overflow: hidden !important;
    color: var(--text-light) !important;
    text-align: left !important;
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    max-height: 800px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.hero-slides {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.hero-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* 响应式调整 */
/* 大屏幕显示器 */
@media (min-width: 1001px) {
    .topway-hero.hero-slider {
        height: calc(100vw / 1.77865) !important;
        max-height: 1000px !important;
        min-height: 700px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .hero-slide {
        background-position: center top !important;
    }
}

/* 1001px到1200px分辨率区间，修复banner右侧裁剪问题 */
@media (min-width: 1001px) and (max-width: 1200px) {
    .hero-slide {
        background-size: contain !important;
    }
    
    /* 修复hero-dots位置，使其位于图片底部 */
    .topway-hero .hero-dots,
    .hero-slider .hero-dots {
        bottom: 100px !important;
        transform: translateX(-50%) !important;
        z-index: 3 !important;
    }
}

/* 超大屏幕（1800px以上） */
@media (min-width: 1801px) {
    .topway-hero.hero-slider {
        height: calc(100vw / 1.77865) !important;
        min-height: auto !important;
        max-height: none !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    .hero-slides {
        height: 100% !important;
        min-height: auto !important;
        overflow: hidden !important;
    }

    .hero-slide {
        height: 100% !important;
        background-position: top center !important;
        background-size: cover !important;
    }
}

/* 中等屏幕 */
@media (max-width: 1000px) {
    .topway-hero.hero-slider {
        max-height: 700px !important;
        min-height: 450px !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-slides {
        height: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .hero-slide {
        background-position: center center !important;
        background-size: contain !important;
        width: 100% !important;
        height: 100% !important;
        background-repeat: no-repeat !important;
        overflow: hidden !important;
    }
}

/* 平板设备 */
@media (max-width: 768px) {
    .topway-hero.hero-slider {
        height: 70vh !important;
        max-height: 340px !important;
        min-height: auto !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-slides {
        height: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .hero-slide {
        background-position: center center !important;
        background-size: contain !important;
        width: 100% !important;
        height: 100% !important;
        background-repeat: no-repeat !important;
        overflow: hidden !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .topway-hero.hero-slider {
        height: 60vh !important;
        max-height: 400px !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hero-slides {
        height: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .hero-slide {
        background-position: center center !important;
        background-size: contain !important;
        width: 100% !important;
        height: 100% !important;
        background-repeat: no-repeat !important;
        overflow: hidden !important;
    }
}

.category-card {
    width: 100% !important;
    height: 100% !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {
    .categories-grid {
        margin-top: 20px !important;
    }
}
.case-grid {
    margin-top: 40px !important;
}
.site,
#page{
background-color: #fff !important;
}


/* .page-hero 背景图片自适应样式 - 适配1920*430尺寸图片 */
.page-hero,
body .page-hero,
#page .page-hero,
.site .page-hero,
#primary .page-hero,
.site-content .page-hero,
#content .page-hero,
body.page-template-page-product .page-hero,
body.page-template-page-solution .page-hero,
body.page-template-page-news .page-hero,
body.page-template-page-aboutus .page-hero,
body.page-template-page-contact .page-hero,
.page-product .page-hero,
.page-solution .page-hero,
.page-news .page-hero,
.page-aboutus .page-hero,
.page-contact .page-hero,
.archive-qa .page-hero,
.case .page-hero {
     
    position: relative !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: auto !important;
    padding-top: calc(430 / 1920 * 100%) !important;
    min-height: 200px !important;
    max-height: 430px !important;
    overflow: hidden !important;
}

/* 大屏幕显示器 */
@media (min-width: 1200px) {
    .page-hero,
body .page-hero,
#page .page-hero,
.site .page-hero,
#primary .page-hero,
.site-content .page-hero,
#content .page-hero,
body.page-template-page-product .page-hero,
body.page-template-page-solution .page-hero,
body.page-template-page-news .page-hero,
body.page-template-page-aboutus .page-hero,
body.page-template-page-contact .page-hero,
.page-product .page-hero,
.page-solution .page-hero,
.page-news .page-hero,
.page-aboutus .page-hero,
.page-contact .page-hero,
.archive-qa .page-hero,
.case .page-hero {
        padding-top: calc(430 / 1920 * 100%) !important;
        background-size: contain !important;
    }
}

/* 中等屏幕 */
@media (min-width: 769px) and (max-width: 1199px) {
    .page-hero,
body .page-hero,
#page .page-hero,
.site .page-hero,
#primary .page-hero,
.site-content .page-hero,
#content .page-hero,
body.page-template-page-product .page-hero,
body.page-template-page-solution .page-hero,
body.page-template-page-news .page-hero,
body.page-template-page-aboutus .page-hero,
body.page-template-page-contact .page-hero,
.page-product .page-hero,
.page-solution .page-hero,
.page-news .page-hero,
.page-aboutus .page-hero,
.page-contact .page-hero,
.archive-qa .page-hero,
.case .page-hero {
        padding-top: calc(430 / 1920 * 100%) !important;
        background-size: contain !important;
        background-position: center top !important;
    }
}

/* 平板设备 */
@media (min-width: 481px) and (max-width: 768px) {
    .page-hero,
body .page-hero,
#page .page-hero,
.site .page-hero,
#primary .page-hero,
.site-content .page-hero,
#content .page-hero,
body.page-template-page-product .page-hero,
body.page-template-page-solution .page-hero,
body.page-template-page-news .page-hero,
body.page-template-page-aboutus .page-hero,
body.page-template-page-contact .page-hero,
.page-product .page-hero,
.page-solution .page-hero,
.page-news .page-hero,
.page-aboutus .page-hero,
.page-contact .page-hero,
.archive-qa .page-hero,
.case .page-hero {
        padding-top: calc(430 / 1920 * 100%) !important;
        background-size: contain !important;
        background-position: center top !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .page-hero,
body .page-hero,
#page .page-hero,
.site .page-hero,
#primary .page-hero,
.site-content .page-hero,
#content .page-hero,
body.page-template-page-product .page-hero,
body.page-template-page-solution .page-hero,
body.page-template-page-news .page-hero,
body.page-template-page-aboutus .page-hero,
body.page-template-page-contact .page-hero,
.page-product .page-hero,
.page-solution .page-hero,
.page-news .page-hero,
.page-aboutus .page-hero,
.page-contact .page-hero,
.archive-qa .page-hero,
.case .page-hero {
        padding-top: calc(430 / 1920 * 100%) !important;
        min-height: 120px !important;
        background-size: contain !important;
        background-position: center top !important;
    }
}

/* 时间线样式 */
	.company-history .history-timeline {
		position: relative;
		max-width: 1200px;
		margin: 0 auto;
		padding: 1px 0;
	}

	/* 时间线连接线 - 固定在左侧 */
	.company-history .history-timeline::after {
		content: '';
		position: absolute;
		width: 4px;
		background-color: #16D572;
		top: 0;
		bottom: 20px;
		left: 30px;
		z-index: 1;
	}

	/* 时间线底部绿色小箭头 */
	.company-history .history-timeline::before {
		content: '';
		position: absolute;
		bottom: 1px;
		left: 20px;
        /* top: 0; */
		width: 0;
		height: 0;
		border-left: 12px solid transparent;
		border-right: 12px solid transparent;
		border-top: 20px solid #16D572;
		z-index: 2;
	}

	/* 时间线容器 - 宽度100%，内容在右侧 */
	.company-history .timeline-container {
		position: relative;
		background-color: inherit;
		width: 100%;
		padding: 0 0 0 80px;
		box-sizing: border-box;
		display: block;
	}

	/* 时间线圆点 - 固定在左侧时间线上 */
	.company-history .timeline-dot {
		position: absolute;
		width: 20px;
		height: 20px;
		background-color: #333;
		border: 4px solid #333;
		border-radius: 50%;
		top: 20px;
		left: 21px;
		z-index: 10;
	}
    /* .company-history .timeline-right-arrow{
        position: absolute;
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-right: 20px solid #c1bebe;
        top: 15px;
        left: 60px;
        z-index: 2;
    } */


    /* 奇数时间线容器内的箭头颜色 - 白色箭头 */
    /* .company-history .timeline-container:nth-child(odd) .timeline-right-arrow {
        border-right: 20px solid #f5f5f5;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    } */

    /* 偶数时间线容器内的箭头颜色 - 棕色箭头 */
    /* .company-history .timeline-container:nth-child(even) .timeline-right-arrow {
        border-right: 20px solid #635C4A;
    } */
	/* 右侧时间线容器 - 不再分左右，统一在右侧内容区 */
	.company-history .timeline-right {
		left: 0;
		flex-direction: row;
	}

	/* 右侧时间线圆点 - 位置不变 */
	.company-history .timeline-right .timeline-dot {
		left: 21px;
		right: auto;
	}

	/* 时间线内容 - 并排布局的容器 */
	.company-history .timeline-content {
		display: flex;
		flex-direction: row;
		margin-bottom: 60px;
		padding: 0;
		background-color: transparent;
		box-shadow: none;
		flex: none;
		max-width: 100%;
	}
    .company-history .nobottom{
        margin-bottom: 0;
    }

	/* 历史内容区域 - 占一半宽度 */
	.company-history .timeline-content .history-content {
		padding: 25px;
		background-color: white;
		border-radius: 8px 0 0 8px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
		width: 35%;
		max-width: none;
		flex: 1;
	}

	/* 历史图片容器 - 占一半宽度 */
	.company-history .timeline-image {
		width: 65%;
		max-width: none;
		margin: 0;
		text-align: center;
		flex: 1;
	}
	/* 历史图片样式 - 完整显示，不裁剪 */
	.company-history .history-image img {
		width: 100%;
		height: auto;
		object-fit: contain;
		border-radius:0 8px 8px 0;
		/* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
		display: block;
		max-height: 540px;
	}

	/* 历史年份样式 */
	.company-history .history-year {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-green);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
	}
    .history-year i {
    margin-right: 10px;
    font-size: 1.3rem;
}
	/* 历史标题样式 */
	.company-history .history-content h3 {
		margin-top: 0;
		margin-bottom: 15px;
		color: #333;
		font-size: 1.5rem;
	}

	/* 历史段落样式 */
	.company-history .history-content p {
		margin: 0;
		color: #666;
		line-height: 1.6;
		font-size: 1rem;
	}
    	/* 偶数项（右文） - 左右顺序颠倒 */
	.company-history .timeline-right  {
		flex-direction: row-reverse;
	}

	/* 右侧布局时的内容区域 - 绿色背景 */
	.company-history .timeline-right  .history-content {
		background-color: #16D572;
		color: white;
	}

	/* 右侧布局时的标题和段落颜色 */
    .company-history .timeline-right .history-year,
	.company-history .timeline-right .history-content h3,
	.company-history .timeline-right .history-content p {
		color: white;
	}
   
    .company-history .timeline-right  .history-content{
       border-radius:0 8px 8px 0;
    }
    .company-history .timeline-right  .history-image img {
    border-radius: 8px 0 0 8px;
    }
	/* 平板设备 (992px以下) */
	@media screen and (max-width: 992px) {


		/* 隐藏时间线连接线 */
		.company-history .history-timeline::after {
			display: none !important;
		}

		/* 隐藏时间线底部箭头 */
		.company-history .history-timeline::before {
			display: none !important;
		}

		/* 隐藏时间线圆点 */
		.company-history .timeline-dot,
		.company-history .timeline-right .timeline-dot {
			display: none !important;
		}

		/* 隐藏时间线右侧箭头 */
		.company-history .timeline-right-arrow {
			display: none !important;
		}

		/* 时间线容器宽度100%，移除左侧内边距 */
		.company-history .timeline-container,
		.company-history .timeline-right {
			width: 100%;
			padding-left: 25px;
			padding-right: 25px;
			left: 0;
		}

		/* 时间线内容 - 单列布局，上图下文 */
		.company-history .timeline-content {
			/* flex-direction: column; */
            flex-direction: column-reverse !important;
			gap: 20px;
            margin-bottom: 0;
		}

		/* 时间线右侧内容 - 单列布局，上图下文 */
		.company-history .timeline-right {
			flex-direction: column;
			gap: 20px;
		}

		/* 时间线右侧内容的内部容器 - 上图下文 */
		.company-history .timeline-right .timeline-content {
			flex-direction: column !important;
		}

		/* 时间线圆点位置 */
		.company-history .timeline-dot,
		.company-history .timeline-right .timeline-dot {
			left: 21px;
			right: auto;
			top: 40px;
			display: block !important;
			z-index: 10 !important;
		}
        .company-history .timeline-right-arrow{
            left: 30px;
			right: auto;
			top: 40px;
			display: block !important;
			z-index: 1 !important;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            border-right: 15px solid #c1bebe;
        }
         .company-history .timeline-container:nth-child(even) .timeline-right-arrow {
        border-right: 15px solid #635C4A;
    }
		/* 历史内容区域 */
		.company-history .timeline-content .history-content,
		.company-history .timeline-right .history-content {
			min-width: auto;
			width: 100%;
			border-radius: 8px !important;
		}

		/* 历史图片容器 - 始终在上方 */
		.company-history .timeline-image,
		.company-history .timeline-content .timeline-image,
		.company-history .timeline-right .timeline-image {
			min-width: auto;
			width: 100%;
			order: -1 !important;
		}


		/* 历史图片样式 */
		.company-history .history-image img,
		.company-history .timeline-right .history-image img {
			min-height: 200px;
			border-radius: 8px !important;
			max-height: 300px;
		}

		/* 历史年份样式 */
		.company-history .history-year {
			font-size: 1.3rem;
		}

		/* 历史标题样式 */
		.company-history .history-content h3 {
			font-size: 1.25rem;
		}
	}

	/* 平板设备 (768px以下) */
	@media screen and (max-width: 768px) {
   

		/* 时间线容器宽度100% */
		.company-history .timeline-container,
		.company-history .timeline-right {
			padding-left: 60px;
			padding-right: 15px;
		}


		/* 历史图片容器 - 始终在上方 */
		.company-history .timeline-image,
		.company-history .timeline-content .timeline-image,
		.company-history .timeline-right .timeline-image {
			min-width: auto;
			width: 100%;
			order: -1 !important;
		}

		/* 确保所有时间线项都采用上图下文布局 */
		.company-history .timeline-content {
			flex-direction: column-reverse !important;
            flex: 1;
			gap: 20px;
		}

		/* 确保右侧时间线项也采用上图下文布局 */
		.company-history .timeline-right .timeline-content {
			flex-direction: column !important;
			gap: 20px;
		}

		/* 历史内容区域 */
		.company-history .timeline-content .history-content,
		.company-history .timeline-right .history-content {
			padding: 20px;
		}

		/* 历史图片样式 */
		.company-history .history-image img,
		.company-history .timeline-right .history-image img {
			min-height: 150px;
			max-height: 250px;
		}

		/* 历史年份样式 */
		.company-history .history-year {
			font-size: 1.1rem;
		}

		/* 历史标题样式 */
		.company-history .history-content h3 {
			font-size: 1.1rem;
			margin-bottom: 10px;
		}

		/* 历史段落样式 */
		.company-history .history-content p {
			font-size: 0.9rem;
		}
	}
/* ====================================================
   Hero Slide Title: H2 降级标签样式与 H1 保持一致
   SEO: 第2/3张幻灯片标题降级为 H2，但视觉样式不变
   ==================================================== */
.topway-hero-content .hero-slide-title,
.hero-slide .hero-slide-title {
    width: 100%;
    max-width: 700px;
    font-family: "PingFang SC", "Roboto", sans-serif;
    font-weight: 500;
    font-size: 42px;
    color: #FFFFFF;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    font-style: normal;
    text-transform: none;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    box-sizing: border-box;
    overflow: visible;
    word-break: break-word;
}

@media (max-width: 768px) {
    .topway-hero-content .hero-slide-title,
    .hero-slide .hero-slide-title {
        font-size: 28px;
    }
}