/*
Theme Name: Chemical Company
Theme URI: https://example.com/chemical-theme
Author: Chemical Company
Author URI: https://example.com
Description: 专业的化工产品企业主题，支持产品管理和新闻发布功能
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chemical-theme
Tags: e-commerce, business, custom-background, featured-images, threaded-comments, translation-ready
*/

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #003d7a;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --light-text: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    
    /* 确保emoji正确显示 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* 添加emoji字体支持 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-variant-emoji: normal;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== 头部导航 ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-welcome {
    font-size: 14px;
    font-weight: 500;
}

.header-contact {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item .icon-svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-field {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-submit {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit .icon-svg {
    width: 20px;
    height: 20px;
}

.header-main {
    background: var(--white);
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.site-branding .site-logo:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.current-menu-item {
    background: var(--gradient-primary);
    color: #fff;
}

/* 有子菜单的菜单项添加箭头 */
.nav-menu > li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s;
}

/* 下拉菜单样式 */
.nav-menu li.menu-item-has-children {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 9999;
    list-style: none;
    gap: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    margin: 0;
}

.nav-menu .sub-menu li a {
    padding: 12px 25px;
    border-radius: 0;
    color: var(--text-color);
    white-space: nowrap;
}

.nav-menu .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-menu .sub-menu li a.current-menu-item {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 二级下拉菜单（三级菜单） */
.nav-menu .sub-menu li.menu-item-has-children > a::after {
    content: '▶';
    float: right;
    font-size: 10px;
    margin-left: 10px;
    transition: transform 0.3s;
}

.nav-menu .sub-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(90deg);
}

.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ===== Banner 轮播 ===== */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide.active {
    opacity: 1;
}

/* 为背景图片添加遮罩层以提高文字可读性 */
.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-slide .container {
    position: relative;
    z-index: 2;
}

/* 移动端Banner背景 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products-scroll {
        gap: 15px;
    }

    .products-scroll .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 160px;
    }

    .categories-tab-list {
        flex-direction: column;
        align-items: stretch;
    }

    .categories-tab {
        text-align: center;
        padding: 12px 20px;
    }
}

.banner-content {
    color: #fff;
    max-width: 700px;
}

.banner-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.banner-buttons {
    display: flex;
    gap: 15px;
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #fff;
    transform: scale(1.3);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.banner-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

/* Banner箭头移动端适配 */
@media (max-width: 768px) {
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .banner-prev {
        left: 10px;
    }
    
    .banner-next {
        right: 10px;
    }
}

/* ===== 数据统计 ===== */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--light-text);
    font-weight: 500;
}

/* ===== 内容区域 ===== */
.site-content {
    padding: 60px 0;
}

/* 各栏目间距 */
.about-section,
.products-section,
.news-section,
.cases-section,
.contact-section,
.partners-section {
    margin-bottom: 80px;
}

/* ===== 产品分类TAB ===== */
.categories-tabs {
    margin-bottom: 40px;
}

.categories-tab-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.categories-tab {
    display: inline-block;
    padding: 10px 25px;
    background: var(--white);
    color: var(--text-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.categories-tab:hover,
.categories-tab.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--light-text);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.section-decoration {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #e55a2b;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-primary:hover {
    background: var(--gradient-blue);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* ===== 产品分类 ===== */
.categories-tabs {
    margin-bottom: 30px;
}

.categories-tab-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 5px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    justify-content: center;
}

.categories-tab {
    padding: 12px 30px;
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    border: 2px solid transparent;
}

.categories-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== 产品小卡片网格 ===== */
.categories-products {
    margin-bottom: 40px;
}

.products-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card-small {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.product-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.product-image-small {
    width: 100%;
    height: 120px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-image-placeholder {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.product-title-small {
    padding: 10px 12px;
    text-align: center;
}

.product-title-small a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title-small a:hover {
    color: var(--primary-color);
}

.product-title-small a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: block;
    line-height: 1.4;
}

/* ===== 产品网格 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* 产品横向滚动布局（当产品数量少于4时使用） */
.products-scroll {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

/* 隐藏滚动条但保持滚动功能 */
.products-scroll::-webkit-scrollbar {
    height: 6px;
}

.products-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 横向滚动布局时的产品卡片样式 */
.products-scroll .product-card {
    flex: 0 0 calc(25% - 11px);
    min-width: 250px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: var(--secondary-color);
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-code {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.product-excerpt {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    gap: 10px;
}

/* ===== 产品页面侧边栏 ===== */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.products-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s;
}

.category-list li a:hover,
.category-list li.active a {
    background: var(--gradient-primary);
    color: #fff;
}

.category-icon {
    margin-right: 10px;
}

.category-count {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.category-list li.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contact-widget {
    text-align: center;
}

.contact-widget p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.current-category {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.current-category h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.current-category p {
    color: var(--light-text);
}

/* ===== 新闻网格 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-date {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--secondary-color);
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.news-link:hover {
    gap: 10px;
}

/* ===== 车间展示 ===== */
.workshop-section {
    margin-bottom: 60px;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.workshop-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.workshop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.workshop-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.workshop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.workshop-item:hover .workshop-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.overlay-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 关于我们 ===== */
.about-section {
    background: var(--white);
    padding: 60px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.about-info {
    flex: 1;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-content > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.highlight-item:hover {
    background: var(--gradient-primary);
    color: #fff;
}

.highlight-item:hover .highlight-icon {
    background: #fff;
    color: var(--primary-color);
}

.highlight-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-image img,
    .about-image-placeholder {
        height: 300px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .categories-tab-list {
        flex-direction: column;
    }

    .categories-tab {
        text-align: center;
        padding: 14px 20px;
    }

    .products-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image-small {
        height: 100px;
    }

    .product-title-small {
        padding: 8px 10px;
    }

    .product-title-small a {
        font-size: 13px;
    }
}

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-card .contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--light-text);
    font-size: 16px;
}

/* ===== 底部 ===== */
.site-footer {
    background: var(--secondary-color);
    color: #fff;
    margin-top: 80px;
}

.footer-main {
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 0.8fr;
    gap: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
}

.footer-social .social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 80px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-social .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-social .social-icon {
    font-size: 18px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social .social-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.footer-icon-svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
}

.qr-code {
    text-align: center;
}

.qr-image-wrapper {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    flex-direction: column;
}

.qr-icon {
    font-size: 64px;
}

.qr-text {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.6;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links-small {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links-small a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-links-small a:hover {
    color: #fff;
}

.footer-links-small span {
    opacity: 0.5;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: #fff;
}

/* ===== 回到顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

/* ===== Footer：合并栏与二维码（从 footer.php 内联样式迁移到 CSS）===== */
.footer-products-nav-merged {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-products-nav-merged {
        display: flex;
        gap: 20px;
    }

    .footer-products-merged,
    .footer-nav-merged {
        flex: 1;
    }

    .footer-products-merged h3,
    .footer-nav-merged h3 {
        font-size: 16px;
        color: #fff;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .footer-products-merged .footer-links,
    .footer-nav-merged .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-products-merged .footer-links li,
    .footer-nav-merged .footer-links li {
        margin-bottom: 8px;
    }

    .footer-products-merged .footer-links a,
    .footer-nav-merged .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 13px;
        transition: color 0.3s;
    }

    .footer-products-merged .footer-links a:hover,
    .footer-nav-merged .footer-links a:hover {
        color: #fff;
    }
}

.footer-qr .qr-codes {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-qr .qr-code-item {
    text-align: center;
}

.footer-qr .qr-code-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.footer-qr .qr-code-text {
    margin: 10px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-qr .qr-codes {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .footer-qr .qr-code-image {
        width: 100px;
        height: 100px;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ===== 分页 ===== */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pagination-wrapper ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.pagination-wrapper a:hover,
.pagination-wrapper .current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 12px;
}

.no-products-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ===== 空状态消息 ===== */
.no-products-message, .no-news-message, .no-partners-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: var(--light-text);
}

.no-products-icon, .no-news-icon, .no-partners-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* ===== 案例展示 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.case-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.case-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.case-info {
    padding: 25px;
}

.case-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-title a {
    color: var(--text-color);
    transition: color 0.3s;
}

.case-title a:hover {
    color: var(--primary-color);
}

.case-excerpt {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--light-text);
}

.case-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.case-link:hover {
    color: var(--accent-color);
}

/* ===== 案例全网格布局 ===== */
.cases-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.case-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.no-cases-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

/* ===== 案例详情页 ===== */
.page-header {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    color: var(--light-text);
    font-size: 18px;
}

.case-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 60px;
}

.case-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.case-hero-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    position: absolute;
    top: 0;
    left: 0;
}

.case-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
}

.case-hero-content {
    color: #fff;
    max-width: 900px;
}

.case-meta-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.case-hero .case-category {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.case-year {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.case-hero .case-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.case-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-industry,
.case-client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    opacity: 0.9;
}

.case-detail-content {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.case-article {
    background: var(--white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.case-article h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    font-weight: 700;
}

.case-article h3 {
    font-size: 26px;
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-weight: 700;
}

.case-article p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.case-article ul,
.case-article ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.case-article li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 10px;
}

.case-client-info {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.case-client-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.case-client-info p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}

.case-contact h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.case-contact p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.case-contact .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.case-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.case-sidebar h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gradient-primary);
}

.related-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-cases-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-cases-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-cases-list a {
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.related-cases-list a:hover {
    transform: translateX(5px);
}

.related-case-category {
    display: block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.related-case-title {
    display: block;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.case-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-prev a,
.nav-next a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.nav-prev a:hover,
.nav-next a:hover {
    color: var(--primary-color);
}

.nav-label {
    display: block;
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-prev a span[rel="prev"],
.nav-next a span[rel="next"] {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===== 合作伙伴展示 ===== */
.partners-section {
    margin-bottom: 80px;
    background: var(--white);
    padding: 60px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.partner-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.partner-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.partner-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.partner-industry {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

.partner-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
}

.partner-real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Emoji支持 ===== */
.emoji, .product-image-placeholder, .no-products-icon, .no-news-icon, .no-partners-icon, .partner-icon, .category-icon, .detail-icon, .qr-icon, .social-icon, .case-meta-item {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 确保全站emoji正确显示 */
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 .07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-hero {
        height: 350px;
    }

    .case-hero .case-title {
        font-size: 32px;
    }

    .case-article {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid-full {
        grid-template-columns: 1fr;
    }

    .case-hero {
        height: 300px;
    }

    .case-hero .case-title {
        font-size: 28px;
    }

    .case-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header {
        padding: 40px 0;
    }

    .case-article {
        padding: 30px 20px;
    }

    .case-article h2 {
        font-size: 26px;
    }

    .case-article h3 {
        font-size: 22px;
    }

    .case-client-info {
        padding: 20px;
    }

    .case-contact {
        padding: 30px 20px;
    }

    .case-contact h3 {
        font-size: 22px;
    }

    .case-sidebar {
        padding: 20px;
    }

    .case-sidebar h3 {
        font-size: 20px;
    }

    .case-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-prev,
    .nav-next {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }

    .header-welcome {
        text-align: center;
    }

    .header-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-field {
        width: 150px;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* 移动端下拉菜单样式 */
    .nav-menu .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        padding: 0;
        animation: none;
        margin-top: 0;
    }

    .nav-menu .sub-menu li a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
    }

    .nav-menu .sub-menu .sub-menu li a {
        padding-left: 60px;
    }

    /* 移动端隐藏桌面端下拉箭头 */
    .nav-menu > li.menu-item-has-children > a::after {
        content: '+';
        margin-left: 10px;
    }

    .nav-menu > li.menu-item-has-children.open > a::after {
        content: '−';
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .banner-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .products-grid,
    .news-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===== WordPress 样式修复 ===== */
img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.entry-content {
    margin: 20px 0;
}

.wp-block-button__link {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s;
}

.wp-block-button__link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 交互细节（从 JS 内联样式迁移到 CSS，保证可缓存）===== */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-form.focused {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.invalid {
    border-color: #e74c3c !important;
    animation: chemical-shake 0.5s;
}

@keyframes chemical-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

body.loaded {
    animation: chemical-fade-in 0.5s ease;
}

@keyframes chemical-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 统计数字轻动画（不强制隐藏内容） */
.stat-number {
    display: inline-block;
    animation: chemical-count-up 0.8s ease;
}

@keyframes chemical-count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 加载动画 ===== */
.products-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products-loading p {
    color: var(--light-text);
    font-size: 16px;
}

.no-products-temp {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
    font-size: 16px;
}

/* ===== 选中效果 ===== */
::selection {
    background: var(--primary-color);
    color: #fff;
}
