@charset "UTF-8";

/* Topbar vertical alignment fix */
.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-description {
	margin: 0;
	padding: 8px 0;
	line-height: 1.5;
}

.menu-secondary-container {
	float: none;
}

.wpcf7-not-valid-tip {
	margin-top: 5px;
	font-weight: 700;
	font-size: 1.2em;
}

.wpcf7 form .wpcf7-response-output {
	padding: 0.4em 1em;
	border: 4px solid #dc3232;
	color: #dc3232;
	font-weight: bold;
	font-size: 18px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #dc3232;
}

/* Manufacturing List - Align text area height with image */
@media screen and (min-width: 48em) {
	#product-list-field li {
		align-items: stretch;
	}
	
	#product-list-field .img {
		align-self: stretch;
	}
	
	#product-list-field .img a {
		display: block;
		height: 100%;
	}
	
	#product-list-field .img img {
		height: 100%;
		object-fit: cover;
	}
	
	#product-list-field .txt-area {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-self: stretch;
	}
	
	#product-list-field .txt-area .txt {
		flex: 0 0 auto;
		max-height: calc(1.6em * 5);
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 5;
		-webkit-box-orient: vertical;
	}
	
	#product-list-field .txt-area .txt p {
		margin-bottom: 0;
		line-height: 1.6;
	}
	
	#product-list-field .link {
		margin-top: auto;
		padding-top: 10px;
		flex-shrink: 0;
	}
}

/*
.contents-single h2,
.contents-page h2,
.contents-front-page h2 {
  background: #1d68b6 !important;
  color: #fff !important;
  font-size: 26px !important;
  font-weight: bold !important;
}
*/

/*
.contents-single h3,
.contents-page h3,
.contents-front-page h3 {
  border-top: 4px solid #1d68b6 !important;
  background: #cfe5f0 !important;
  font-size: 22px !important;
  font-weight: bold !important;
  color: #1d68b6 !important;
  line-height: 1.2 !important;
}
*/

/*
.contents-single h4,
.contents-page h4,
.contents-front-page h4 {
  border-bottom: 1px solid #50b875 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  color: #50b875 !important;
}
*/

/*
.contents-single h5,
.contents-page h5,
.contents-front-page h5 {
  border: solid #1d68b6 !important;
  border-width: 1px 1px 2px !important;
  font-size: 18px !important;
  font-weight: normal !important;
  color: #1d68b6 !important;
  line-height: 1.5 !important;
}
*/

/*
.contents-single h6,
.contents-page h6,
.contents-front-page h6 {
  font-size: 16px !important;
  font-weight: normal !important;
  color: #1d68b6 !important;
  line-height: 1.6 !important;
}
*/

/* ==================== Search Results Page Styles ==================== */

/* 搜索信息区域 */
.search-keyword {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #1d68b6;
}

.search-info {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.search-info strong {
    color: #1d68b6;
    font-weight: bold;
}

/* 搜索结果列表 */
.search-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.search-item {
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-item:first-child {
    padding-top: 0;
}

.search-item:last-child {
    border-bottom: none;
}

/* 搜索标题 */
.search-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.search-title a {
    color: #1d68b6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-title a:hover {
    color: #0d4a8a;
    text-decoration: underline;
}

/* 搜索摘要 */
.search-excerpt {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.6;
}

.search-excerpt p {
    margin: 0;
}

.search-excerpt .no-excerpt {
    color: #999;
    font-style: italic;
}

/* 搜索元信息 */
.search-meta {
    font-size: 14px;
    color: #888;
}

.search-date {
    display: inline-block;
}

/* 无搜索结果提示 */
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 30px 0;
}

.no-results p {
    margin: 10px 0;
}

.no-results p:first-child {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* ==================== News Pagination Styles ==================== */

/* 分页容器 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    gap: 8px;
    flex-wrap: wrap;
}

/* 分页链接通用样式 */
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 分页链接悬停效果 */
.pagination .page-link:hover:not(.disabled):not(.current) {
    background-color: #1d68b6;
    color: #fff;
    border-color: #1d68b6;
}

/* 当前页样式 */
.pagination .page-link.current {
    background-color: #1d68b6;
    color: #fff;
    border-color: #1d68b6;
    cursor: default;
}

/* 禁用状态（上一页/下一页） */
.pagination .page-link.disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

/* 上一页/下一页按钮 */
.pagination .page-link.prev,
.pagination .page-link.next {
    padding: 0 16px;
    font-weight: 600;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 30px 0;
    }
    
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .pagination .page-link.prev,
    .pagination .page-link.next {
        padding: 0 12px;
    }
}

/* 小屏幕适配 - 简化显示 */
@media screen and (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    
    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ==================== Pickup Products 图片统一尺寸 ==================== */

/* Pickup Products 表格样式 */
.pickup-products-table {
    width: 100%;
    table-layout: fixed;
}

.pickup-products-table td {
    width: 33.33%;
    padding: 10px;
}

/* 图片容器 - 统一尺寸 237 × 178 px */
.pickup-product-img {
    margin: 0 auto 10px auto;
    width: 237px;
    height: 178px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.pickup-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 标题样式 */
.pickup-product-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.pickup-product-title a {
    color: #1d68b6;
    text-decoration: none;
}

.pickup-product-title a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .pickup-products-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .pickup-product-img {
        width: 237px;
        height: 178px;
    }
}

/* ==================== 联系浮窗 - 抽屉式 ==================== */

.contact-float-wrapper {
    position: fixed;
    right: 20px;
    top: 75%;
    transform: translateY(-50%);
    z-index: 9999;
}

.contact-float-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-float-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 抽屉面板 */
.contact-float-panel {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.contact-float-panel::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #fff;
}

/* 激活状态 - 抽屉展开 */
.contact-float-item.active .contact-float-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.contact-float-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-float-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.contact-float-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d68b6;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.contact-float-value:hover {
    color: #0d4a8a;
}

/* 二维码样式 */
.contact-float-qrcode {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.contact-float-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮样式 */
.contact-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-float-btn i {
    font-size: 22px;
    color: #1d68b6;
    transition: color 0.3s ease;
}

.contact-float-btn:hover {
    background: #1d68b6;
    transform: scale(1.05);
}

.contact-float-btn:hover i {
    color: #fff;
}

/* 激活状态的按钮 */
.contact-float-item.active .contact-float-btn {
    background: #1d68b6;
}

.contact-float-item.active .contact-float-btn i {
    color: #fff;
}

/* 电话按钮特殊样式 */
.contact-float-btn.phone-btn i {
    color: #1d68b6;
}

.contact-float-btn.phone-btn:hover,
.contact-float-item.active .contact-float-btn.phone-btn {
    background: #1d68b6;
}

.contact-float-btn.phone-btn:hover i,
.contact-float-item.active .contact-float-btn.phone-btn i {
    color: #fff;
}

/* 微信按钮特殊样式 */
.contact-float-btn.wechat-btn i {
    color: #07c160;
}

.contact-float-btn.wechat-btn:hover,
.contact-float-item.active .contact-float-btn.wechat-btn {
    background: #07c160;
}

.contact-float-btn.wechat-btn:hover i,
.contact-float-item.active .contact-float-btn.wechat-btn i {
    color: #fff;
}

/* 邮箱按钮特殊样式 */
.contact-float-btn.email-btn i {
    color: #ea4335;
}

.contact-float-btn.email-btn:hover,
.contact-float-item.active .contact-float-btn.email-btn {
    background: #ea4335;
}

.contact-float-btn.email-btn:hover i,
.contact-float-item.active .contact-float-btn.email-btn i {
    color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .contact-float-wrapper {
        right: 10px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    .contact-float-container {
        gap: 10px;
    }
    
    .contact-float-btn {
        width: 44px;
        height: 44px;
    }
    
    .contact-float-btn i {
        font-size: 18px;
    }
    
    .contact-float-panel {
        right: 54px;
        padding: 12px 16px;
        min-width: 180px;
    }
    
    .contact-float-value {
        font-size: 16px;
    }
    
    .contact-float-qrcode {
        width: 120px;
        height: 120px;
    }
}

