/*
Theme Name: KeyboardShop
Theme URI: http://your-domain.com/
Author: Your Name
Author URI: http://your-domain.com/
Description: 专业的键盘商城主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keyboardshop
*/

/* -----------------------------
   1. 基础样式
----------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Logo样式 */
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    transition: all 0.3s ease;
    position: fixed;
    left: 40px;
}

.site-logo .custom-logo,
.site-logo svg {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo {
        width: 32px;
        height: 32px;
    }
}

/* 添加滚动动画相关样式 */
.home-content > *:not(.screenshot-card) {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.home-content > *:not(.screenshot-card).show {
    opacity: 1;
    transform: translateY(0);
}

/* 为不同区块设置不同的过渡延迟 */

.gray-card {
    transition-delay: 0.3s;
}

.featured-products {
    transition-delay: 0.4s;
}

/* 确保滚动行为平滑 */
html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #e70a03;    /* 主要强调色（红色） */
    --color-light: #e6e6e6;      /* 浅色背景 */
    --color-dark: #1c1c1c;       /* 深色背景 */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #999999;
    --color-border: #333333;
}

/* 滚动条整体部分 */
::-webkit-scrollbar {
    width: 10px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 6px;
}
/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: none;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: var(--color-white);
    color: var(--color-white);
}

body.page-template-page-about,
body.page-template-page-contact,
body.woocommerce-page,
body.category,
body.single-post{
    background-color: var(--color-light);
    color: var(--color-black);
    --color-gray: #666;
}
body.page-template-page-contact .site-footer,
body.page-template-page-contact .about-content,
body.page-template-page-contact .top-banner,
body.page-template-page-contact .what-we-do-section,
body.page-template-page-contact .newsletter-input-wrap,
body.page-template-page-about .site-footer,
body.page-template-page-about .about-content,
body.page-template-page-about .top-banner,
body.page-template-page-about .what-we-do-section,
body.page-template-page-about .newsletter-input-wrap,
body.single-post .site-footer,
body.single-post .site-content,
body.single-post .top-banner,
body.single-post .newsletter-input-wrap,
body.single-post .news-container,
body.category .site-footer,
body.category .site-content,
body.category .top-banner,
body.category .newsletter-input-wrap,
body.category .news-container,
body.woocommerce-page .site-footer,
body.woocommerce-page .site-content,
body.woocommerce-page .top-banner,
body.woocommerce-page .newsletter-input-wrap,
body.woocommerce-page .news-container{
    background: none;
    color: var(--color-black);
    border: 0;
}
body.page-template-page-contact .nav-tag,
body.page-template-page-contact .widget-title,
body.page-template-page-contact .top-banner a,
body.page-template-page-about .nav-tag,
body.page-template-page-about .widget-title,
body.page-template-page-about .top-banner a,
body.single-post .widget-title,
body.single-post .top-banner a,
body.single-post .shop-title,
body.single-post .filters-section h2,
body.single-post .filter-title,
body.single-post .arrow path,
body.single-post .checkbox-label,
body.single-post .product-title a,
body.single-post .rating-count,
body.single-post .product_title,
body.single-post .price,
body.single-post .variation-select label,
body.single-post .product-description h2,
body.single-post .product-reviews,
body.single-post .no-reviews,
body.single-post .wc-block-components-checkout-step__title,
body.category .widget-title,
body.category .top-banner a,
body.category .shop-title,
body.category .filters-section h2,
body.category .filter-title,
body.category .arrow path,
body.category .checkbox-label,
body.category .product-title a,
body.category .rating-count,
body.category .product_title,
body.category .price,
body.category .variation-select label,
body.category .product-description h2,
body.category .product-reviews,
body.category .no-reviews,
body.category .wc-block-components-checkout-step__title,
body.woocommerce-page .widget-title,
body.woocommerce-page .top-banner a,
body.woocommerce-page .shop-title,
body.woocommerce-page .filters-section h2,
body.woocommerce-page .filter-title,
body.woocommerce-page .arrow path,
body.woocommerce-page .checkbox-label,
body.woocommerce-page .product-title a,
body.woocommerce-page .rating-count,
body.woocommerce-page .product_title,
body.woocommerce-page .price,
body.woocommerce-page .variation-select label,
body.woocommerce-page .product-description h2,
body.woocommerce-page .product-reviews,
body.woocommerce-page .no-reviews,
body.woocommerce-page .wc-block-components-checkout-step__title,
body.woocommerce-page .woocommerce-MyAccount-navigation a,
body.woocommerce-page .woocommerce-MyAccount-content,
body.woocommerce-page .woocommerce-MyAccount-content strong,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-Address-title h2,
body.woocommerce-page .woocommerce-Address address,
body.woocommerce-page .woocommerce form .form-row label,
body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-page fieldset legend,
body.woocommerce-page .login-to-review a,
body.woocommerce-page .woocommerce form .lost_password a,
body.category .woocommerce-LostPassword a,
body.single-post .woocommerce-LostPassword a{
    color: var(--color-black) !important;
    stroke: var(--color-black);
}

body.woocommerce-page .woocommerce-MyAccount-content p a:not([href*="logout"]){
    color: #ff0000;
}

body.woocommerce-page .product-description{
    color: #666;
}

body.woocommerce-page .rating-stars .star,
body.woocommerce-page .star-rating-select .star,
body.woocommerce-page .review-rating .star{
    stroke: var(--color-black);
}
body.page-template-page-about .main-navigation .nav-menu,
body.page-template-page-about .newsletter-input-wrap input[type="email"],
body.page-template-page-contact .main-navigation .nav-menu,
body.page-template-page-contact .newsletter-input-wrap input[type="email"],
body.single-post .main-navigation .nav-menu,
body.single-post .newsletter-input-wrap input[type="email"],
body.single-post .shop-content .product-info,
body.single-post .add-review,
body.single-post .wp-block-woocommerce-checkout-order-summary-block,
body.single-post .login-to-review,
body.single-post .review-item,
body.category .main-navigation .nav-menu,
body.category .newsletter-input-wrap input[type="email"],
body.category .shop-content .product-info,
body.category .add-review,
body.category .wp-block-woocommerce-checkout-order-summary-block,
body.category .login-to-review,
body.category .review-item,
body.woocommerce-page .main-navigation .nav-menu,
body.woocommerce-page .newsletter-input-wrap input[type="email"],
body.woocommerce-page .shop-content .product-info,
body.woocommerce-page .add-review,
body.woocommerce-page .wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-page .login-to-review,
body.woocommerce-page .review-item{
    background-color: var(--color-white);
}

body.woocommerce-page .review-content textarea,
body.woocommerce-page .woocommerce form .form-row input.input-text, 
body.woocommerce-page .woocommerce form .form-row textarea,
body.woocommerce-page .select2,
body.woocommerce-page fieldset{
    color: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: 6px;
}

body.woocommerce-page .single_add_to_cart_button,
body.woocommerce-page .cart-sidebar .checkout-button,
body.woocommerce-page .return-to-shop .button{
    background-color: var(--color-black);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -----------------------------
   2. 头部导航
----------------------------- */
/* 顶部横幅样式 */
.top-banner {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 8px 20px;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}

.top-banner a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
}

.top-banner a:hover {
    opacity: 0.8;
}

/* 调整原有header的样式以适应新的横幅 */
.site-header {
    position: fixed;
    width: 100%;
    top: 36px; /* 为顶部横幅留出空间 */
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
}

.main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 50px;
}

/* 主导航菜单 */
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 5px 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--color-light);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-navigation .nav-menu > li {
    margin: 0 2px;
    position: relative;
}

.main-navigation .nav-menu > li > a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 9999px;
    display: block;
    line-height: 1.2;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a {
    background: var(--color-primary);
    color: var(--color-white);
}

/* 二级菜单 */
.main-navigation .nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-light);
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
    list-style: none;
}

.main-navigation .nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

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

.main-navigation .nav-menu .sub-menu li {
    margin: 0;
    width: 100%;
}

.main-navigation .nav-menu .sub-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.main-navigation .nav-menu .sub-menu a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
    display: block;
    text-align: left;
}

.main-navigation .nav-menu .sub-menu a:hover {
    background: none;
    color: var(--color-primary);
}

/* 导航分隔线样式 */
.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--color-light);
    margin: 0 20px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.3;
}

/* 菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
}

.menu-toggle-icon,
.menu-toggle-icon:before,
.menu-toggle-icon:after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

.menu-toggle-icon {
    top: 14px;
}

.menu-toggle-icon:before {
    top: -6px;
}

.menu-toggle-icon:after {
    bottom: -6px;
}

.menu-toggle.active .menu-toggle-icon {
    background: transparent;
}

.menu-toggle.active .menu-toggle-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-toggle-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 购物车按钮 */
.cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border-radius: 9999px;
    color: var(--color-white);
    transition: all 0.3s ease;
    position: fixed;
    right: 90px; /* 40px + 按钮宽度 + 间距 */
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 10, 3, 0.3);
}

.cart-button svg {
    width: 20px;
    height: 20px;
}

/* 个人中心按钮样式 */
.profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border-radius: 9999px;
    color: var(--color-white);
    transition: all 0.3s ease;
    position: fixed;
    right: 40px;
}

.profile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 10, 3, 0.3);
}

.profile-button svg {
    width: 20px;
    height: 20px;
}

/* -----------------------------
   3. 首页样式
----------------------------- */
.home-content {
    position: relative;
    z-index: 1;
    height: auto;
    overflow: visible;
    padding-bottom: 1px;
    background-color: var(--color-dark);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slide img,
.slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-btn {
    display: inline-block;
    padding: 5px 20px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    background-color: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* 分页器样式 */
.slider-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    display: flex;
    z-index: 3;
}

.pagination-item {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 5s linear;
}

.pagination-item.active {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 18px;
    }

    .slide-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

/* Gray卡片 */
.gray-card {
    background-color: var(--color-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 600px;
    box-sizing: border-box;
}

/* 空白卡片样式 */
.empty-card {
    background-color: var(--color-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 300px;
    max-height: 450px;
    box-sizing: border-box;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.empty-card-content {
    height: 100%;
    min-height: inherit;
    max-height: inherit;
    display: flex;
    align-items: stretch;
}

.empty-card-left {
    flex: 0 0 36%;
    background-color: #FF4D00;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.empty-card-tag {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    width: fit-content;
}

.empty-card-title {
    color: #000;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.empty-card-price {
    color: #000;
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

.empty-card-description {
    color: #000;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
    margin-bottom: 60px;
}

.empty-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #000;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.empty-card-button svg {
    width: 16px;
    height: 16px;
    stroke: #000;
    transition: transform 0.3s ease;
}

.empty-card-button:hover {
    background-color: #000;
    color: #FF4D00;
}

.empty-card-button:hover svg {
    stroke: #FF4D00;
    transform: translateX(5px);
}

.empty-card-right {
    flex: 1;
    background-color: var(--color-light);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.empty-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gray卡片内容 */
.gray-card-content {
    display: flex;
    height: 100%;
    box-sizing: border-box;
}

.gray-card-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    position: relative;
    box-sizing: border-box;
}

.gray-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}

.gray-card-right {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.highlight-section {
    background-color: var(--color-primary);
    padding: 30px;
    border-bottom-left-radius: 30px;
    height: 60%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
    width: fit-content;
}

.highlight-title {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 5px;
}

.highlight-specs {
    color: #fff;
    font-size: 15px;
    margin-top: 15px;
    opacity: 0.9;
}

.highlight-price {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

.highlight-description {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 25px;
    opacity: 0.9;
}

.highlight-description strong {
    color: #fff;
    opacity: 1;
}

.highlight-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    right: 30px;
    bottom: 30px;
    letter-spacing: 1px;
}

.highlight-button svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
}

.product-images {
    display: flex;
    gap: 0;
    padding: 0;
    height: 45%;
    background-color: rgb(211, 211, 211);
    margin-top: -3%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-images img:first-child {
    flex: 0 0 70%;
}

.product-images img:last-child {
    flex: 0 0 30%;
}

.product-info {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.product-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-title strong {
    font-weight: 600;
}

.product-description {
    font-size: 13px;
    color: var(--color-gray);
    margin: 12px 0;
    line-height: 1.5;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    margin-top: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    color: #E0E0E0;
    width: 16px;
    height: 16px;
}

.star.filled {
    color: #FFD700;
}

.rating-score {
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: none;
    border-radius: 0;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.product-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.product-link:hover svg {
    transform: translateX(5px);
}

.no-products {
    text-align: center;
    color: var(--color-white);
    grid-column: 1 / -1;
    font-size: 16px;
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 40px 20px;
    }

    .featured-products .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 30px;
        padding: 0;
    }

    .product-card {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        margin-bottom: 20px;
    }

    .product-info {
        padding: 15px 0;
        gap: 10px;
        margin-bottom: 15px;
    }

    .product-title {
        font-size: 16px;
        margin: 0;
    }

    .product-description {
        font-size: 14px;
        margin: 0;
        min-height: auto;
    }

    .product-meta {
        margin: 10px 0;
    }

    .product-link {
        width: 100%;
        padding: 12px 20px;
        margin: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding: 20px 15px;
    }

    .featured-products .container {
        padding: 0;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr !important;  /* 强制使用1列 */
        gap: 50px;
        margin: 0;
        width: 100%;
        padding: 0 15px;
    }

    .product-card {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        margin-bottom: 20px;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1;
    }

    .product-info {
        width: 100%;
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .product-title {
        font-size: 18px;
        margin: 0;
    }

    .product-description {
        font-size: 14px;
        margin: 0;
        min-height: auto;
    }

    .product-meta {
        margin: 10px 0;
    }

    .product-price {
        font-size: 20px;
    }

    .product-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: var(--color-primary);
        color: var(--color-white);
        text-decoration: none;
        font-size: 14px;
        padding: 12px 20px;
        margin: 0;
        border: none;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
        min-width: 100%;
        max-width: 100%;
        overflow: visible;
        margin-bottom: 10px;
    }

    .product-link span {
        display: inline-block;
        white-space: nowrap;
    }

    .product-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

/* -----------------------------
   4. 关于页
----------------------------- */
.about-content {
    padding: 120px 0;
    background-color: var(--color-dark);
    color: var(--color-white);
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.story-section {
    margin-bottom: 100px;
}

.quote {
    font-size: 24px;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.8;
}

.story-paragraphs p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

.timeline-item .year {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--color-primary);
}

.timeline-item .content {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.what-we-do-section {
    padding: 60px 20px;
    background: #1c1c1c;
}

.what-we-do-section .section-title {
    text-align: center;
    margin: 60px 0 120px;
    font-size: 40px;
    font-weight: 600;
}

.what-we-do-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.nav-tags {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-tag {
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.nav-tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-tag.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.image-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* -----------------------------
   5. 页脚
----------------------------- */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0;
}
.site-footer .footer-logo{
    margin-left: -27px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .footer-widget:not(:last-child)::after{
        display: none;
    }
    .footer-widget {
        padding: 0 12px !important;
    }
    .footer-bottom-content{
        flex-direction: column;
    }
    .copyright{
        margin-bottom: 20px;
    }
}

.footer-widget {
    padding: 0 30px;
    margin-bottom: 30px;
    position: relative;
}

.footer-widget:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: calc(100% + 20px); /* 增加高度，使分隔线延伸到更下方 */
    width: 1px;
    background-color: var(--color-border);
}

.widget-title {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-white);
}

.footer-social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-social-link {
    color: var(--color-gray);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-newsletter {
    margin-top: 20px;
}

.newsletter-input-wrap {
    display: flex;
    gap: 10px;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    padding: 5px;
}

.newsletter-input-wrap input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 10px;
    font-size: 14px;
    outline: none;
}

.newsletter-input-wrap button {
    background: var(--color-light);
    color: var(--color-dark);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 30px;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    text-align: center;
}

.payment-methods {
    display: flex;
    gap: 10px;
    align-items: center;
}

.payment-icon {
    width: 38px;
    height: 24px;
    transition: opacity 0.3s ease;
}


.contact-box{
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
}
.contact-box .contact-grid{
    width: 500px;
}
.contact-box .contact-grid .contact-item{
    margin: 0 0 30px 0;
}
.contact-box .contact-grid .contact-item p{
    color: #666;
}
.contact-box .contact-main{
    flex: 1;
}
.contact-box .contact-main .contact-form-wrapper h3{
    font-weight: 400;
    font-size: 14px;
    color: #888;
    margin: 10px 0 20px 0;
}
.contact-box .contact-main .contact-form-wrapper .form-group{
    margin: 0 0 20px 0;
}
.contact-box .contact-main .contact-form-wrapper .form-group label,
.wpcf7-form label{
    display: block;
    color: #666;
    font-size: 15px;
    margin: 15px 0 10px 0;
}
.contact-box .contact-main .contact-form-wrapper .form-group input,
.contact-box .contact-main .contact-form-wrapper .form-group textarea,
.wpcf7-form input,
.wpcf7-form textarea{
    font-family: Arial, Helvetica, Verdana, sans-serif;
    font-size: 12px;
    position: relative;
    outline: none;
    padding: 14px 8px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    color: #8C8C8C;
    border: 1px solid #eee;
    background: #f6f6f6;
    -moz-box-box-shadow: inset 0 0 0 1px #fff, 1px 2px 0px #eee;
    -webkit-box-shadow: inset 0 0 0 1px #fff, 1px 2px 0px #eee;
    box-shadow: inset 0 0 0 1px #fff, 1px 2px 0px #eee;
    margin: 5px 0 0 0;
    width: 100%;
}
.contact-box .contact-main .contact-form-wrapper .btn-primary,
.wpcf7-form .wpcf7-submit{
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s;
}

/* -----------------------------
   6. 响应式样式
----------------------------- */
@media (max-width: 1024px) {
    .what-we-do-content {
        gap: 40px;
    }

    .nav-tags {
        flex: 0 0 250px;
        gap: 25px;
    }

    .nav-tag {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        min-width: 200px;
        background: rgba(255, 255, 255, 0.98);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .main-navigation .nav-menu{
        display: none;
    }

    .nav-menu.active {
        display: flex;
        top: 0;
        right: 0;
        left: unset;
        transform: none;
        width: 200px;
        border-radius: 0;
        position: fixed;
        height: 100%;
        justify-content: start;
        padding: 80px 0 0 0;
        z-index: 9;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background-color: var(--color-primary);
        border-radius: 9999px;
        color: var(--color-white);
        transition: all 0.3s ease;
        position: fixed;
        right: 20px;
        z-index: 10;
    }
    .menu-toggle-icon, .menu-toggle-icon:before, .menu-toggle-icon:after{
        background: #fff;
    }
    .menu-toggle-icon {
        top: 16px;
        left: 4px;
    }
    .profile-button{
        right: 70px;
    }
    .cart-button{
        right: 120px;
    }
    .main-navigation .nav-menu > li{
        margin: 10px 5px;
    }
}

/* Logo样式 */
.logo {
    height: 40px;
    width: auto;
}

/* 推荐产品 */
.featured-products {
    background-color: var(--color-white);
    margin: 0;
    padding: 80px 0;
}

.featured-products .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.featured-products .section-title {
    color: var(--color-black);
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
}


.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

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

.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    color: #E0E0E0;
    width: 16px;
    height: 16px;
}

.star.filled {
    color: #FFD700;
}

.rating-score {
    color: var(--color-black);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: none;
    border-radius: 0;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.product-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.product-link:hover svg {
    transform: translateX(5px);
}

.no-products {
    text-align: center;
    color: var(--color-white);
    grid-column: 1 / -1;
    font-size: 16px;
    opacity: 0.7;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 40px 20px;
    }

    .featured-products .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 30px;
        padding: 0;
    }

    .product-card {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        margin-bottom: 20px;
    }

    .product-info {
        padding: 15px 0;
        gap: 10px;
        margin-bottom: 15px;
    }

    .product-title {
        font-size: 16px;
        margin: 0;
    }

    .product-description {
        font-size: 14px;
        margin: 0;
        min-height: auto;
    }

    .product-meta {
        margin: 10px 0;
    }

    .product-link {
        width: 100%;
        padding: 12px 20px;
        margin: 0;
        margin-bottom: 10px;
    }
}

.star-rating {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    color: #E0E0E0;
    width: 16px;
    height: 16px;
}

.star.filled {
    color: #FFD700;
}

.rating-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-left: 4px;
}

/* 产品图片样式 */
.wc-block-grid__product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

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

.wc-block-grid__product-image .wc-block-grid__product-onsale {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 选中状态时确保图片也填充满容器 */
.wc-block-grid__product-image.is-selected {
    position: relative;
    overflow: hidden;
}

.wc-block-grid__product-image.is-selected img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
        background: #000;
}

.hover-image {
    opacity: 0;
}

.product-image:hover .main-image {
    opacity: 0.5;
}

.product-image:hover .hover-image {
    opacity: 1;
}

/* Newsletter Form Styles */
.newsletter-message {
    margin-top: 10px;
    font-size: 14px;
}

.newsletter-message .success {
    color: #4CAF50;
}

.newsletter-message .error {
    color: #f44336;
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-input-wrap {
    display: flex;
    gap: 10px;
}

.newsletter-input-wrap input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-input-wrap button {
    padding: 8px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.newsletter-input-wrap button:hover {
    background-color: #333;
}

.story-text{
    position: relative;
    padding: 0 530px 0 0;
}
.story-text > img{
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
}
.story-paragraphs{
    text-align: justify;
}
.about-pics{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
        justify-content: space-between;
}
.about-pics img{
    display: block;
    width: 49%;
    height: auto;
}
@media (max-width: 768px) {
    .story-text{
        padding: 0;
    }
    .story-text > img{
        position: unset;
        width: 100%;
        height: auto;
    }
    .story-paragraphs {
        text-align: unset;
    }
    .about-pics img{
        width: 100%;
    }
}

/* -----------------------------
   弹窗样式
----------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--color-white);
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 2;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.popup-image {
    height: 100%;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.popup-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: #fff;
}

.popup-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}

.popup-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.popup-form input[type="email"]:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: none;
}

.popup-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.popup-form button[type="submit"]:hover {
    background: #d60903;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 10, 3, 0.2);
}

.no-thanks {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    margin-top: 5px;
    transition: all 0.3s ease;
    text-align: center;
}

.no-thanks:hover {
    color: #333;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-width: 350px;
    }

    .popup-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .popup-image {
        height: 180px;
    }
    
    .popup-form {
        padding: 25px;
    }

    .popup-form h2 {
        font-size: 20px;
    }
}

.rounded-full {
    border-radius: 9999px !important;
}

.popup-form h2 {
    text-align: center !important;
}

.popup-form form {
    display: flex;
    flex-direction: column;
    gap: 15px !important;
}

/* -----------------------------
   客户案例轮播
----------------------------- */
.customer-case {
    background-color: var(--color-white);
}

.customer-case .section-title {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 50px;
    font-size: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.customer-case .section-title::before,
.customer-case .section-title::after {
    content: '';
    height: 1px;
    width: 100px;
    background-color: rgba(255, 255, 255, 0.2);
}

.case-slider {
    position: relative;
}

.case-slider .slide {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-slider .slide img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.case-slider .slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Owl Carousel 导航按钮样式 */
.case-slider .owl-nav {
    margin: 0;
}

.case-slider .owl-nav button.owl-prev,
.case-slider .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: var(--color-primary) !important;
    color: white !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.case-slider .owl-nav button.owl-prev:hover,
.case-slider .owl-nav button.owl-next:hover {
    background: #d60903 !important;
    transform: translateY(-50%) scale(1.1);
}

.case-slider .owl-nav button span {
    font-size: 24px;
    line-height: 1;
    margin-top: -3px;
}

.case-slider .owl-prev {
    left: 0;
}

.case-slider .owl-next {
    right: 0;
}

@media (max-width: 768px) {
    .case-slider {
        padding: 0 40px;
    }

    .case-slider .slide img {
        height: 45px;
    }

    .case-slider .owl-nav button.owl-prev,
    .case-slider .owl-nav button.owl-next {
        width: 32px;
        height: 32px;
    }

    .case-slider .owl-nav button span {
        font-size: 20px;
    }
}

.title-with-lines {
    font-size: 24px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
}

.title-with-lines::before,
.title-with-lines::after {
    content: '' !important;
    height: 1px !important;
    width: 100px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 768px) {
    .title-with-lines {
        font-size: 20px !important;
        gap: 15px !important;
    }

    .title-with-lines::before,
    .title-with-lines::after {
        width: 50px !important;
    }
}

/* 新闻列表样式 */
.news-container {
    padding: 0;
    background: var(--color-dark);
    margin-top: 120px;
}

.news-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-main {
    width: 100%;
}

/* 新闻列表项样式 */
.news-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.news-thumbnail {
    flex: 0 0 280px;
    height: 187px;
    overflow: hidden;
    border-radius: 15px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.news-item .entry-title {
    font-size: 20px;
    margin: 0 0 12px;
    line-height: 1.4;
}

.news-item .entry-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item .entry-title a:hover {
    color: var(--color-primary);
}

.news-excerpt {
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    color: var(--color-gray);
    font-size: 13px;
}

.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-views svg {
    opacity: 0.5;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-border);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--color-primary);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .news-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-container {
        margin-top: 100px;
    }

    .news-wrapper {
        padding: 0 15px;
    }

    .news-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .news-thumbnail {
        flex: 0 0 auto;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .news-container {
        margin-top: 80px;
    }
}

/* -----------------------------
   文章内页样式
----------------------------- */
.kb-article {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    color: var(--color-white);
}

.kb-article__header {
    margin-bottom: 40px;
}

.kb-article__meta {
    text-align: left;
}

.kb-article__category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.kb-article__title {
    font-size: 36px;
    line-height: 1.4;
    margin: 0 0 30px;
    font-weight: 600;
    text-align: left;
    color: #000;
}

.kb-article__info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    color: var(--color-gray);
    font-size: 14px;
}

.kb-article__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kb-article__author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.kb-article__date,
.kb-article__views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kb-article__date svg,
.kb-article__views svg {
    opacity: 0.5;
}

.kb-article__thumbnail {
    margin: 0 -20px 40px;
    height: 500px;
    overflow: hidden;
}

.kb-article__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-article__content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray);
    max-width: 1000px;
    margin: 0 auto;
}

.kb-article__content p {
    margin-bottom: 20px;
}

.kb-article__content h2,
.kb-article__content h3,
.kb-article__content h4 {
    color: var(--color-white);
    margin: 40px 0 20px;
}

.kb-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 30px 0;
}

.kb-article__content a {
    color: var(--color-primary);
    text-decoration: none;
}

.kb-article__content a:hover {
    text-decoration: underline;
}

.kb-article__pages {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.kb-article__footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.kb-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.kb-article__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 13px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kb-article__tag:hover {
    background: var(--color-primary);
}

.kb-article__share {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.kb-article__share-title {
    color: var(--color-gray);
    font-size: 14px;
}

.kb-article__share-links {
    display: flex;
    gap: 15px;
}

.kb-article__share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-black);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.kb-article__share-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .kb-article {
        margin: 0 auto 40px;
        padding: 0 15px;
    }

    .kb-article__title {
        font-size: 28px;
    }

    .kb-article__info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .kb-article__thumbnail {
        height: 300px;
        margin: 0 -15px 30px;
    }

    .kb-article__content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .kb-article {
        margin: 0 auto 30px;
    }

    .kb-article__title {
        font-size: 24px;
    }

    .kb-article__thumbnail {
        height: 200px;
    }
}

.kb-article__category,
.news-category {
    color: var(--color-gray);
    font-size: 14px;
}

/* 移除旧的复杂样式 */
.kb-article__category,
.news-category {
    display: inline;
    padding: 0;
    background: none;
    border-radius: 0;
    margin: 0;
}

/* 在日期和分类之间添加分隔符 */
.kb-article__date::after,
.news-date::after {
    content: '•';
    margin: 0 8px;
    opacity: 0.5;
}

/* 调整meta-right的布局 */
.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .top-banner {
        padding: 6px 15px;
        font-size: 12px;
    }

    .site-header {
        top: 32px; /* 移动端稍微减小间距 */
    }
}

@media (max-width: 768px) {
    .screenshot-card {
        min-height: clamp(200px, 70vh, 500px);
        background-image: url('https://worklouder.cc/wp-content/uploads/2023/10/Nomad-Atomic-.55-1-1.png');
        background-color: rgb(218, 218, 218);
        background-position: center;
        background-size: 250% auto;
        background-repeat: no-repeat;
    }
}

/* 空白卡片样式 */
.empty-card {
    background-color: var(--color-dark);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 300px;
    max-height: 450px;
    box-sizing: border-box;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.empty-card.show {
    opacity: 1;
    transform: translateY(0);
}

.empty-card-content {
    height: 100%;
    min-height: inherit;
    max-height: inherit;
    display: flex;
    align-items: stretch;
}

.empty-card-left {
    flex: 0 0 36%;
    background-color: #FF4D00;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 添加响应式布局 */
@media (max-width: 1200px) {
    .empty-card {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .empty-card-content {
        flex-direction: column;
        height: auto;
    }

    .empty-card-left {
        flex: 0 0 auto;
        padding: 40px;
        min-height: 300px;
    }

    .empty-card-right {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .empty-card-left {
        padding: 30px;
        min-height: 280px;
    }

    .empty-card-right {
        min-height: 280px;
        padding: 0;
    }

    .empty-card-description {
        margin-bottom: 60px;
    }

    .empty-card-button {
        bottom: 30px;
        left: 30px;
    }
}

@media (max-width: 480px) {
    .empty-card-left {
        padding: 25px;
        min-height: 260px;
    }

    .empty-card-title {
        font-size: 32px;
    }

    .empty-card-right {
        min-height: 250px;
        padding: 0;
    }

    .empty-card-button {
        bottom: 25px;
        left: 25px;
    }
}

.featured-products {
    background-color: var(--color-white);
    margin: 0;
    padding: 40px 0;
}

.featured-products .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.featured-products .section-title {
    color: var(--color-black);
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-button {
    background: none;
    border: none;
    color: var(--color-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.tab-button:hover {
    color: var(--color-black);
}

.tab-button.active {
    color: var(--color-black);
}

.tab-button.active::after {
    width: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-tabs {
        gap: 15px;
    }

    .tab-button {
        font-size: 13px;
        padding: 6px 15px;
    }
}

/* 推介计划卡片 */
.affiliate-card {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
}

.affiliate-card.show {
    opacity: 1;
    transform: translateY(0);
}

.affiliate-content {
    background-color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.affiliate-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.affiliate-text {
    text-align: left;
    color: var(--color-white);
    max-width: 800px;
    margin: 0;
    padding-left: 60px;
    position: relative;
    z-index: 1;
}

.affiliate-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
}

.affiliate-heading {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 15px 0;
    white-space: nowrap;
}

.affiliate-desc {
    font-size: 14px;
}

@media (max-width: 1200px) {
    .affiliate-content {
        height: 400px;
        padding: 40px;
    }
    
    .affiliate-text {
        padding-left: 40px;
    }
    
    .affiliate-heading {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .affiliate-content {
        height: 300px;
        padding: 30px;
    }
    
    .affiliate-text {
        padding-left: 20px;
    }
    
    .affiliate-heading {
        font-size: 24px;
    }
    
    .affiliate-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .affiliate-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .affiliate-content {
        height: 250px;
        padding: 20px;
    }
    
    .affiliate-text {
        padding-left: 15px;
    }
    
    .affiliate-heading {
        font-size: 20px;
    }
}

/* Photo Wall */
.photo-wall {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s ease;
    background-color: var(--color-white);
}

.photo-wall.show {
    opacity: 1;
    transform: translateY(0);
}

.photo-wall-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 10px;
    padding-top: 30px;
}

.photo-wall-container {
    position: relative;
    overflow: hidden;
    height: 500px;
    border-radius: 15px;
    cursor: grab;
}

.photo-wall-container:active {
    cursor: grabbing;
}

.photo-wall-track {
    display: flex;
    gap: 20px;
    height: 100%;
    transition: none;
    user-select: none;
}

.photo-item {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    user-select: none;
    position: relative;
}

.photo-item a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.photo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 768px) {
    .photo-wall-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .photo-wall-container {
        height: 300px;
    }
}

.photo-item {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    user-select: none;
    position: relative;
}

.photo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.photo-link {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.photo-link svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transition: transform 0.3s ease;
}

.photo-link:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.photo-link:hover svg {
    transform: translateX(2px);
}

/* 服务承诺文字轮播样式 */
.service-slider {
    background-color: #6B46C1;
    color: var(--color-white);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.service-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.service-content {
    display: flex;
    padding-right: 50px;
}

.service-content span {
    color: white;
    font-size: 14px;
    padding: 0 30px;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

.service-track:hover {
    animation-play-state: paused;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Tag Styles */
.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-tag.hot {
    background-color: #ff4d4d;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 77, 77, 0.2);
}

.product-tag.new {
    background-color: #00dc82;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 220, 130, 0.2);
}

.product-tag.oem {
    background-color: #6B46C1;
    color: white;
    box-shadow: 0 2px 4px rgba(107, 70, 193, 0.2);
}

/* Ensure proper positioning */
.product-gallery {
    position: relative;
}

.kb-article__excerpt {
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



@media (max-width: 768px) {
    .gray-card{
        height: auto;
    }
    .gray-card-content {
        flex-direction: column;
    }
    .gray-card-image{
        flex: none;
        max-width: 100%;
        height: 70vw;
    }
    .product-images{
        height: 70vw;
    }
    .product-images img:first-child{
        flex: 0 0 50%;
    }
    .product-images img:last-child{
        flex: 0 0 50%;
    }
}

