﻿/* ==========================================================================
   全站视觉增强（在原主题样式之后加载，仅覆盖表现层，不改变页面结构）
   - 中文无衬线字体回退，提升小字号可读性
   - 产品/文章卡片统一比例、等高与悬停反馈
   - 产品详情、归档、页脚可读性与留白优化
   - 移动端导航、栅格、轮播与表单适配
   ========================================================================== */

/* ---------------------------------------------------------------- 基础 */
body {
    font-family: "Open Sans", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title,
.page-title,
.woocommerce-loop-product__title,
.slide-title,
.woocommerce-tabs .panel h2 {
    font-family: "Oswald", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    letter-spacing: .2px;
}

a {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

:focus-visible {
    outline: 2px solid #dd3333;
    outline-offset: 2px;
}

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

img.img-missing {
    object-fit: contain !important;
    background: #f2f4f0;
    padding: 8px;
}

/* 通用按钮反馈 */
.button,
.slider-button,
input[type="submit"],
button[type="submit"],
.wpcf7-submit,
.woocommerce a.button,
.woocommerce button.button {
    border-radius: 3px;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.button:hover,
.slider-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
    box-shadow: 0 6px 14px rgba(221, 51, 51, .22);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------- 顶部 */
.top-header-wrapper {
    font-size: 13px;
    border-bottom: 0;
}

.site-header .navigation-wrapper {
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

@media (min-width: 993px) {
    .header-wrapper .menu li > a {
        transition: color .18s ease, background-color .18s ease;
    }
}

/* 面包屑 */
.breadcrumbs.clearfix {
    background: transparent;
    margin: 16px 0 22px;
    padding: 0;
}

#online-shop-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
}

.breadcrumb,
.woocommerce-breadcrumb {
    font-size: 13px;
    line-height: 22px;
}

.breadcrumb a,
.woocommerce-breadcrumb a {
    color: #666;
}

.breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
    color: #dd3333;
}

/* ---------------------------------------------------------------- 首页轮播 */
.slider-section .at-slide-unit,
.at-feature-section .at-slide-unit {
    border-radius: 4px;
    overflow: hidden;
}

.at-feature-section .at-slide-unit .slider-desc {
    background: none;
    padding: 18px 22px 16px;
}

.at-feature-section .at-slide-unit .slide-title {
    text-wrap: balance;
}

.at-feature-section .at-slide-unit .slide-title a {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

@media (min-width: 993px) {
    .at-feature-section .at-slide-unit .slider-desc {
        padding: 18px 72px 16px 68px;
        bottom: 24%;
        max-width: 100%;
    }

    .slider-section .slider-details {
        font-size: 30px;
        line-height: 1.32;
        padding-left: 0;
    }

    .at-feature-section .slider-details .slide-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.beside-slider .at-beside-slider-unit {
    border-radius: 4px;
    overflow: hidden;
    background: #eef1ea;
}

/* ---------------------------------------------------------------- 产品卡片 */
.woocommerce ul.products li.product,
.featured-entries-col.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    padding: 0 0 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.woocommerce ul.products li.product:hover,
.featured-entries-col.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    border-color: #e4e4e4;
    transform: translateY(-3px);
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0 12px;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    margin: 10px 0 12px;
    transition: transform .3s ease;
}

.woocommerce ul.products li.product:hover > a.woocommerce-LoopProduct-link > img {
    transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
    height: 4em;
    min-height: 0;
    padding: .5em 0;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2d2d2d;
}

.woocommerce ul.products li.product .price {
    min-height: 1.4em;
    margin-top: auto;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    margin: 6px 12px 0 !important;
    width: calc(100% - 24px);
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px;
}

.woocommerce span.onsale {
    position: absolute;
    min-height: 0;
    min-width: 0;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.7;
    font-weight: 400;
    top: 10px;
    left: 10px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* 产品中心工具条 */
.woocommerce .woocommerce-result-count {
    color: #777;
    font-size: 13px;
    margin: 6px 0;
}

.woocommerce .woocommerce-ordering select {
    border-radius: 3px;
    border-color: #ddd;
    padding: 5px 28px 5px 10px;
    height: 34px;
}

/* ---------------------------------------------------------------- 产品详情 */
.single-product div.product {
    background: #fff;
    border-radius: 6px;
    padding: 26px 26px 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.single-product #primary {
    width: 100%;
    float: none;
}

.single-product div.product div.images img {
    border-radius: 4px;
}

.single-product div.product .summary .product_title {
    font-size: 28px;
    line-height: 1.35;
}

.single-product div.product .summary .price {
    font-size: 24px;
    color: #dd3333;
    margin-bottom: 14px;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
    color: #555;
    line-height: 1.9;
}

.single-product div.product .summary .stock.in-stock {
    display: inline-block;
    color: #3c763d;
    background: #eef7ea;
    border: 1px solid #d6e9c6;
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.single-product div.product form.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.single-product div.product form.cart .quantity input.qty {
    width: 70px;
    height: 38px;
    border-radius: 3px;
    border: 1px solid #ddd;
    text-align: center;
}

.single-product div.product form.cart .single_add_to_cart_button {
    height: 38px;
    padding: 0 22px;
    line-height: 38px;
}

.single-product div.product .product_meta {
    font-size: 13px;
    color: #777;
    border-top: 1px dashed #e8e8e8;
    padding-top: 14px;
}

.single-product div.product .woocommerce-tabs ul.tabs {
    padding-left: 0;
    margin-bottom: 0;
}

.single-product div.product .woocommerce-tabs ul.tabs li a {
    padding: 9px 20px;
    font-size: 14px;
}

.single-product div.product .woocommerce-tabs .panel {
    background: #fff;
    border: 1px solid #eee;
    border-top: 0;
    padding: 20px 22px 6px;
    margin: 0 0 24px;
    line-height: 1.95;
    color: #444;
}

.single-product div.product .woocommerce-tabs .panel h2 {
    font-size: 20px;
    margin: 10px 0 12px;
}

.related.products > h2,
.upsells.products > h2 {
    font-size: 20px;
    margin: 10px 0 16px;
}

/* ---------------------------------------------------------------- 文章归档 */
.blog article.post,
.archive article.post,
.search article.post,
.blog article.page,
.archive article.page {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: box-shadow .25s ease, transform .25s ease;
}

.blog article.post:hover,
.archive article.post:hover,
.search article.post:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}

.blog .post-thumb,
.archive .post-thumb,
.search .post-thumb {
    background: #f4f6f2;
    overflow: hidden;
}

.blog .post-thumb img,
.archive .post-thumb img,
.search .post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog article.post:hover .post-thumb img,
.archive article.post:hover .post-thumb img {
    transform: scale(1.04);
}

.blog article.post .post-content,
.archive article.post .post-content,
.search article.post .post-content {
    padding: 18px 24px 16px;
}

.blog article.post .entry-title,
.archive article.post .entry-title {
    font-size: 21px;
    line-height: 1.45;
}

.single article.post .entry-content,
.single article.page .entry-content {
    line-height: 1.95;
    color: #3b3b3b;
}

.single article.post .entry-content img,
.single article.page .entry-content img {
    border-radius: 4px;
}

.single .post-thumb img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

/* 关于我们 / 联系我们等内容页：给正文一个浅色底，避免文字压在风景图上 */
.page:not(.home) article.page .entry-content {
    background: rgba(255, 255, 255, .90);
    border-radius: 5px;
    padding: 22px 26px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}

.error-404.not-found {
    background: rgba(255, 255, 255, .92);
    border-radius: 5px;
    padding: 8px 26px 24px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}

/* 小工具里的文章卡片（首页最新信息、相关文章） */
.featured-entries-col:not(.woocommerce) .post-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}

.featured-entries-col:not(.woocommerce) .post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-entries-col:not(.woocommerce) .post-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.featured-entries-col:not(.woocommerce) .entry-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-entries-col:not(.woocommerce) .entry-content .details {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页导航 */
.navigation.posts-navigation,
.navigation.pagination {
    margin: 10px 0 24px;
}

.navigation.posts-navigation .nav-links a,
.navigation.pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    background: #fff;
    color: #555;
    transition: all .2s ease;
}

.navigation.posts-navigation .nav-links a:hover,
.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: #dd3333;
    border-color: #dd3333;
    color: #fff;
}

/* ---------------------------------------------------------------- 侧栏 */
.secondary-sidebar .widget {
    border-radius: 5px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}

.secondary-sidebar .widget-title {
    font-size: 18px;
}

.secondary-sidebar .widget ul li {
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ededed;
}

.secondary-sidebar .widget ul li:last-child {
    border-bottom: 0;
}

/* 搜索框 */
.widget_search .search-form input[type="search"],
.widget_search .search-form input[type="text"] {
    height: 38px;
    border-radius: 3px 0 0 3px;
    border: 1px solid #ddd;
    box-shadow: none;
    padding: 0 12px;
    font-size: 14px;
}

.widget_search .search-form input[type="submit"],
.widget_search .search-form button {
    height: 38px;
    border-radius: 0 3px 3px 0;
}

/* ---------------------------------------------------------------- 表单 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content textarea {
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    padding: 9px 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.entry-content input:focus,
.entry-content textarea:focus {
    border-color: #dd3333;
    box-shadow: 0 0 0 3px rgba(221, 51, 51, .10);
    outline: none;
}

.wpcf7 label,
.wpcf7-form label {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.wpcf7 textarea {
    line-height: 1.8;
}

.page .wpcf7 {
    background: rgba(255, 255, 255, .92);
    border-radius: 5px;
    padding: 18px 20px 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}

.page .wpcf7 .wpcf7-submit {
    padding: 9px 30px;
}

.entry-content iframe {
    max-width: 100%;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
    margin-top: 44px;
}

.footer-wrapper {
    background: #f2f4ee;
    color: #4b4c45;
    border-top: 1px solid rgba(39, 40, 35, .08);
}

#footer-top {
    padding: 40px 0 26px;
}

#footer-top .widget_media_image img {
    width: auto;
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

.footer-wrapper .widget-title {
    font-size: 18px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #2b2c26;
    border-bottom: 1px solid rgba(39, 40, 35, .12);
}

.top-bottom .full-width-bottom-footer .widget-title {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: 0;
}

@media (min-width: 993px) {
    #footer-top .footer-columns {
        margin-left: 0;
        margin-right: 0;
    }

    #footer-top .footer-columns .footer-sidebar {
        padding-left: 15px;
        padding-right: 15px;
    }

    #footer-top .footer-columns .footer-sidebar:first-child {
        padding-left: 0;
    }

    #footer-top .footer-columns .footer-sidebar:last-child {
        padding-right: 0;
    }
}

#footer-top,
#footer-bottom {
    border-bottom-color: rgba(39, 40, 35, .10);
}

.footer-wrapper a,
.footer-copyright a {
    color: #3f4038;
}

.footer-wrapper a:hover,
.footer-wrapper a:focus,
.footer-copyright a:hover,
.footer-copyright a:focus {
    color: #dd3333;
}

.site-footer .widget_nav_menu li,
.site-footer .widget_recent_entries li {
    line-height: 34px;
}

.site-footer .widget_nav_menu li:not(:first-child),
.site-footer .widget_recent_entries li:not(:first-child) {
    border-top-color: rgba(39, 40, 35, .10);
}

.site-footer .widget_nav_menu li:before,
.site-footer .widget_recent_entries li:before {
    color: #dd3333;
}

.site-footer .textwidget {
    line-height: 2;
}

.site-footer .textwidget p {
    margin: 0 0 6px;
}

.site-footer .textwidget font {
    color: #cf3330 !important;
}

.footer-copyright {
    background: #e8eae2;
    padding: 18px 0;
    font-size: 13px;
    color: #6b6c63;
}

.footer-copyright .site-info,
.site-info-left {
    margin-top: 0;
    line-height: 1.9;
}

.footer-wrapper .wp-calendar-table caption {
    color: #2b2c26;
    font-weight: 600;
    padding: 4px 0 8px;
}

.footer-wrapper .wp-calendar-table th,
.footer-wrapper .wp-calendar-table td {
    color: #5a5b52;
    border-color: rgba(39, 40, 35, .14);
    font-size: 12px;
    padding: 4px 2px;
}

.footer-wrapper .wp-calendar-table td#today {
    background: #dd3333;
    color: #fff;
    border-radius: 2px;
}

.site-footer .wailian {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 30px;
    margin: 0;
}

.site-footer .wailian li {
    padding: 0;
    line-height: 1.9;
}

/* ---------------------------------------------------------------- 返回顶部 */
.ns-back-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(39, 40, 35, .82);
    color: #fff;
    font-size: 20px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
    z-index: 999;
    padding: 0;
}

.ns-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ns-back-top:hover {
    background: #dd3333;
}

/* 桌面端导航白条与内容同宽 */
@media (min-width: 993px) {
    .header-wrapper #site-navigation {
        background: transparent;
        border-top: 0;
        border-bottom: 0;
        box-shadow: none;
    }

    #site-navigation .header-main-menu.wrapper {
        background: #fff;
        border-top: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
        box-shadow: 0 17px 11px -21px rgba(0, 0, 0, .75);
    }
}

/* ================================================================ 移动端 */
@media (max-width: 992px) {
    /* 头部更紧凑 */
    .header-wrapper {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .site-logo > a {
        margin-right: 10px;
    }

    .site-logo img {
        max-height: 66px;
        width: auto;
    }

    .site-title {
        font-size: 22px;
        line-height: 1.35;
    }

    .site-description {
        font-size: 12px;
    }

    .top-header-wrapper {
        font-size: 12px;
    }

    .top-header-wrapper .icon-box,
    .at-first-level-nav ul li {
        padding: 0 7px;
    }

    /* 移动菜单按钮固定在导航右侧，下拉面板相对于整个导航定位 */
    #site-navigation {
        position: relative;
    }

    .responsive-slick-menu {
        position: static;
        width: auto;
        height: auto;
    }

    .slicknav_menu {
        position: static;
        height: 0;
        padding: 0;
        background: transparent;
    }

    .slicknav_btn {
        position: absolute;
        float: none;
        top: 9px;
        right: 12px;
        margin: 0;
        z-index: 70;
    }

    .slicknav_nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #272823;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
        max-height: 68vh;
        overflow-y: auto;
        z-index: 999;
    }

    .slicknav_nav li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, .10) !important;
    }

    .slicknav_nav li:first-child {
        border-top: 0 !important;
    }

    .header-wrapper .main-navigation .slicknav_nav li a {
        display: block;
        width: 100%;
        padding: 11px 16px;
        color: #fff;
        font-size: 14px;
        line-height: 1.5;
        text-transform: none;
        box-sizing: border-box;
    }

    .header-wrapper .main-navigation .slicknav_nav li a:hover,
    .header-wrapper .main-navigation .slicknav_nav li a:focus {
        background: #dd3333;
        color: #fff;
    }

    .header-wrapper .main-navigation .slicknav_nav ul.sub-menu {
        position: static;
        width: 100%;
        background: #1f201c;
        padding: 0;
        box-shadow: none;
    }

    .header-wrapper .main-navigation .slicknav_nav ul.sub-menu li a {
        padding-left: 32px;
        font-size: 13px;
    }

    .header-wrapper .main-navigation .slicknav_nav .slicknav_arrow {
        color: #fff;
        font-size: 20px;
        padding-right: 14px;
        line-height: 42px;
    }

    /* 首页轮播 */
    .at-feature-section .at-slide-unit {
        height: 300px;
    }

    .at-feature-section .at-slide-unit .slider-desc {
        padding: 14px 16px 12px;
    }

    .at-feature-section .at-slide-unit .slide-title,
    .at-feature-section .at-slide-unit .slide-title a {
        font-size: 22px;
        line-height: 1.4;
    }

    .beside-slider .at-beside-slider-unit {
        height: 150px !important;
    }
}

@media (max-width: 767px) {
    .wrapper {
        width: 94%;
        padding: 0;
    }

    /* 轮播文字与高度 */
    .at-feature-section .at-slide-unit {
        height: 230px;
    }

    .at-feature-section .at-slide-unit .slide-title,
    .at-feature-section .at-slide-unit .slide-title a {
        font-size: 17px;
        line-height: 1.4;
    }

    .at-feature-section .at-slide-unit .slider-desc {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .at-feature-section .at-slide-unit .slider-details,
    .at-feature-section .at-slide-unit .slide-title {
        max-width: 100%;
        width: auto;
    }

    .at-feature-section .at-slide-unit .slide-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .at-feature-section .at-slide-unit .slide-title a {
        display: block;
        word-break: break-word;
    }

    .at-feature-section .at-slide-unit .above-slider-details {
        display: none;
    }

    .at-feature-section .at-slide-unit .slide-desc,
    .at-feature-section .at-slide-unit .slider-buttons {
        display: none;
    }

    .beside-slider .at-beside-slider-unit {
        height: 120px !important;
        margin-bottom: 8px;
    }

    /* 小屏只保留主轮播，避免多张横幅竖向堆叠 */
    .slider-feature-wrap .beside-slider {
        display: none;
    }

    /* 首页小工具：产品两列，文章单列 */
    .featured-entries-col:not(.woocommerce) .single-list {
        width: 100%;
    }

    .featured-entries-col .clearfix {
        margin-bottom: 0;
    }

    /* 产品栅格统一用 grid，保证同一行卡片等高、按钮对齐 */
    .featured-entries-col.woocommerce {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        overflow: visible;
    }

    .featured-entries-col.woocommerce .single-list {
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }

    .featured-entries-col.woocommerce .clearfix {
        display: none;
    }

    .woocommerce ul.products[class*="columns-"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 0 0 16px;
    }

    .woocommerce ul.products[class*="columns-"]::before,
    .woocommerce ul.products[class*="columns-"]::after {
        display: none;
    }

    .woocommerce ul.products[class*="columns-"] li.product {
        width: auto !important;
        float: none !important;
        clear: none !important;
        margin: 0 !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        font-size: 12.5px;
    }

    .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
        padding: 0 8px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        margin: 6px 8px 0 !important;
        width: calc(100% - 16px);
        font-size: 12px;
        padding: 7px 6px;
    }

    /* 文章卡片占满，图片比例统一 */
    .blog article.post .post-content,
    .archive article.post .post-content {
        padding: 14px 16px 12px;
    }

    .blog article.post .entry-title,
    .archive article.post .entry-title {
        font-size: 18px;
    }

    .blog .post-thumb img,
    .archive .post-thumb img {
        aspect-ratio: 16 / 10;
    }

    /* 产品工具条换行 */
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none !important;
        width: 100%;
        text-align: left;
        margin: 0 0 10px;
    }

    .woocommerce .woocommerce-ordering select {
        width: 100%;
    }

    /* 产品详情 */
    .single-product div.product {
        padding: 16px 14px 4px;
    }

    .single-product div.product .summary .product_title {
        font-size: 22px;
    }

    .single-product div.product .woocommerce-tabs ul.tabs li a {
        padding: 8px 14px;
        font-size: 13px;
    }

    .single-product div.product .woocommerce-tabs .panel {
        padding: 14px 14px 2px;
    }

    /* 相关产品两列（沿用上方 grid 规则） */
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 页脚 */
    #footer-top {
        padding: 26px 0 8px;
    }

    .site-footer .footer-sidebar {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    .footer-copyright {
        text-align: center;
    }

    .site-info,
    .site-info-left {
        width: 100%;
        float: none;
        text-align: center;
    }

    .ns-back-top {
        right: 14px;
        bottom: 16px;
        width: 38px;
        height: 38px;
        line-height: 38px;
    }
}

@media (max-width: 480px) {
    /* 首页产品仍保持两列（覆盖主题的单列规则） */
    .featured-entries-col.woocommerce .single-list {
        width: 50%;
    }

    .at-feature-section .at-slide-unit {
        height: 205px;
    }

    .top-header-wrapper .header-left,
    .top-header-wrapper .header-right {
        line-height: 1.8;
    }
}

/* ================================================================ 收藏夹 / 询价 */
.ns-fav-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 10px 12px;
    border-left: 1px solid #e2e2e4;
    color: #2d2d2d;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease;
}

.ns-fav-entry:hover,
.ns-fav-entry:focus {
    color: #dd3333;
}

.ns-fav-entry i {
    color: #dd3333;
}

.ns-fav-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dd3333;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* 产品卡片收藏按钮 */
.ns-fav-toggle.ns-fav-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #ececec;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #b0b0b0;
    font-size: 15px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.ns-fav-toggle.ns-fav-card:hover {
    color: #dd3333;
    border-color: #f0c3c3;
}

.ns-fav-toggle.ns-fav-card.is-active {
    background: #dd3333;
    border-color: #dd3333;
    color: #fff;
}

/* 产品详情操作区 */
.ns-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 18px;
}

.ns-product-actions .button {
    margin: 0 !important;
    padding: 11px 26px;
    line-height: 1.4;
}

.ns-product-actions .ns-inquiry-btn {
    border: 0;
    background: #dd3333;
    color: #fff;
}

.ns-product-actions .ns-inquiry-btn:hover {
    background: #c62b2b;
    color: #fff;
}

.ns-fav-detail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dcdcdc !important;
    background: #fff !important;
    color: #4b4c45 !important;
}

.ns-fav-detail:hover {
    border-color: #dd3333 !important;
    color: #dd3333 !important;
}

.ns-fav-detail.is-active {
    border-color: #dd3333 !important;
    background: #fff6f6 !important;
    color: #dd3333 !important;
}

/* 通用按钮 */
.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ns-btn-primary {
    background: #dd3333;
    color: #fff;
}

.ns-btn-primary:hover,
.ns-btn-primary:focus {
    background: #c62b2b;
    color: #fff;
}

.ns-btn-ghost {
    background: #fff;
    border-color: #dcdcdc;
    color: #4b4c45;
}

.ns-btn-ghost:hover,
.ns-btn-ghost:focus {
    border-color: #dd3333;
    color: #dd3333;
}

.ns-btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.ns-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 悬浮询价表单 */
body.ns-modal-open {
    overflow: hidden;
}

.ns-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ns-modal[hidden] {
    display: none;
}

.ns-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 26, 22, .55);
}

.ns-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px 28px 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.ns-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 26px;
    line-height: 30px;
    cursor: pointer;
}

.ns-modal-close:hover {
    color: #dd3333;
}

.ns-modal-title {
    margin: 0 0 6px;
    color: #2b2c26;
    font-size: 22px;
}

.ns-modal-sub {
    margin: 0 0 18px;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.ns-field {
    margin-bottom: 14px;
}

.ns-field label {
    display: block;
    margin-bottom: 6px;
    color: #3f4038;
    font-size: 13px;
    font-weight: 600;
}

.ns-field label em {
    color: #dd3333;
    font-style: normal;
}

.ns-field input,
.ns-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.ns-field textarea {
    resize: vertical;
}

.ns-field textarea[readonly] {
    background: #f7f8f4;
    color: #555;
    resize: none;
}

.ns-field input:focus,
.ns-field textarea:focus {
    border-color: #dd3333;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(221, 51, 51, .08);
}

.ns-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ns-field .is-invalid {
    border-color: #dd3333;
}

.ns-error {
    display: block;
    margin-top: 4px;
    color: #dd3333;
    font-size: 12px;
}

.ns-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ns-form-msg {
    display: none;
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.ns-form-msg.is-success,
.ns-form-msg.is-error {
    display: block;
}

.ns-form-msg.is-success {
    border: 1px solid #d7ecd4;
    background: #f0f8ef;
    color: #2f7a2f;
}

.ns-form-msg.is-error {
    border: 1px solid #f3d2d2;
    background: #fdf0f0;
    color: #b32a2a;
}

.ns-inquiry-submit {
    width: 100%;
    padding: 11px 18px;
    border: 0;
    border-radius: 4px;
    background: #dd3333;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.ns-inquiry-submit:hover {
    background: #c62b2b;
}

.ns-inquiry-submit:disabled {
    opacity: .6;
    cursor: default;
}

/* 收藏夹页面 */
.ns-favorites-page .ns-fav-page {
    padding: 24px 26px 28px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
}

.ns-fav-page .entry-title {
    margin: 0 0 8px;
    font-size: 26px;
}

.ns-fav-intro {
    margin: 0 0 18px;
    color: #6b6c63;
    font-size: 14px;
}

.ns-fav-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #e9eae4;
    border-radius: 5px;
    background: #f7f8f4;
}

.ns-fav-selectall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #3f4038;
    font-size: 13px;
    cursor: pointer;
}

.ns-fav-selectall input {
    width: 16px;
    height: 16px;
    accent-color: #dd3333;
}

.ns-fav-summary {
    color: #7a7b72;
    font-size: 13px;
}

.ns-fav-tools {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.ns-fav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ns-fav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fff;
}

.ns-fav-item-check {
    flex: 0 0 auto;
    margin: 0;
}

.ns-fav-item-check input {
    width: 16px;
    height: 16px;
    accent-color: #dd3333;
}

.ns-fav-thumb {
    display: flex;
    flex: 0 0 88px;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 4px;
    background: #fafafa;
}

.ns-fav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-fav-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ns-fav-name {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 10px;
    color: #2d2d2d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ns-fav-name:hover {
    color: #dd3333;
}

.ns-fav-item-actions {
    display: flex;
    gap: 8px;
}

.ns-fav-empty {
    padding: 50px 20px;
    color: #8a8b82;
    text-align: center;
}

.ns-fav-empty i {
    margin-bottom: 10px;
    color: #d8d9d1;
    font-size: 42px;
}

.ns-fav-empty p {
    margin: 0 0 16px;
    font-size: 15px;
}

.ns-fav-loading {
    margin: 0;
    color: #8a8b82;
    font-size: 14px;
}

@media (max-width: 992px) {
    .header-right {
        justify-content: center;
    }

    .ns-fav-entry {
        padding-left: 8px;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .ns-fav-label {
        display: none;
    }

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

    .ns-fav-tools {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .ns-field-row {
        grid-template-columns: 1fr;
    }

    .ns-modal {
        padding: 12px;
    }

    .ns-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 22px 18px 18px;
    }

    .ns-favorites-page .ns-fav-page {
        padding: 18px 16px 22px;
    }
}
