/*
Theme Name: Ruixi Machinery
Theme URI: https://www.ruiximachinery.com
Author: Migration Team
Author URI: https://www.ruiximachinery.com
Description: Custom WordPress theme for Zhengzhou Ruixi Machinery Co.,Ltd. - Professional fish meal equipment manufacturer. Restores the original site look & feel.
Version: 2.2.2
License: GPL v2
Text Domain: ruixi-machinery
*/

/* ============================================
   设计变量（取自原站实测配色）
   ============================================ */
:root {
    --orange: #f75e12;
    --orange-dark: #d94e0c;
    --orange-light: #fff0e8;
    --service-blue: #1e88e5;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-gray: #f5f5f5;
    --bg-dark: #1f1f1f;
    --white: #ffffff;
    --border: #e5e5e5;
    --font-main: 'Helvetica Neue', Helvetica, Arial, Tahoma, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--orange);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   头部（白底 + 橙色激活导航）
   ============================================ */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.site-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: var(--text);
    border-radius: 2px;
}

.main-nav a:hover {
    color: var(--orange);
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a,
.main-nav .current-menu-ancestor a {
    background: var(--orange);
    color: var(--white);
}

.main-nav .current-menu-item a:hover,
.main-nav .current_page_item a:hover {
    background: var(--orange-dark);
    color: var(--white);
}

/* 子菜单 */
.main-nav .sub-menu {
    display: none;
    position: absolute;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 240px;
    padding: 8px 0;
    z-index: 100;
}

.main-nav li {
    position: relative;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu a {
    padding: 10px 18px;
    white-space: nowrap;
}

.main-nav .sub-menu .current-menu-item a {
    background: transparent;
    color: var(--orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
}

.btn-quote {
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid var(--text);
    color: var(--text);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--white);
}

.btn-quote:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* 搜索弹出层 */
.header-search-bar {
    display: none;
    background: var(--bg-gray);
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.header-search-bar.active {
    display: block;
}

.header-search-bar form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}

.header-search-bar input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.header-search-bar button {
    padding: 12px 28px;
    background: var(--orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

/* ============================================
   首屏轮播（1920x850 大图 + 左下文案 + PREV/NEXT）
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #dde3e8;
    aspect-ratio: 1920 / 850;
}

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左侧暗角，保证白色文案可读 */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0) 72%);
}

.hero-caption {
    position: absolute;
    left: 8%;
    bottom: 18%;
    z-index: 2;
    max-width: 620px;
    color: var(--white);
}

.hero-caption h1,
.hero-caption .hero-title {
    font-size: clamp(26px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-caption p {
    font-size: clamp(13px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--white);
}

.hero-prev,
.hero-next {
    background: none;
    border: none;
    color: var(--white);
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.85;
    text-transform: uppercase;
}

.hero-prev:hover,
.hero-next:hover {
    opacity: 1;
    color: var(--orange);
}

.hero-progress {
    width: 90px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
}

.hero-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--white);
}

/* ============================================
   区块通用
   ============================================ */
.section {
    padding: 56px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 34px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: -22px 0 34px;
}

/* ============================================
   产品分类条（首页）
   ============================================ */
.category-strip {
    background: #f7f7f7;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.category-strip .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-strip a {
    padding: 9px 22px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    color: var(--text-light);
    background: var(--white);
    white-space: nowrap;
}

.category-strip a:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-light);
}

/* ============================================
   产品网格（原站极简卡片）
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 72%;
    background: #eceff2;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-card .product-title {
    padding: 14px 12px 16px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    color: var(--text);
}

.product-card .product-title a {
    color: inherit;
}

.product-card .product-title a:hover {
    color: var(--orange);
}

/* View More 按钮 */
.view-more-wrap {
    text-align: center;
    margin-top: 42px;
}

.btn-orange {
    display: inline-block;
    padding: 12px 44px;
    background: var(--orange);
    color: var(--white);
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.btn-orange:hover {
    background: var(--orange-dark);
    color: var(--white);
}

/* ============================================
   新闻网格
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--white);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.news-image {
    display: block;
    height: 0;
    padding-top: 62%;
    position: relative;
    overflow: hidden;
    background: #eceff2;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-content {
    padding: 14px 4px 4px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.news-title a {
    color: var(--text);
}

.news-title a:hover {
    color: var(--orange);
}

/* ============================================
   面包屑（Home > ... 原站风格）
   ============================================ */
.breadcrumb-bar {
    background: var(--bg-gray);
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb .sep {
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text);
}

/* ============================================
   产品详情页（左图右信息）
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 44px 0;
}

.product-gallery-main {
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
    width: 100%;
    padding-top: 75%; /* 固定 4:3 区域，不随图片比例变化 */
    overflow: hidden;
}

.product-gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 图片完整居中显示，横竖图都不变形 */
    display: block;
    padding: 18px;
    box-sizing: border-box;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-thumbs img {
    width: 88px;
    height: 66px;
    object-fit: contain;
    background: var(--white);
    border: 2px solid var(--border);
    padding: 3px;
    cursor: pointer;
    opacity: 0.8;
}

.product-thumbs img.active,
.product-thumbs img:hover {
    border-color: var(--orange);
    opacity: 1;
}

.product-info h1 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: 700;
}

.product-info .product-short-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-info .product-price-row {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    color: var(--text-light);
    font-size: 13px;
}

.product-info .product-price-row strong {
    color: var(--text);
    font-weight: 600;
}

.btn-enquiry {
    display: inline-block;
    min-width: 170px;
    text-align: center;
    padding: 13px 40px;
    background: var(--orange);
    color: var(--white);
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.btn-enquiry:hover {
    background: var(--orange-dark);
    color: var(--white);
}

/* 产品参数表 */
.product-specs {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 26px;
}

.product-specs td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-size: 13px;
}

.product-specs td:first-child {
    background: var(--bg-gray);
    font-weight: 600;
    width: 140px;
    color: var(--text);
}

/* Product Detail 灰色标题条（原站特征） */
.detail-bar {
    background: var(--bg-gray);
    padding: 12px 20px;
    margin: 30px 0 26px;
}

.detail-bar span {
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
    border-left: 3px solid var(--orange);
    padding-left: 12px;
}

/* ============================================
   正文内容
   ============================================ */
.content-area {
    padding: 44px 0;
}

.entry-content {
    line-height: 1.85;
    font-size: 14px;
}

.entry-content h2 {
    font-size: 20px;
    margin: 26px 0 12px;
}

.entry-content h3 {
    font-size: 17px;
    margin: 22px 0 10px;
}

.entry-content p {
    margin-bottom: 14px;
}

.entry-content img {
    display: block;
    margin: 18px auto;
    max-width: 100%;
    height: auto;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.entry-content ul,
.entry-content ol {
    margin: 14px 0 14px 26px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.entry-content td,
.entry-content th {
    border: 1px solid var(--border);
    padding: 9px 12px;
    font-size: 13px;
}

/* ============================================
   文章/案例详情（白卡片 + 引用摘要 + 分享列）
   ============================================ */
.article-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 44px 56px 36px;
    margin: 8px 0 60px;
}

.article-card .article-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-bottom: 26px;
    padding-right: 80px;
}

.article-quote {
    position: relative;
    background: #f5f5f5;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    padding: 22px 72px;
    margin-bottom: 30px;
}

.article-quote::before {
    content: '\201C';
    position: absolute;
    left: 24px;
    top: 0;
    font-size: 44px;
    color: #bdbdbd;
    font-family: Georgia, serif;
}

.article-quote::after {
    content: '\201D';
    position: absolute;
    right: 24px;
    bottom: -12px;
    font-size: 44px;
    color: #bdbdbd;
    font-family: Georgia, serif;
}

.article-share {
    position: absolute;
    right: 22px;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.article-share-label {
    font-size: 12px;
    color: #b5b5b5;
}

.article-share-label::before {
    content: '\2014\0020';
}

.article-share-label::after {
    content: '\0020\2014';
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #999;
    font-size: 14px;
    background: var(--white);
}

.article-share a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.article-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    font-size: 13px;
    color: var(--text-light);
}

.article-prevnext a {
    color: var(--text-light);
}

.article-prevnext a:hover {
    color: var(--orange);
}

.article-card .entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

.article-card .entry-content p {
    margin-bottom: 1.4em;
}

/* ============================================
   列表页布局（左分类侧栏 + 右网格）
   ============================================ */
.list-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.sidebar-box {
    background: var(--white);
}

.sidebar-box h3 {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    background: var(--bg-gray);
    border-left: 3px solid var(--orange);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-box ul {
    list-style: none;
    border: 1px solid var(--border);
    border-top: none;
}

.sidebar-box li a {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.sidebar-box li a:hover,
.sidebar-box li.current a {
    color: var(--orange);
    background: var(--orange-light);
}

/* ============================================
   分页（原站蓝色小方块）
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    padding: 0 10px;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.pagination .current,
.pagination a:hover {
    background: var(--service-blue);
    color: var(--white);
    border-color: var(--service-blue);
}

/* ============================================
   询盘表单
   ============================================ */
.inquiry-form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 94, 18, 0.1);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* ============================================
   询盘弹窗
   ============================================ */
.inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inquiry-modal.active {
    display: flex;
}

.inquiry-modal-box {
    background: var(--white);
    width: 100%;
    max-width: 560px;
    padding: 34px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.inquiry-modal-box h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.inquiry-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

/* ============================================
   页脚：橙色联系横带 + 深色版权条
   ============================================ */
.footer-band {
    background: var(--orange);
    color: var(--white);
    padding: 44px 0;
}

.footer-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-band h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-band p {
    opacity: 0.92;
    font-size: 14px;
}

.btn-subscribe {
    display: inline-block;
    background: var(--white);
    color: var(--orange);
    padding: 13px 46px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-subscribe:hover {
    background: var(--bg-dark);
    color: var(--white);
}

.footer-bottom {
    background: var(--bg-dark);
    color: #888;
    text-align: center;
    padding: 18px 0;
    font-size: 12px;
}

.footer-bottom a {
    color: #aaa;
}

/* ============================================
   右侧浮动客服中心（原站特征组件）
   ============================================ */
.service-center-tab {
    position: fixed;
    right: 0;
    top: 40%;
    z-index: 1500;
    background: var(--service-blue);
    color: var(--white);
    writing-mode: vertical-lr;
    padding: 16px 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px 0 0 4px;
    letter-spacing: 1px;
}

.service-center-panel {
    display: none;
    position: fixed;
    right: 0;
    top: 15%;
    z-index: 1500;
    width: 250px;
    background: var(--white);
    box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.18);
    border-radius: 6px 0 0 6px;
    overflow: hidden;
}

.service-center-panel.active {
    display: block;
}

.service-center-head {
    background: var(--service-blue);
    color: var(--white);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-center-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.service-center-body {
    padding: 16px;
    font-size: 13px;
}

.service-center-body .sc-row {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.service-center-body .sc-label {
    color: var(--text-muted);
    font-size: 12px;
}

.service-center-body .sc-value {
    color: var(--text);
    font-weight: 600;
}

/* ============================================
   小工具侧边栏（详情页右侧）
   ============================================ */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    background: var(--bg-gray);
    border-left: 3px solid var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget ul {
    list-style: none;
    border: 1px solid var(--border);
    border-top: none;
}

.widget ul li a {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.widget ul li a:hover {
    color: var(--orange);
    background: var(--orange-light);
}

.widget-cta {
    background: var(--orange);
    color: var(--white);
    padding: 24px 20px;
    text-align: center;
}

.widget-cta h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.widget-cta p {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 16px;
}

.widget-cta .btn {
    display: block;
    background: var(--white);
    color: var(--orange);
    padding: 11px;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   搜索框（默认）
   ============================================ */
.search-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
}

.search-form input[type="search"],
.search-form .search-field {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.search-form button,
.search-form .search-submit {
    padding: 11px 26px;
    background: var(--orange);
    color: var(--white);
    border: none;
    cursor: pointer;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .product-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-layout {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 62px;
    }

    .site-logo img {
        height: 36px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 10px 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav a {
        padding: 13px 20px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .main-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }

    .main-nav li:hover > .sub-menu {
        display: none;
    }

    .main-nav li.sub-open > .sub-menu {
        display: block;
    }

    .btn-quote {
        display: none;
    }

    .hero-slider {
        aspect-ratio: 16 / 10;
    }

    .hero-caption {
        left: 6%;
        bottom: 14%;
        max-width: 86%;
    }

    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-band-inner {
        text-align: center;
        justify-content: center;
    }

    .service-center-tab,
    .service-center-panel {
        display: none !important;
    }
}

/* ============================================
   WordPress 默认元素
   ============================================ */
.alignleft {
    float: left;
    margin-right: 18px;
    margin-bottom: 14px;
}

.alignright {
    float: right;
    margin-left: 18px;
    margin-bottom: 14px;
}

.aligncenter {
    display: block;
    margin: 0 auto 14px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* ============================================
   Case 列表页（居中大标题 + 三列平铺卡片）
   ============================================ */
.case-page {
    padding: 10px 0 60px;
}

.case-page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 30px 0 46px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
}

.case-card {
    display: block;
    min-width: 0;
}

.case-image {
    display: block;
    padding-top: 66%;
    position: relative;
    overflow: hidden;
    background: #eceff2;
}

.case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.55;
    margin: 14px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card:hover .case-title {
    color: var(--orange);
}

.case-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   News 列表行（左图 + 右标题 + MORE 按钮）
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.news-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-row-image {
    flex: 0 0 250px;
    height: 168px;
    overflow: hidden;
    background: #eceff2;
}

.news-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-row-body {
    flex: 1;
    padding-top: 4px;
}

.news-row-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
}

.news-row-title a {
    color: var(--text);
}

.news-row-title a:hover {
    color: var(--orange);
}

.btn-more {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--white);
}

.btn-more:hover {
    border-color: var(--orange);
    color: var(--orange);
}

@media (max-width: 992px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card { padding: 28px 24px; }
    .article-card .article-title { padding-right: 0; font-size: 22px; }
    .article-share { display: none; }
}

@media (max-width: 600px) {
    .case-grid { grid-template-columns: 1fr; }
    .news-row { flex-direction: column; gap: 14px; }
    .news-row-image { flex: none; width: 100%; height: 200px; }
}

/* 归档页标题（左对齐大写，与原站一致） */
.archive-title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 30px;
}

/* ============================================
   About Us 页面（居中大标题 + 居中正文）
   ============================================ */
.about-page {
    padding: 10px 0 70px;
}

.about-page .about-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 40px;
}

.about-page .about-content {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

/* 隐藏正文里与页面标题重复的 "ABOUT US" 标题 */
.about-page .about-content > h1:first-child,
.about-page .about-content > h2:first-child,
.about-page .about-content > h3:first-child,
.about-page .about-content > h4:first-child,
.about-page .about-content > p:first-child > strong:only-child {
    display: none;
}

.about-page .about-content p {
    margin-bottom: 1.4em;
}

.about-page .about-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto 0;
}

/* ============================================
   Contact Us 页面（三列信息带 + 询盘表单）
   ============================================ */
.contact-page .contact-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 40px;
}

.contact-info-band {
    background: #f7f7f7;
    padding: 56px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0 auto;
}

.contact-info-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 14px;
    line-height: 1.8;
    color: #777;
}

.contact-info-item a:hover {
    color: var(--orange);
}

.contact-form-section {
    padding: 70px 0 80px;
}

.contact-form-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.contact-form-sub {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 44px;
}

.contact-form {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form-field {
    margin-bottom: 22px;
}

.contact-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-form-field .req {
    color: #e33;
    margin-left: 2px;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fafafa;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
}

.contact-form-submit {
    display: block;
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}

.contact-form-submit:hover {
    background: var(--orange);
}

@media (max-width: 768px) {
    .contact-info-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
    .about-page .about-title,
    .contact-page .contact-title { font-size: 26px; }
    .contact-form-title { font-size: 24px; }
}

/* ===== 首页 Covering Industry 案例区 (v2.2.0) ===== */
.case-feature {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 40px;
    align-items: center;
    background: var(--white, #fff);
    padding: 36px;
    border-radius: 8px;
}

.case-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.case-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
}

.case-counter-num {
    font-size: 46px;
    font-weight: 700;
    color: var(--orange, #f08300);
    line-height: 1;
}

.case-counter-plus {
    font-size: 30px;
    font-weight: 700;
    color: var(--orange, #f08300);
}

.case-counter-label {
    font-size: 15px;
    color: var(--text-muted, #888);
    margin-left: 8px;
}

.case-feature-title {
    font-size: 24px;
    margin: 0 0 14px;
    line-height: 1.35;
}

.case-feature-title a {
    color: var(--text-dark, #222);
    text-decoration: none;
}

.case-feature-title a:hover {
    color: var(--orange, #f08300);
}

.case-feature-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* ===== 首页 Loading and Delivery 发货图墙 (v2.2.0) ===== */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.delivery-card {
    margin: 0;
    background: var(--white, #fff);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
}

.delivery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.delivery-card img {
    width: 100%;
    aspect-ratio: 23 / 13;
    object-fit: cover;
    display: block;
}

.delivery-card figcaption {
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-dark, #222);
    text-align: center;
}

@media (max-width: 900px) {
    .case-feature { grid-template-columns: 1fr; padding: 24px; }
    .delivery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .delivery-grid { grid-template-columns: 1fr; }
}

/* ============================================
   视频模块 v2.2.2：16:9 固定容器，纯黑背景
   横视频铺满，竖视频居中两侧留白
   ============================================ */
.ruixi-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ruixi-video-frame video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 竖视频自动居中，两侧黑边 */
    display: block;
}

@media (max-width: 600px) {
    .ruixi-video-frame {
        border-radius: 6px;
        margin: 18px 0;
    }
}
