﻿/*
Theme Name: Kuchu
Theme URI: https://kochef.cn/
Author: Kuchu
Author URI: https://kochef.cn/
Description: 酷厨厨具 WordPress 主题，基于 SteelNova 设计的制造工程行业网站主题。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuchu
Tags: manufacturing, engineering, industrial, woocommerce, elementor
*/

/* 主题样式由 html/css/ 目录下的文件提供 */

/* === 页面内容区占满屏幕宽度（不影响 header/footer 菜单） === */

/* 仅取消 main 内容区外层容器的最大宽度限制 */
/* 各 Elementor 区块保留 inline.css 中设定的 --content-width */
.kuchu-front-page #main .container {
	max-width: 100% !important;
	width: 100% !important;
	--cs-container: 100%;
}

.kuchu-front-page #main {
	padding: 0 !important;
}

/* 首页内容紧贴顶部，不被 header 挤压（header-transparent 为绝对定位悬浮） */
.kuchu-front-page #main .inner {
	padding: 0 !important;
}

/* === 关于我们页面内容区占满屏幕宽度 === */
.kuchu-about-page #main .container {
	max-width: 100% !important;
	width: 100% !important;
	--cs-container: 100%;
}

.kuchu-about-page #main {
	padding: 0 !important;
}

.kuchu-about-page #main .inner {
	padding: 0 !important;
}

/* === 联系我们页面内容区占满屏幕宽度 === */
.kuchu-contact-page #main .container {
	max-width: 100% !important;
	width: 100% !important;
	--cs-container: 100%;
}

.kuchu-contact-page #main {
	padding: 0 !important;
}

.kuchu-contact-page #main .inner {
	padding: 0 !important;
}

/* === 通用页面内容排版 === */
.page #main .inner {
	padding: 100px 15px;
}

.page .entry-content {
	max-width: 825px;
	margin: 0 auto;
}

.page .entry-content p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.625;
	margin-bottom: 12px;
}

.page .entry-content p:last-child {
	margin-bottom: 0;
}

.page .entry-content h2,
.page .entry-content .heading .heading__title {
	color: #0A1119;
	font-family: "Plus Jakarta Sans", Sans-serif;
	font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
	font-weight: 600;
	line-height: 1.41667;
	margin-top: 30px;
	margin-bottom: 10px;
}

.page .entry-content h3 {
	color: #0A1119;
	font-family: "Plus Jakarta Sans", Sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.41667;
	margin-top: 40px;
	margin-bottom: 20px;
}

.page .entry-content h4 {
	color: #0A1119;
	margin-top: 18px;
	margin-bottom: 10px;
}

.page .entry-content h5,
.page .entry-content h6 {
	color: #0A1119;
	margin-top: 20px;
	margin-bottom: 10px;
}

.page .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 35px 0;
}

.page .entry-content blockquote {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 38px;
	background: none;
	color: inherit;
	border-radius: 20px;
	padding: 43px 45px;
	margin: 38px 0;
}

.page .entry-content blockquote p {
	color: inherit;
	font-size: 18px;
	line-height: 1.4444;
}

.page .entry-content blockquote cite {
	color: inherit;
	font-family: "Plus Jakarta Sans", Sans-serif;
	font-weight: 600;
	line-height: 1.625;
	font-style: normal;
	margin-top: 26px;
	display: block;
}

.page .entry-content a {
	color: #ac231d;
	text-decoration: none;
	transition: color 0.3s;
}

.page .entry-content a:hover {
	color: #0A1119;
}

.page .entry-content ul,
.page .entry-content ol {
	padding-left: 20px;
	margin-bottom: 12px;
}

.page .entry-content li {
	font-size: 16px;
	line-height: 1.625;
	margin-bottom: 6px;
}

@media (max-width: 991px) {
	.page #main .inner {
		padding: 80px 15px;
	}

	.page .entry-content blockquote {
		padding: 30px;
		gap: 30px;
	}
}

@media (max-width: 576px) {
	.page #main .inner {
		padding: 60px 15px;
	}

	.page .entry-content {
		max-width: 100%;
	}
}

/* === 404 页面样式 === */
.error-404 {
	text-align: center;
	padding: 100px 15px;
}

.error-404__number {
	font-family: "Plus Jakarta Sans", Sans-serif;
	font-size: clamp(6rem, 3rem + 8vw, 15.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -1.92px;
	color: #0A1119;
	margin-bottom: 10px;
}

.error-404__title {
	font-family: "Plus Jakarta Sans", Sans-serif;
	font-size: clamp(1.625rem, 1.3625rem + 1.3125vw, 2.9375rem);
	font-weight: 600;
	line-height: 1.21277;
	color: #0A1119;
	margin-bottom: 20px;
}

.error-404__text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.625;
	color: #7A7A7A;
	max-width: 540px;
	margin: 0 auto 40px;
}

.error-404__button {
	display: inline-flex;
}

@media (max-width: 991px) {
	.error-404 {
		padding: 80px 15px;
	}
}

@media (max-width: 576px) {
	.error-404 {
		padding: 60px 15px;
	}
}

/* === 表单验证码样式（首页/联系页面共用） === */
.kuchu-captcha-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}

.kuchu-captcha-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	width: fit-content;
}

.kuchu-captcha-wrapper .kuchu-captcha-input {
	width: 160px !important;
	max-width: 160px;
	height: 52px !important;
	border-radius: 100px !important;
	flex-shrink: 0;
}

.kuchu-captcha-wrapper .kuchu-captcha-img {
	flex-shrink: 0;
	height: 52px !important;
	width: auto !important;
	border: 1px solid #0000001A;
	border-radius: 100px;
	cursor: pointer;
	vertical-align: middle;
	object-fit: contain;
	padding: 6px 8px;
	background: #fafafa;
}

.kuchu-captcha-wrapper .kuchu-captcha-refresh {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border: 1px solid #0000001A;
	border-radius: 100px;
	background: #fafafa;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.kuchu-captcha-wrapper .kuchu-captcha-refresh:hover {
	background: #eee;
}

/* === 产品列表模式：简介显示两行 === */
.woocommerce .products-grid[data-layout="list"] .product__short-description {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === 首页新闻轮播：固定图片高度 === */
.cs-posts-carousel.is-news-carousel .post__featured-image {
	height: 240px;
}

.cs-posts-carousel.is-news-carousel .post__featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.cs-posts-carousel.is-news-carousel .post__featured-image {
		height: 200px;
	}
}

/* === Work Process 板块用户头像圆形样式 === */
/* Work Process Section - User Avatar Circle Style */
.elementor-element.elementor-element-4757011 .image-wrapper img,
.elementor-element.elementor-element-7d033a3 .image-wrapper img,
.elementor-element.elementor-element-82ea9b6 .image-wrapper img {
	width: 55px;
	height: 55px;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #FFFFFF;
}

/* === Work Process 板块特色项图标图片样式 === */
/* Work Process Section - Icon Box Custom Image Style */
.cs-icon-box__icon-img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* === Testimonials 评价板块：合作伙伴标题和内容上下居中对齐 === */
/* Testimonials Section - Partners Title and Carousel Vertical Center Alignment */
.elementor-element.elementor-element-76657d0 {
	align-items: center !important;
}

.elementor-element.elementor-element-76657d0 .elementor-widget {
	align-self: center !important;
}

/* 合作伙伴轮播图片尺寸限制 */
.elementor-element.elementor-element-76657d0 .cs-icons-carousel .cs-icon-wrapper img {
	max-height: 60px;
	max-width: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.elementor-element.elementor-element-76657d0 .cs-icons-carousel .carousel__item {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* === 文章列表摘要三行截断 === */
.post__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* === Schedule a Free Consultation 表单样式 === */
/* Form input/textarea border and font fix */
.kuchu-contact-form-wrapper .wpcf7-form-control,
.kuchu-consultation-form .wpcf7-form-control {
	font-family: "DM Sans", Sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #000000BF;
	border-style: solid;
	border-width: 1px;
	border-color: #0000001A;
	background-color: #fff;
	transition: border-color 0.2s ease;
}

.kuchu-contact-form-wrapper input.wpcf7-form-control,
.kuchu-consultation-form input.wpcf7-form-control {
	height: 52px;
	border-radius: 100px;
	padding: 0 16px;
}

.kuchu-contact-form-wrapper textarea.wpcf7-form-control,
.kuchu-consultation-form textarea.wpcf7-form-control {
	min-height: 129px;
	border-radius: 15px;
	padding: 11px 16px;
	resize: vertical;
}

/* Placeholder font fix */
.kuchu-contact-form-wrapper .wpcf7-form-control::placeholder,
.kuchu-consultation-form .wpcf7-form-control::placeholder {
	font-family: "DM Sans", Sans-serif;
	font-size: 15px;
	color: #00000080;
}

/* Focus state */
.kuchu-contact-form-wrapper .wpcf7-form-control:focus,
.kuchu-consultation-form .wpcf7-form-control:focus {
	outline: none;
	border-color: #ac231d;
}

/* Label style */
.kuchu-contact-form-wrapper label,
.kuchu-consultation-form label {
	font-family: "DM Sans", Sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #000000BF;
	margin-bottom: 4px;
	display: block;
}

/* === Why Choose Us 视频封面居中显示 === */
/* Video poster background center alignment */
.elementor-element-0ebec9f {
	background-position: center center !important;
	background-repeat: no-repeat !important;
	overflow: hidden;
}

/* === 视频弹窗样式 === */
/* Video popup modal styles */
.video-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.video-popup__inner {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
}

.video-popup__inner iframe,
.video-popup__inner video {
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
}

/* === 文章列表页面上边距 === */
/* Articles listing page top spacing */
.blog #main .inner,
.archive #main .inner {
	padding: 140px 15px 80px;
}

@media (max-width: 991px) {
	.blog #main .inner,
	.archive #main .inner {
		padding: 100px 15px 60px;
	}
}

@media (max-width: 576px) {
	.blog #main .inner,
	.archive #main .inner {
		padding: 60px 15px 50px;
	}
}

/* === 面包屑样式 === */
/* Breadcrumb styles */
.steelnova-breadcrumb span,
.steelnova-breadcrumb span a {
	color: #FFFFFF !important;
}