/*
Theme Name: 西玛克阀门主题
Theme URI: http://127.0.0.1
Author: fa-men
Description: 仿 smkvalves.com 的工业阀门企业主题，支持后台「网站设置」配置
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: fa-men-theme
*/

:root {
    --blue: #1978dc;
    --blue-dark: #1259a8;
    --blue-deep: #0d3d73;
    --gold: #dbab65;
    --ink: #222a35;
    --text: #4a5462;
    --muted: #8a939f;
    --line: #e6ebf1;
    --bg: #f5f7fa;
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.75;
    background: #fff;
    font-size: 15px;
    overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.35; font-weight: 700; }
p { margin-bottom: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* === Top bar === */
.topbar { background: var(--ink); color: #a9b6c6; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #d8e2ee; }
.topbar a:hover { color: #fff; }
.topbar-right span { margin-left: 24px; }
.topbar .topbar-phone a { color: var(--gold); font-weight: 700; }
.topbar .lang-switch { margin-left: 22px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
.lang-switch a { color: #8fa0b4; }
.lang-switch a.active { color: #fff; font-weight: 700; }
.lang-switch em { font-style: normal; margin: 0 6px; color: #5f6b7a; }

/* === Header === */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(19, 45, 74, .08); position: sticky; top: 0; z-index: 900; }
.site-header .wrap { display: flex; align-items: center; height: 88px; gap: 28px; position: relative; }

.site-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
    width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .5px;
    border-radius: 4px; font-family: Georgia, serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { color: var(--ink); font-size: 19px; letter-spacing: .5px; }
.brand-text em { color: var(--muted); font-size: 11px; font-style: normal; letter-spacing: .6px; }
.site-branding img { max-height: 56px; width: auto; }

.main-navigation { margin-left: auto; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; flex-shrink: 0; }
.nav-menu > li > a {
    display: block; padding: 10px 12px; color: var(--ink); font-size: 15px; font-weight: 500;
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a { color: var(--blue); }
.nav-menu > li > a::after {
    content: ''; display: block; width: 0; height: 2px; background: var(--blue); margin-top: 6px;
    transition: width .3s ease;
}
.nav-menu > li:hover > a::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current-menu-ancestor > a::after { width: 100%; }
.nav-menu > li.nav-panel-parent { position: static; }
.nav-menu > li.menu-item-has-children > a { position: relative; padding-right: 22px; }
.nav-menu > li.menu-item-has-children > a::before {
    content: ''; position: absolute; right: 8px; top: 50%; margin-top: -2px;
    width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .3s ease;
}
.nav-menu > li.menu-item-has-children:hover > a::before { transform: rotate(-135deg); margin-top: 0; }
.nav-menu ul {
    display: block; position: absolute; top: 100%; left: 0; min-width: 210px;
    background: #fff; box-shadow: 0 10px 30px rgba(19, 45, 74, .16);
    border-top: 3px solid var(--blue); padding: 8px 0; z-index: 999;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate3d(0, -12px, 0);
    transition: opacity .28s ease, transform .32s cubic-bezier(.22, .61, .36, 1), visibility .32s;
}
.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

/* 一级下拉大面板：左侧列表 + 右侧配图（对齐参考站） */
.nav-menu > li > ul.nav-panel {
    display: grid; grid-template-columns: 33.333% 1fr 30%;
    align-content: start; min-width: 0; right: 0; padding: 44px 24px 40px;
    background: #f2f3f1; border-top: 1px solid #e9e9e9;
    box-shadow: 0 18px 40px rgba(19, 45, 74, .12);
}
.nav-menu > li > ul.nav-panel > li { grid-column: 1; }
.nav-menu > li > ul.nav-panel > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 0 15px; font-size: 16px; line-height: 2; color: #000;
    background: none; white-space: normal; transition: color .2s;
}
.nav-menu > li > ul.nav-panel > li > a:hover,
.nav-menu > li > ul.nav-panel > li > a.on {
    color: #0146ad; background: none; padding-left: 0;
}
.nav-panel-arrow {
    flex: 0 0 auto; width: 7px; height: 7px; margin-left: auto;
    border-top: 1.5px solid #9f9f9f; border-right: 1.5px solid #9f9f9f;
    transform: rotate(45deg); transition: border-color .2s;
}
.nav-menu > li > ul.nav-panel > li > a:hover .nav-panel-arrow,
.nav-menu > li > ul.nav-panel > li > a.on .nav-panel-arrow { border-color: #0146ad; }
.nav-panel-thumb { display: none; }
.nav-menu > li > ul.nav-panel > li.nav-panel-visual {
    grid-column: 3; grid-row: 1 / span 40;
    min-height: 200px; overflow: hidden; background: rgba(0, 0, 0, .08);
}
.nav-panel-visual img { display: block; width: 100%; height: 100%; object-fit: fill; }
/* 透明过渡带：衔接导航与面板，避免鼠标下滑时丢失悬停 */
.nav-menu > li > ul.nav-panel::before {
    content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
}
.nav-menu ul li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text); white-space: nowrap; transition: background .2s, color .2s, padding-left .2s; }

/* === 头部搜索 === */
.search-toggle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
    flex-shrink: 0; transition: all .2s;
}
.search-toggle:hover { border-color: var(--blue); color: var(--blue); }
.search-panel {
    display: none; position: absolute; top: 100%; right: 24px; width: 420px; max-width: calc(100vw - 32px);
    background: #fff; padding: 16px; border-top: 3px solid var(--blue);
    box-shadow: 0 14px 30px rgba(19, 45, 74, .16); z-index: 950;
}
.search-panel.open { display: block; }
.header-search-form { display: flex; }
.header-search-form input[type="search"] {
    flex: 1; height: 42px; border: 1px solid var(--line); border-right: 0;
    padding: 0 14px; font-size: 14px; min-width: 0;
}
.header-search-form input[type="search"]:focus { outline: none; border-color: var(--blue); }
.header-search-form button {
    height: 42px; padding: 0 24px; background: var(--blue); color: #fff;
    border: 0; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.header-search-form button:hover { background: var(--blue-dark); }

.header-hotline { display: flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.header-hotline .icon { color: var(--blue); font-size: 22px; }
.header-hotline .text { display: flex; flex-direction: column; line-height: 1.3; }
.header-hotline em { font-style: normal; font-size: 12px; color: var(--muted); }
.header-hotline strong { color: var(--blue); font-size: 19px; font-weight: 700; }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }

/* === Hero slider：与参考站一致的全屏横向轮播 === */
.hero-slider { position: relative; height: 100vh; max-height: 1080px; min-height: 600px; overflow: hidden; background: #17324a; }
.hero-slides { display: flex; width: 100%; height: 100%; will-change: transform; }
.hero-slide {
    position: relative; flex: 0 0 100%; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.hero-content { position: relative; z-index: 2; color: #fff; text-align: center; }
.hero-title {
    color: #fff; font-size: 46px; line-height: 1.4; letter-spacing: 2px; font-weight: 700;
    margin-bottom: 24px; text-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.hero-sub { font-size: 20px; color: #fff; max-width: 1000px; margin: 0 auto; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,.1); }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50px;
    background: #fff; color: #666; font-size: 30px; line-height: 44px; text-align: center;
    box-shadow: 0 5px 20px rgba(128,128,128,.16); cursor: pointer; user-select: none; transition: all .25s;
}
.hero-arrow:hover { color: #0c77e6; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.hero-prev { left: 30px; }
.hero-next { right: 30px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; }
.hero-dots button {
    width: 6px; height: 6px; margin: 3px; padding: 0; border: 0; border-radius: 100%;
    background: rgba(255,255,255,.4); cursor: pointer; transition: all .25s;
}
.hero-dots button.active { width: 20px; border-radius: 15px; background: #fff; }

/* === Section === */
.section { padding: 76px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; gap: 20px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head-text h2 { font-size: 32px; letter-spacing: 2px; position: relative; padding-bottom: 16px; }
.section-head-text h2::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--blue);
}
.section-head.center .section-head-text h2::after { left: 50%; transform: translateX(-50%); }
.section-head-text p { color: var(--muted); margin: 10px 0 0; font-size: 14px; letter-spacing: 1px; }
.section-more {
    display: inline-block; padding: 8px 22px; border: 1px solid var(--line); color: var(--text);
    font-size: 14px; border-radius: 2px; flex-shrink: 0; transition: all .25s;
}
.section-more:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* === Product categories：参考站 Swiper 横向滑动 === */
.products-section { padding: 62px 0 72px; background: #fff; }
.products-section .section-head { align-items: center; margin-bottom: 38px; }
.products-section .section-head-text h2 { padding: 0; font-size: 24px; line-height: 1.5; letter-spacing: 0; color: #333; }
.products-section .section-head-text h2::after { display: none; }
.products-section .section-head-text p { margin-top: 14px; color: #393838; font-size: 14px; letter-spacing: 0; }
.products-section .section-more { padding: 8px 0; border: 0; color: #0c77e6; }
.products-section .section-more:hover { background: transparent; color: #03409a; }

.product-cats-wrap { position: relative; padding: 20px 0 60px; overflow: hidden; }
.product-swiper { width: 100%; overflow: hidden; }
.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
    position: absolute; top: 40%; width: 46px; height: 46px; border-radius: 50%;
    background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); color: #333;
    font-size: 22px; font-weight: bold; display: flex; align-items: center; justify-content: center;
    z-index: 10; cursor: pointer; transition: all .3s;
}
.product-swiper .swiper-button-prev::after,
.product-swiper .swiper-button-next::after { font-size: 20px; font-weight: bold; }
.product-swiper .swiper-button-prev:hover,
.product-swiper .swiper-button-next:hover { background: #0c77e6; color: #fff; }
.product-swiper .swiper-button-prev { left: 10px; }
.product-swiper .swiper-button-next { right: 10px; }
.product-swiper .swiper-button-disabled { opacity: .35; cursor: not-allowed; }
.product-swiper .swiper-pagination { bottom: 8px; }
.product-swiper .swiper-pagination-bullet {
    width: 8px; height: 8px; margin: 0 4px; background: #c0c6cd;
    border-radius: 50%; cursor: pointer; opacity: 1;
}
.product-swiper .swiper-pagination-bullet-active { background: #0c77e6; width: 22px; border-radius: 4px; }

.product-cat-card {
    position: relative; display: flex; flex-direction: column;
    padding: 20px 20px 24px; overflow: hidden;
    background: #fff; border: 0; border-bottom: 4px solid #03409a; border-radius: 6px;
    box-shadow: 0 10px 15px rgba(0,0,0,.1); transition: background .5s, box-shadow .5s, transform .3s;
    height: 480px;
}
.product-cat-card::before {
    content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0;
    background: linear-gradient(to right, #0c63c5 0%, #0b4d95 100%); transition: opacity .5s;
}
.product-cat-card > * { position: relative; z-index: 1; }
.product-cat-card:hover { box-shadow: 0 8px 20px rgba(128,128,128,.2); transform: translateY(-3px); }
.product-cat-card:hover::before { opacity: 1; }
.cat-title { margin: 0 0 14px; font-size: 20px; line-height: 1.4; color: #333; transition: color .5s; }
.cat-title a { color: inherit; }
.cat-line { display: block; width: 46px; height: 2px; margin-bottom: 16px; background: #085ae4; transition: background .5s; }
.cat-image { display: block; height: 220px; margin: 0 -20px; overflow: hidden; background: #fff; }
.cat-image img { width: 100%; height: 100%; object-fit: fill; transition: transform .5s; }
.product-cat-card:hover .cat-image img { transform: scale(1.12); }
.cat-desc { margin: 16px 0 12px; color: #666; font-size: 13.5px; line-height: 1.6; flex: 1; transition: color .5s; }
.cat-more { color: #0c77e6; font-size: 14px; line-height: 1.5; font-weight: 500; transition: color .5s; }
.product-cat-card:hover .cat-title,
.product-cat-card:hover .cat-desc,
.product-cat-card:hover .cat-more { color: #fff; }
.product-cat-card:hover .cat-line { background: #fff; }

/* === About === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.section-head-left h2 { font-size: 30px; letter-spacing: 2px; margin-bottom: 10px; }
.about-sub { color: var(--blue); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.about-en { color: var(--muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 22px; }
.about-desc { color: #5b6673; font-size: 15px; line-height: 1.95; text-align: justify; margin-bottom: 26px; }
.about-image img { width: 100%; height: 420px; object-fit: fill; border-radius: 2px; box-shadow: 0 18px 40px rgba(19,45,74,.16); }

.btn-outline {
    display: inline-block; padding: 10px 30px; border: 1px solid var(--blue); color: var(--blue);
    font-size: 14px; letter-spacing: 1px; transition: all .25s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-blue, .btn-primary {
    display: inline-block; padding: 11px 32px; background: var(--blue); color: #fff;
    border: 1px solid var(--blue); font-size: 14px; letter-spacing: 1px; transition: all .25s;
}
.btn-blue:hover, .btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: rgba(255,255,255,.18); margin-top: 62px;
    background-color: #e8eef6; border: 1px solid #dfe7f1;
}
.stat-item { background: #fff; padding: 32px 20px; text-align: center; }
.stat-num { color: var(--blue); font-size: 46px; font-weight: 700; line-height: 1; font-family: Georgia, serif; }
.stat-num small { font-size: 18px; margin-left: 4px; font-family: inherit; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 10px; letter-spacing: 2px; }

/* === Industry === */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry-card {
    position: relative; background: var(--ink); color: #b9c4d1; padding: 34px 24px 30px;
    transition: all .3s; overflow: hidden;
}
.industry-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, var(--blue), var(--blue-deep));
    opacity: 0; transition: opacity .3s;
}
.industry-card:hover::before { opacity: 1; }
.industry-card > * { position: relative; z-index: 2; }
.industry-index { color: rgba(255,255,255,.28); font-family: Georgia, serif; font-size: 26px; }
.industry-card h3 { color: #fff; font-size: 17px; margin: 14px 0 12px; }
.industry-card p { font-size: 13px; line-height: 1.8; color: rgba(233,240,248,.72); transition: color .3s; }
.industry-card a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--gold); }
.industry-card:hover p { color: rgba(255,255,255,.9); }

/* === News（参考站风格：三列，左1大图+中1大图+右3列表） === */
.news-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: stretch; }

.news-featured { background: #fff; border: 1px solid #e9edf3; border-radius: 4px; overflow: hidden; transition: all .3s; }
.news-featured:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); border-color: #0c77e6; }
.news-featured-image { display: block; height: 220px; background: #fff; overflow: hidden; }
.news-featured-image img { display: block; width: 100%; height: 100%; object-fit: fill; }
.news-featured h3 { font-size: 17px; margin: 16px 22px 8px; }
.news-featured h3 a { color: #222; }
.news-featured h3 a:hover { color: #0c77e6; }
.news-featured p { color: #7b8592; font-size: 13px; margin: 0 22px 18px; line-height: 1.6; }
.news-ph {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    color: #0c77e6; font-family: Georgia, serif; font-size: 36px; letter-spacing: 4px; opacity: .5;
}

.news-right { background: #fff; border: 1px solid #e9edf3; border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; }
.news-row { display: flex; gap: 0; border-bottom: 1px solid #eef1f5; transition: background .25s; }
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: #f8fafd; }
.news-date-box { flex: 0 0 92px; background: #f0f2f5; text-align: center; padding: 16px 0; display: flex; flex-direction: column; justify-content: center; }
.news-date-box strong { display: block; color: #333; font-size: 22px; font-family: Georgia, serif; font-weight: 700; line-height: 1.1; }
.news-date-box span { display: block; color: #8a94a3; font-size: 13px; margin-top: 2px; }
.news-row-body { flex: 1; min-width: 0; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.news-row-body h3 { font-size: 15px; margin-bottom: 6px; }
.news-row-body h3 a { color: #222; }
.news-row-body h3 a:hover { color: #0c77e6; }
.news-row-body p { color: #7b8592; font-size: 12.5px; margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* === Partners === */
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner-grid a {
    display: flex; align-items: center; justify-content: center; height: 66px;
    background: var(--bg); border: 1px solid var(--line); color: #5b6673; font-size: 14px;
    transition: all .25s; text-align: center; padding: 0 10px;
}
.partner-grid a:hover { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: 0 6px 16px rgba(25,120,220,.1); }

/* === Hotline strip === */
.hotline-strip { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); color: #fff; padding: 34px 0; }
.hotline-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hotline-label { display: block; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.75); }
.hotline-left strong { font-size: 34px; font-family: Georgia, serif; letter-spacing: 2px; color: #fff; }
.hotline-right { text-align: right; font-size: 14px; color: rgba(255,255,255,.85); }
.hotline-right span { display: block; }
.hotline-right a { color: var(--gold); }

/* === Footer === */
.site-footer { background: var(--ink); color: #93a1b2; font-size: 14px; }
.footer-main { padding: 62px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .9fr .9fr 1.4fr; gap: 48px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 22px; position: relative; padding-bottom: 12px; letter-spacing: 1px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--blue); }
.footer-about p { line-height: 1.9; font-size: 13.5px; }
.footer-slogan { color: var(--gold); letter-spacing: 1px; margin-top: 14px; }
.footer-menu li, .footer-links li { margin-bottom: 10px; }
.footer-menu a, .footer-links a { color: #93a1b2; font-size: 14px; }
.footer-menu a:hover, .footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 12px; line-height: 1.7; font-size: 13.5px; }
.footer-contact span {
    display: inline-block; min-width: 44px; color: #fff; font-weight: 600; margin-right: 8px;
}
.footer-contact a { color: #93a1b2; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6f7d8e; }
.footer-bottom a { color: #6f7d8e; }
.footer-bottom a:hover { color: #fff; }

/* === Float bar === */
.float-bar {
    position: fixed; right: 18px; bottom: 90px; z-index: 800;
    display: flex; flex-direction: column; gap: 8px;
}
.float-item {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; background: var(--blue); color: #fff;
    box-shadow: 0 6px 16px rgba(25,120,220,.3); transition: all .25s;
    position: relative;
}
.float-item:hover { background: var(--blue-deep); color: #fff; }
.fi-icon { font-size: 20px; }
.fi-text {
    display: none; position: absolute; right: 62px; white-space: nowrap;
    background: var(--ink); color: #fff; font-size: 13px; padding: 6px 12px;
}
.float-item:hover .fi-text { display: block; }
.float-top { width: 54px; height: 44px; }

/* === Inner pages === */
.page-banner {
    background: linear-gradient(105deg, #0a2c52, #1259a8 60%, #1978dc);
    color: #fff; padding: 74px 0 54px; position: relative; overflow: hidden;
}
.page-banner::after {
    content: ''; position: absolute; right: -60px; top: -80px; width: 360px; height: 360px;
    border: 40px solid rgba(255,255,255,.05); border-radius: 50%;
}
.page-banner h1 { color: #fff; font-size: 34px; letter-spacing: 3px; margin-bottom: 10px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.78); }
.breadcrumb a { color: rgba(255,255,255,.78); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; }

.content-wrapper { padding: 60px 0; background: #fff; }
.content-wrapper .wrap { display: flex; gap: 42px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

.sidebar-widget { background: #fff; border: 1px solid var(--line); margin-bottom: 22px; }
.sidebar-widget h3 {
    font-size: 17px; padding: 16px 20px; border-bottom: 1px solid var(--line);
    background: var(--bg); color: var(--ink); position: relative;
}
.sidebar-widget h3::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--blue); }
.sidebar-widget ul { padding: 8px 0; }
.sidebar-widget ul li { border-bottom: 1px dashed #eef2f7; }
.sidebar-widget ul li:last-child { border-bottom: 0; }
.sidebar-widget ul li a { display: block; padding: 11px 20px; color: #4a5462; font-size: 14px; }
.sidebar-widget ul li a:hover, .sidebar-widget ul li.current a { background: #f2f7fd; color: var(--blue); padding-left: 26px; }
.sidebar-widget ul li.current a { font-weight: 600; }
.sidebar-contact { padding-bottom: 20px; }
.sidebar-contact p { padding: 8px 20px; margin: 0; font-size: 13.5px; color: #5b6673; }
.sidebar-contact p span { display: inline-block; min-width: 40px; color: var(--muted); }
.sidebar-btn {
    display: block; margin: 14px 20px 0; text-align: center; padding: 10px 0;
    background: var(--blue); color: #fff; font-size: 14px;
}
.sidebar-btn:hover { background: var(--blue-dark); color: #fff; }

/* === Page content === */
.page-content h1, .page-content h2, .page-content h3 { margin: 26px 0 14px; }
.page-content h1 { font-size: 28px; }
.page-content h2 { font-size: 22px; }
.page-content h3 { font-size: 18px; }
.page-content p { color: #5b6673; line-height: 1.95; }
.page-content ul, .page-content ol { margin: 0 0 18px 22px; }
.page-content ul li, .page-content ol li { list-style: disc; margin-bottom: 8px; color: #5b6673; }
.page-content ol li { list-style: decimal; }
.page-content img { width: 100%; height: auto; margin: 10px 0; }
.page-intro { margin-bottom: 34px; }

/* === Product center === */
.cat-block { margin-bottom: 56px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.cat-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cat-block-head { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-bottom: 30px; }
.cat-block-image { background: var(--bg); border: 1px solid var(--line); padding: 16px; }
.cat-block-image img { width: 100%; height: 230px; object-fit: fill; }
.cat-block-text h2 { font-size: 24px; margin-bottom: 12px; }
.cat-block-text p { color: #64707e; font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.cat-intro { color: #64707e; font-size: 14px; background: var(--bg); border-left: 3px solid var(--blue); padding: 16px 20px; margin-bottom: 28px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-item { background: #fff; border: 1px solid var(--line); transition: all .3s; overflow: hidden; }
.product-item:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(25,120,220,.12); transform: translateY(-3px); }
.product-thumb { display: block; height: 200px; background: #fbfcfe; padding: 12px; }
.product-thumb img { width: 100%; height: 100%; object-fit: fill; }
.product-info { padding: 16px 18px 20px; }
.product-info h3 { font-size: 15.5px; margin-bottom: 8px; }
.product-info h3 a { color: var(--ink); }
.product-info h3 a:hover { color: var(--blue); }
.product-excerpt { color: #7b8592; font-size: 13px; margin-bottom: 10px; }
.view-detail { color: var(--blue); font-size: 13px; }

/* === 产品搜索页 === */
.product-search-form { display: flex; margin-bottom: 10px; }
.product-search-form input[type="search"] {
    flex: 1; height: 52px; border: 1px solid var(--line); border-right: 0;
    padding: 0 18px; font-size: 15px; min-width: 0;
}
.product-search-form input[type="search"]:focus { outline: none; border-color: var(--blue); }
.product-search-form button {
    height: 52px; padding: 0 40px; background: var(--blue); color: #fff;
    border: 0; font-size: 15px; cursor: pointer; letter-spacing: 2px;
}
.product-search-form button:hover { background: var(--blue-dark); }
.search-tip { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.search-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.search-filters a {
    padding: 8px 18px; border: 1px solid var(--line); font-size: 14px;
    color: var(--text); background: #fff; transition: all .2s;
}
.search-filters a:hover { border-color: var(--blue); color: var(--blue); }
.search-filters a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.search-meta {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--bg); border-left: 3px solid var(--blue);
    font-size: 14px; color: #5b6673; margin-bottom: 24px;
}
.search-meta strong { color: var(--blue); }
.search-grid { grid-template-columns: repeat(3, 1fr); }
.product-cat-tag {
    display: inline-block; font-size: 12px; color: var(--blue); background: #eef5fe;
    padding: 2px 10px; margin-bottom: 8px;
}

/* === News list === */
.news-list-item { display: flex; gap: 26px; border: 1px solid var(--line); padding: 20px; margin-bottom: 20px; transition: all .25s; }
.news-list-item:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(25,120,220,.1); }
.news-list-image { flex: 0 0 220px; height: 150px; background: linear-gradient(135deg, #e3eefb, #c8dff5); overflow: hidden; }
.news-list-image img { width: 100%; height: 100%; object-fit: fill; }
.news-list-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-list-body h3 a { color: var(--ink); }
.news-list-body h3 a:hover { color: var(--blue); }
.news-list-body p { color: #7b8592; font-size: 13.5px; margin-bottom: 12px; }
.news-list-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* === Single === */
.entry-meta { color: var(--muted); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.entry-meta span { margin-right: 22px; }
.entry-content h2, .entry-content h3 { margin: 24px 0 12px; }
.entry-content p { color: #5b6673; line-height: 1.95; }
.entry-content img { width: 100%; height: auto; margin: 12px 0; }
.entry-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

.product-detail { display: grid; grid-template-columns: 420px 1fr; gap: 40px; margin-bottom: 34px; }
.product-detail-image { border: 1px solid var(--line); background: #fbfcfe; padding: 20px; }
.product-detail-image img { width: 100%; height: 360px; object-fit: fill; }
.product-detail-info h1 { font-size: 26px; margin-bottom: 12px; }
.product-cat-name { color: var(--muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.product-detail-desc { color: #5b6673; font-size: 14.5px; line-height: 1.9; margin-bottom: 16px; }
.product-points { margin-bottom: 24px; }
.product-points li { position: relative; padding-left: 20px; margin-bottom: 8px; color: #4a5462; font-size: 14px; }
.product-points li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.product-actions { display: flex; gap: 14px; }
.product-content { padding-top: 26px; border-top: 1px solid var(--line); }
.product-content h2, .product-content h3 { margin: 22px 0 12px; }
.product-content p { color: #5b6673; line-height: 1.95; }
.block-title { font-size: 20px; margin: 36px 0 16px; padding-left: 14px; border-left: 3px solid var(--blue); color: var(--ink); }

/* 产品相册 */
.product-gallery-block { margin: 24px 0 8px; }
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-gallery-item { display: block; border: 1px solid var(--line); overflow: hidden; background: #fbfcfe; }
.product-gallery-item img { width: 100%; height: 140px; object-fit: fill; transition: transform .25s; }
.product-gallery-item:hover img { transform: scale(1.05); }

/* 规格参数 */
.product-specs-block { margin: 24px 0 8px; }
.product-specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 14px; }
.product-specs-table th { width: 160px; background: var(--bg); color: var(--ink); font-weight: 500; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.product-specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: #3d4652; }
.product-specs-table tr:last-child th, .product-specs-table tr:last-child td { border-bottom: 0; }

.related-block { margin-top: 48px; }
.related-title { font-size: 22px; margin-bottom: 20px; padding-left: 14px; border-left: 3px solid var(--blue); }

/* === Contact === */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 34px; }
.contact-card { border: 1px solid var(--line); padding: 26px 22px; background: var(--bg); }
.cc-label { display: block; color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.contact-card strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.contact-card em { font-style: normal; color: #8a939f; font-size: 12.5px; }

/* === Pagination === */
.pagination { margin-top: 40px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination a, .pagination span {
    display: inline-block; min-width: 40px; padding: 8px 14px; border: 1px solid var(--line);
    color: var(--text); font-size: 14px;
}
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.empty-tip { color: var(--muted); text-align: center; padding: 50px 0; }

/* === Responsive === */
@media (max-width: 1180px) {
    .cat-image { height: 200px; }
    .product-swiper .swiper-button-prev { left: 4px; }
    .product-swiper .swiper-button-next { right: 4px; }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 42px; }
    .header-hotline { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 980px) {
    .hero-slider { height: 100vh; min-height: 480px; }
    .hero-title { font-size: 34px; letter-spacing: 2px; }
    .hero-sub { font-size: 15px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image img { height: 320px; }
    .news-layout { grid-template-columns: 1fr; }
    .content-wrapper .wrap { flex-direction: column; }
    .sidebar { width: 100%; }
    .cat-block-head { grid-template-columns: 1fr; gap: 20px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-image img { height: 280px; }
    .hotline-strip .wrap { flex-direction: column; align-items: flex-start; }
    .hotline-right { text-align: left; }
    .contact-cards { grid-template-columns: 1fr; }
    .nav-menu {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; flex-direction: column; box-shadow: 0 12px 24px rgba(19,45,74,.12);
        border-top: 1px solid var(--line); padding: 10px 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 12px 24px; }
    .nav-menu ul {
        position: static; display: block; box-shadow: none; border-top: 0; padding: 0 0 0 16px;
        opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
    }
    .nav-menu > li > ul.nav-panel {
        display: block; grid-template-columns: none; right: auto; width: auto;
        padding: 0 0 0 16px; background: transparent; border-top: 0; box-shadow: none;
    }
    .nav-menu > li > ul.nav-panel > li { grid-column: auto; }
    .nav-menu > li > ul.nav-panel > li.nav-panel-visual { display: none; }
    .nav-menu > li > ul.nav-panel > li > a {
        display: block; padding: 8px 0; font-size: 14px; line-height: 1.7; color: var(--text);
    }
    .nav-panel-arrow { display: none; }
    .nav-menu > li > a::after { display: none; }
    .nav-menu > li.menu-item-has-children > a { padding-right: 24px; }
    .nav-menu > li.menu-item-has-children > a::before { display: none; }
    .menu-toggle { display: block; }
    .site-header .wrap { position: relative; }
}
@media (max-width: 680px) {
    .topbar-left { display: none; }
    .topbar .wrap { justify-content: center; height: auto; padding: 8px 24px; flex-wrap: wrap; }
    .topbar-right span { margin: 0 8px; }
    .site-header .wrap { height: 72px; }
    .brand-text strong { font-size: 15px; }
    .brand-text em { display: none; }
    .logo-mark { width: 44px; height: 44px; font-size: 14px; }
    .hero-slider { height: 100vh; min-height: 400px; }
    .hero-title { font-size: 26px; letter-spacing: 1px; margin-bottom: 16px; }
    .hero-sub { font-size: 14px; }
    .hero-arrow { width: 38px; height: 38px; font-size: 24px; line-height: 34px; }
    .hero-prev { left: 14px; }
    .hero-next { right: 14px; }
    .products-section .section-head { align-items: flex-start; }
    .product-swiper .swiper-button-prev,
    .product-swiper .swiper-button-next { display: none; }
    .product-cat-card { height: auto; min-height: 420px; }
    .cat-image { height: 200px; }
    .section { padding: 50px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head.center { align-items: center; }
    .section-head-text h2 { font-size: 24px; }
    .product-grid, .industry-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: 1fr; }
    .news-list-item { flex-direction: column; }
    .news-list-image { flex: none; height: 190px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom .wrap { flex-direction: column; gap: 6px; }
    .float-bar { right: 10px; bottom: 60px; }
    .page-banner { padding: 50px 0 36px; }
    .page-banner h1 { font-size: 26px; }
    .product-search-form { flex-wrap: wrap; }
    .product-search-form input[type="search"] { width: 100%; flex: none; border-right: 1px solid var(--line); }
    .product-search-form button { width: 100%; margin-top: 10px; }
    .search-grid { grid-template-columns: 1fr; }
    .product-gallery { grid-template-columns: repeat(2, 1fr); }
    .product-specs-table th { width: 110px; font-size: 13px; padding: 8px 10px; }
    .product-specs-table td { padding: 8px 10px; font-size: 13px; }
}

/* === 解决方案 === */
.page-banner-sub { color: rgba(255,255,255,.82); font-size: 15px; letter-spacing: 1px; margin: -4px 0 12px; }
.content-wrapper.solutions-page .wrap { display: block; }
.solutions-page { background: var(--bg); }
.solutions-intro { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.solutions-intro h2 { font-size: 30px; letter-spacing: 2px; margin-bottom: 12px; color: var(--ink); }
.solutions-intro p { color: var(--muted); font-size: 14px; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.solution-card {
    background: #fff; border: 1px solid var(--line); overflow: hidden;
    display: flex; flex-direction: column; transition: all .3s;
}
.solution-card:hover { border-color: var(--blue); box-shadow: 0 16px 34px rgba(25,120,220,.14); transform: translateY(-4px); }
.solution-thumb {
    position: relative; display: block; height: 210px; overflow: hidden;
    background: linear-gradient(135deg, #e3eefb, #c8dff5);
}
.solution-thumb img { width: 100%; height: 100%; object-fit: fill; transition: transform .4s; }
.solution-card:hover .solution-thumb img { transform: scale(1.05); }
.solution-index {
    position: absolute; left: 16px; top: 14px; padding: 2px 10px; color: #fff;
    background: rgba(13,61,115,.68); font-family: Georgia, serif; font-size: 14px; letter-spacing: 1px;
}
.solution-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.solution-en { color: var(--blue); font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.solution-body h3 { font-size: 18px; margin-bottom: 10px; }
.solution-body h3 a { color: var(--ink); }
.solution-body h3 a:hover { color: var(--blue); }
.solution-body p { flex: 1; color: #6b7684; font-size: 13.5px; line-height: 1.85; margin-bottom: 14px; }
.solution-more { color: var(--blue); font-size: 13.5px; font-weight: 500; }
.solution-more:hover { color: var(--blue-dark); }
.solution-detail { background: #fff; }
.solution-detail-image { border: 1px solid var(--line); background: var(--bg); margin-bottom: 26px; }
.solution-detail-image img { display: block; width: 100%; height: 380px; object-fit: fill; }
.solution-lead {
    color: #5b6673; font-size: 15px; line-height: 1.9; background: var(--bg);
    border-left: 3px solid var(--blue); padding: 16px 20px; margin-bottom: 26px;
}
.solution-actions { display: flex; gap: 14px; margin-top: 32px; }
.solution-actions .btn-blue, .solution-actions .btn-outline { min-width: 130px; text-align: center; }
.solution-detail .entry-content ul { margin: 0 0 18px 22px; }
.solution-detail .entry-content ul li { list-style: disc; margin-bottom: 8px; color: #5b6673; line-height: 1.9; }
.solution-detail .entry-content h3 { font-size: 17px; color: var(--ink); margin: 22px 0 10px; }
.solution-detail .entry-content p { color: #5b6673; line-height: 1.95; margin-bottom: 14px; }

/* === 售后服务 === */
.service-support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-support-card {
    display: block; text-align: center; padding: 38px 22px; background: #fff;
    border: 1px solid var(--line); transition: all .3s;
}
.service-support-card:hover {
    border-color: var(--blue); box-shadow: 0 14px 30px rgba(25,120,220,.13); transform: translateY(-4px);
}
.ss-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%;
    background: #eef5fe; color: var(--blue);
}
.ss-icon svg { width: 30px; height: 30px; }
.service-support-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.service-support-card em { font-style: normal; color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.service-philosophy { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.sp-text h2 { position: relative; font-size: 28px; letter-spacing: 2px; color: var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.sp-text h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--blue); }
.sp-text p { color: #5b6673; font-size: 15px; line-height: 2; text-align: justify; }
.sp-hotline { background: linear-gradient(150deg, var(--blue-deep), var(--blue)); color: #fff; padding: 34px 32px; }
.sp-hotline-icon { font-size: 24px; color: var(--gold); }
.sp-hotline em { display: block; font-style: normal; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.78); margin: 10px 0 4px; }
.sp-hotline strong { display: block; font-family: Georgia, serif; font-size: 30px; letter-spacing: 1px; margin-bottom: 12px; }
.sp-hotline strong a { color: #fff; }
.sp-hotline strong a:hover { color: var(--gold); }
.sp-hotline p { color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.8; margin: 0; }
.service-detail-section { border-top: 1px solid var(--line); }
.service-detail-section .wrap { display: block; }
.service-content { width: 100%; max-width: 980px; margin: 0 auto; }
.service-content h2 {
    font-size: 24px; color: var(--ink); border-left: 4px solid var(--blue);
    padding-left: 14px; margin: 38px 0 16px;
}
.service-content h2:first-child { margin-top: 0; }
.service-content h3 { font-size: 17px; color: var(--blue); margin: 24px 0 10px; }

@media (max-width: 1180px) {
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .service-support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .solution-detail-image img { height: 300px; }
    .service-philosophy { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
    .solution-grid { grid-template-columns: 1fr; }
    .solution-thumb { height: 190px; }
    .solution-detail-image img { height: 220px; }
    .solution-actions { flex-wrap: wrap; }
    .solution-actions .btn-blue, .solution-actions .btn-outline { flex: 1; min-width: 120px; }
    .service-support-grid { grid-template-columns: 1fr; }
    .solutions-intro h2 { font-size: 24px; }
    .sp-text h2 { font-size: 24px; }
    .sp-hotline { padding: 28px 24px; }
    .sp-hotline strong { font-size: 26px; }
}

