/*
Theme Name: Lance 蓝策电子
Theme URI: https://www.octonet.cn/
Author: Lance
Author URI: https://www.octonet.cn/
Description: 江苏蓝策电子科技有限公司企业站主题（蓝牙AOA / UWB / 星闪高精度室内定位），含产品、解决方案、案例、新闻、技术论坛等自定义内容类型，内置 GEO/SEO 结构化数据。
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lance
Tags: business, custom-menu, custom-logo, featured-images, translation-ready, blog, one-column, two-columns, responsive-layout
*/

/* ============ 1. 变量与基础 ============ */
:root {
    --brand: #108cee;
    --brand-dark: #3168b8;
    --brand-deep: #095eb8;
    --accent: #faaa43;
    --title: #222;
    --text: #666;
    --muted: #999;
    --line: #dcdcdc;
    --line-light: #ececec;
    --card-bg: #f6f6f6;
    --footer-bg: #222;
    --radius: 10px;
    --container: 1240px;
    --header-h: 100px;
    --wrap-pad: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, opacity .25s ease;
}

a:hover {
    color: var(--brand);
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0 0 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 16px;
    color: var(--title);
    font-weight: 700;
    line-height: 1.4;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============ 2. 布局容器 ============ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--wrap-pad);
}

.section {
    padding: 72px 0;
}

.section--tight {
    padding: 48px 0;
}

.section--gray {
    background: #fafbfc;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 42px;
    color: var(--title);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.section-head p {
    font-size: 16px;
    color: var(--text);
    margin: 0;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============ 3. 头部 ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.site-brand img {
    width: 160px;
    height: auto;
}

.primary-nav>ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav li {
    position: relative;
}

.primary-nav>ul>li>a {
    display: block;
    padding: 0 16px;
    height: var(--header-h);
    line-height: var(--header-h);
    font-size: 16px;
    color: #111;
    position: relative;
}

.primary-nav>ul>li>a:hover,
.primary-nav>ul>li.current-menu-item>a,
.primary-nav>ul>li.current-menu-ancestor>a {
    color: var(--brand);
}

.primary-nav>ul>li.current-menu-item>a::after,
.primary-nav>ul>li.current-menu-ancestor>a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 30px;
    height: 2px;
    background: var(--brand);
}

/* 二级下拉 */
.primary-nav .sub-menu {
    position: absolute;
    top: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 168px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border-radius: 6px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    z-index: 20;
}

.primary-nav li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.primary-nav .sub-menu a {
    display: block;
    padding: 8px 22px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.primary-nav .sub-menu a:hover {
    background: #f7f7f7;
    color: var(--brand);
}

.primary-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateY(0);
}

.primary-nav .sub-menu li:hover>.sub-menu {
    transform: translateY(0);
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}

.header-tel img {
    width: 22px;
}

/* 移动端按钮 */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: #222;
    margin: 5px 0;
    transition: .25s;
}

/* ============ 4. Banner 轮播 ============ */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    background: #0d1b2a;
}

/* 用占位撑高，高度与原始 banner 图比例一致（约 3.48 : 1），不裁切不变形 */
.hero::before {
    content: "";
    display: block;
    padding-bottom: 28.7%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: none;
}

.hero__slide.is-active {
    display: block;
}

.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05));
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero__dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}

.hero__dots button.is-active {
    background: #fff;
    width: 28px;
    border-radius: 6px;
}

/* ============ 5. 通用卡片 ============ */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: 0 6px 24px rgba(16, 140, 238, .08);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(16, 140, 238, .16);
}

.card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    object-fit: contain;
    transition: transform .5s;
}

.card:hover .card__icon {
    transform: rotateY(180deg);
}

.card__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--title);
}

.card__desc {
    font-size: 15px;
    color: var(--text);
    margin: 0;
}

/* 首页三大卖点上浮 */
.features-float {
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.features-float .card {
    padding: 40px 32px 60px;
    position: relative;
}

.features-float .card__more {
    position: absolute;
    left: 32px;
    bottom: 22px;
    font-size: 14px;
    color: var(--brand-dark);
}

.features-float .card__more::after {
    content: ">";
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: var(--brand-dark);
    color: #fff;
    font-size: 14px;
    margin-left: 8px;
}

/* ============ 6. 产品优势 8 项 ============ */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adv-item {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: var(--radius);
    transition: box-shadow .3s ease;
}

.adv-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.adv-item img {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.adv-item h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.adv-item p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

/* ============ 7. 解决方案手风琴 ============ */
.sol-accordion {
    display: flex;
    gap: 12px;
    height: 460px;
}

.sol-accordion__item {
    position: relative;
    flex: 1 1 20%;
    width: 20%;
    height: 460px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: width .4s ease, flex-basis .4s ease, padding .4s ease;
    padding: 0;
}

.sol-accordion__item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
    z-index: 1;
}

.sol-accordion__item:hover {
    flex-basis: 38%;
    width: 38%;
}

.sol-accordion__item:hover::after {
    background: rgba(0, 0, 0, .45);
}

.sol-accordion__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 2;
    padding: 0 26px;
    color: #fff;
    transition: all .3s ease;
}

.sol-accordion__title {
    font-size: 22px;
    color: #fff;
    margin: 0 0 6px;
}

.sol-accordion__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, .92);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height .4s ease, opacity .4s ease;
}

.sol-accordion__item:hover .sol-accordion__desc {
    max-height: 120px;
    opacity: 1;
}

/* ============ 8. 数据条 ============ */
.stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.stat__num {
    font-size: 50px;
    line-height: 1;
    font-weight: 700;
    color: var(--brand);
}

.stat__unit {
    font-size: 18px;
    color: var(--brand);
}

.stat__label {
    font-size: 16px;
    color: var(--text);
    margin-top: 14px;
}

/* ============ 9. 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    transition: background .25s ease, transform .25s ease;
}

.btn:hover {
    background: var(--brand-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--brand);
    color: var(--brand);
}

.btn--ghost:hover {
    background: var(--brand);
    color: #fff;
}

/* ============ 10. CTA 条 ============ */
.cta {
    background: linear-gradient(120deg, #0d6fd1, var(--brand));
    padding: 72px 0;
    text-align: center;
    color: #fff;
}

.cta h2 {
    color: #fff;
    font-size: 34px;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.cta p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 28px;
}

.cta u {
    color: var(--accent);
    text-decoration: none;
}

/* ============ 11. 面包屑 ============ */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    padding: 18px 0;
    border-bottom: 1px solid var(--line-light);
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb .sep {
    margin: 0 6px;
    font-style: normal;
}

/* ============ 12. 内页头图 ============ */
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 80, .45);
}

/* ============ 13. 列表页 ============ */
.archive-head {
    padding: 56px 0 24px;
    text-align: center;
}

.archive-head h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.archive-head p {
    font-size: 16px;
    color: var(--text);
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    padding-bottom: 72px;
}

.side-cats {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    align-self: start;
    position: sticky;
    top: 120px;
}

.side-cats__title {
    background: var(--brand);
    color: #fff;
    font-size: 18px;
    padding: 14px 22px;
}

.side-cats ul li a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid var(--line-light);
}

.side-cats ul li a:hover,
.side-cats ul li.current-cat a {
    color: var(--brand);
    background: #f5f9ff;
}

.side-cats ul ul li a {
    padding-left: 38px;
    font-size: 14px;
    color: var(--muted);
}

.side-contact {
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    font-size: 14px;
    color: #555;
}

.side-contact h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--title);
}

/* 分类 chip */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 28px;
}

.cat-chips a {
    padding: 8px 26px;
    border: 1px solid var(--line-light);
    border-radius: 30px;
    font-size: 15px;
    color: #555;
}

.cat-chips a:hover,
.cat-chips a.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

/* 卡片列表 */
.card-grid {
    display: grid;
    gap: 26px;
    padding-bottom: 40px;
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.entry-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(16, 140, 238, .16);
}

.entry-card__thumb {
    position: relative;
    padding-top: 62%;
    background: #f2f5f8 center/cover no-repeat;
}

.entry-card__body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-card__title {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-card__excerpt {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-card__meta {
    margin-top: auto;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    align-items: center;
}

.tag-chip {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 3px;
    background: #eaf4ff;
    color: var(--brand);
}

/* 新闻列表（首页双栏） */
.news-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.news-col {
    padding: 0 40px;
}

.news-col+.news-col {
    border-left: 1px solid var(--line);
}

.news-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.news-col__head h2 {
    font-size: 26px;
    margin: 0;
}

.news-col__head a {
    font-size: 14px;
    color: var(--brand);
}

.news-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
}

.news-list li:last-child {
    border-bottom: 0;
}

.news-list .item-title {
    font-size: 16px;
    color: var(--title);
    display: block;
    margin-bottom: 4px;
}

.news-list .item-title:hover {
    color: var(--brand);
}

.news-list .item-desc {
    font-size: 14px;
    color: var(--text);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list .item-date {
    font-size: 13px;
    color: var(--muted);
}

/* ============ 14. 详情页 ============ */
.single-wrap {
    padding: 48px 0 72px;
}

.single-head {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 28px;
}

.single-head h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.single-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.entry-content h2 {
    font-size: 26px;
    margin: 34px 0 16px;
}

.entry-content h3 {
    font-size: 21px;
    margin: 28px 0 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content img {
    border-radius: 8px;
    margin: 12px 0;
}

.entry-content ul,
.entry-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.entry-content ul li {
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

.entry-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: var(--card-bg);
    border-left: 4px solid var(--brand);
    color: #555;
}

/* 产品参数表 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 32px;
    font-size: 15px;
}

.spec-table th,
.spec-table td {
    border: 1px solid var(--line-light);
    padding: 12px 16px;
    text-align: left;
}

.spec-table th {
    width: 160px;
    background: #f7fafd;
    color: var(--title);
}

/* 上/下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line-light);
    margin-top: 40px;
    padding-top: 24px;
    font-size: 14px;
}

.post-nav a {
    color: var(--text);
}

.post-nav a:hover {
    color: var(--brand);
}

/* 留言表单 */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form .field {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    outline: none;
}

/* ============ 15. 关于我们 ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-photos img {
    border-radius: 8px;
    object-fit: cover;
    height: 220px;
    width: 100%;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--card-bg);
    padding: 36px 26px;
    border-radius: var(--radius);
    text-align: center;
}

.contact-card img {
    width: 50px;
    margin: 0 auto 16px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ============ 16. 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 60px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

.pagination .page-numbers:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pagination .page-numbers.current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ============ 17. 页脚 ============ */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .61);
    font-size: 14px;
}

.footer-main {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.footer-brand img.footer-logo {
    width: 150px;
    margin-bottom: 22px;
}

.footer-brand p {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .61);
}

.footer-brand a {
    color: rgba(255, 255, 255, .8);
}

.footer-qrcodes {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.footer-qrcodes img {
    width: 88px;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #fff;
    opacity: .36;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--brand);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    text-align: center;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .6);
}

/* ============ 18. 404 ============ */
.notfound {
    text-align: center;
    padding: 100px 0;
}

.notfound h1 {
    font-size: 120px;
    color: var(--brand);
    margin-bottom: 10px;
}

/* ============ 18.5 其他补充 ============ */
.news-lead {
    padding-bottom: 18px !important;
}

.news-lead .item-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-form,
.search-form label {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form .search-field {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 30px;
    min-width: 260px;
}

.search-form .search-submit {
    padding: 10px 26px;
    border: 0;
    border-radius: 30px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.stat {
    text-align: left;
}

/* 产品图册 */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 26px;
}

.product-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .3s ease;
}

.product-gallery a:hover img {
    transform: scale(1.03);
}

/* ============ 19. 响应式 ============ */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .primary-nav>ul>li>a {
        padding: 0 11px;
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 72px;
    }

    .site-header__inner {
        height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .header-tel {
        display: none;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .primary-nav>ul>li>a {
        height: auto;
        line-height: 1.6;
        padding: 12px 20px;
        border-bottom: 1px solid var(--line-light);
    }

    .primary-nav>ul>li.current-menu-item>a::after,
    .primary-nav>ul>li.current-menu-ancestor>a::after {
        display: none;
    }

    .primary-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 6px;
        display: none;
    }

    .primary-nav li.is-open>.sub-menu,
    .primary-nav li:hover>.sub-menu {
        display: block;
    }

    .primary-nav .sub-menu a {
        padding: 8px 34px;
    }

    .grid-4,
    .adv-grid,
    .card-grid--4,
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .side-cats {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .features-float {
        margin-top: 0;
    }

    .sol-accordion {
        flex-direction: column;
        height: auto;
    }

    .sol-accordion__item,
    .sol-accordion__item:hover {
        width: 100%;
        flex-basis: auto;
        height: 180px;
        margin-bottom: 10px;
    }

    .sol-accordion__desc {
        max-height: 80px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section {
        padding: 44px 0;
    }

    .section-head h2,
    .archive-head h1 {
        font-size: 26px;
    }

    .hero::before {
        padding-bottom: 58%;
    }

    .page-banner {
        height: 180px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .adv-grid,
    .card-grid--4,
    .card-grid--3,
    .contact-cards,
    .news-columns {
        grid-template-columns: 1fr;
    }

    .news-col {
        padding: 0;
    }

    .news-col+.news-col {
        border-left: 0;
        border-top: 1px solid var(--line);
        margin-top: 24px;
        padding-top: 24px;
    }

    .stat__num {
        font-size: 34px;
    }

    .stats {
        justify-content: flex-start;
        gap: 26px;
    }

    .cta h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .single-head h1 {
        font-size: 22px;
    }

    .notfound h1 {
        font-size: 72px;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        gap: 16px;
    }
}
