/*
Theme Name: 润滑油批发CMS
Theme URI: https://example.com
Author: 豆包编程助手
Description: 专为润滑油批发业务设计的企业展示型CMS主题
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lubricant-cms
Tags: 润滑油, 批发, 企业, 产品展示, 响应式, 自定义菜单

This theme is licensed under the GPL.
*/

/* --- 1. 基础重置与变量定义 --- */
:root {
    /* 主色调：工业专业深蓝色系 - 传达可靠性和专业性 */
    --primary: #0F3460;
    --primary-light: #1A4B8C;
    --primary-dark: #082547;
    --primary-ultralight: #E6EFFF;
    
    /* 辅助色：工业金属灰与功能性橙色 */
    --secondary: #E67E22; /* 橙色用于强调和CTA，代表活力和专业服务 */
    --secondary-light: #F39C12;
    --secondary-dark: #D35400;
    --metal: #BDC3C7; /* 金属灰色，增强工业感 */
    
    /* 功能色 */
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #7F8C8D;
    
    /* 中性色 - 工业风格更偏深色调 */
    --dark: #1A1A1A;
    --gray-800: #2C3E50;
    --gray-600: #34495E;
    --gray-400: #7F8C8D;
    --gray-200: #BDC3C7;
    --gray-100: #ECF0F1;
    --light: #F5F7FA;
    --white: #FFFFFF;
    
    /* 边框与阴影 - 更硬朗的工业风格 */
    --border: #D1D9E6;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* 尺寸与圆角 - 略小的圆角增强工业硬朗感 */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 9px;
    --radius-full: 9999px;
    
    /* 过渡与动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* 字体 - 更专业的无衬线字体 */
    --font-primary: 'Roboto', 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-600);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px; /* 稍宽的容器，适合展示更多产品信息 */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. 基础组件样式 --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-transform: uppercase; /* 大写增强工业感 */
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    background-color: transparent;
}

a:hover, a:focus {
    color: var(--secondary);
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

/* 按钮样式 - 更具工业感的按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm); /* 更尖锐的边角 */
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 3px 6px rgba(15, 52, 96, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(15, 52, 96, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(15, 52, 96, 0.3);
}

.btn:focus {
    outline: 2px solid var(--primary-ultralight);
    outline-offset: 2px;
}

/* 强调按钮使用辅助色 */
.btn-accent {
    background-color: var(--secondary);
    box-shadow: 0 3px 6px rgba(230, 126, 34, 0.3);
}

.btn-accent:hover {
    background-color: var(--secondary-dark);
    box-shadow: 0 5px 12px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-ultralight);
    color: var(--primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* 卡片基础样式 - 更硬朗的工业风格卡片 */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 52, 96, 0.2);
}

/* 分割线 */
.divider {
    height: 2px;
    background-color: var(--border);
    margin: 1.5rem 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    left: 50%;
    transform: translateX(-50%);
}

/* --- 3. 头部样式 --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.site-logo img {
    max-height: 55px;
    margin-right: 12px;
}

/* 导航菜单 */
.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 30px;
    position: relative;
}

.main-navigation a {
    color: var(--gray-600);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
}

/* 导航下划线动画 */
.main-navigation a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.main-navigation a:hover:after,
.main-navigation .current-menu-item a:after {
    width: 100%;
}

/* 电话快速联系 */
.header-phone {
    display: flex;
    align-items: center;
    margin-left: 20px;
    color: var(--primary);
    font-weight: 600;
}

.header-phone i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--dark);
    z-index: 1000;
}

/* --- 4. 英雄区域 (Hero) --- */
.hero {
    background: linear-gradient(rgba(15, 52, 96, 0.9), rgba(15, 52, 96, 0.85)), url('images/hero-bg.jpg') center/cover no-repeat fixed;
    color: var(--white);
    padding: 140px 0 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 工业风格纹理叠加 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" fill-opacity="0.05"><rect x="2" width="2" height="2"/><rect y="2" width="2" height="2"/></svg>');
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--gray-100);
}

.hero .btn {
    margin: 0 10px;
    min-width: 160px;
}

.hero .btn-accent {
    background-color: var(--secondary);
}

/* --- 5. 通用Section样式 --- */
.section {
    padding: 100px 0;
    background-color: var(--white);
}

.section-gray {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    padding-bottom: 18px;
    display: inline-block;
    position: relative;
}

/* 标题下划线装饰 - 工业风格的硬朗线条 */
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 0; /* 直角增强工业感 */
}

.section-title p {
    max-width: 600px;
    margin: 15px auto 0;
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* --- 6. 关于我们区域 --- */
.about-section {
    padding: 120px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 工业风格的装饰边框 */
.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    z-index: -1;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background-color: var(--primary-ultralight);
    border-radius: var(--radius-sm);
    flex: 1;
    border-left: 3px solid var(--secondary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-content {
        order: 2;
    }
}

@media (max-width: 576px) {
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- 7. 产品分类 --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.category-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--light);
}

.category-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5));
    z-index: 1;
    pointer-events: none;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-info {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-info h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--primary);
}

.category-info p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.category-info .btn {
    margin-top: auto;
}

/* --- 8. 产品列表与卡片 --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background-color: var(--white);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 52, 96, 0.2);
}

/* 产品图片容器 */
.product-image {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: #F7FAFC;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(15, 52, 96, 0.05) 0%, rgba(230, 126, 34, 0.05) 90%);
    border-bottom: 1px solid var(--border);
}

/* 确保图片正确显示 */
.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 无图片时的优雅降级 */
.product-image:empty {
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(15, 52, 96, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%),
        url('images/product-placeholder.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px, 120px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    opacity: 0.95;
}

.product-details {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    min-height: 60px;
    color: var(--primary);
}

.product-specs {
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-specs p {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.product-specs i {
    color: var(--primary-light);
    margin-right: 8px;
    font-size: 0.9rem;
}

.product-card .btn {
    margin-top: auto;
}

/* --- 9. 产品详情页 --- */
.single-product {
    padding: 80px 0;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.product-gallery {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.product-main-image {
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #F7FAFC;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.product-main-image img {
    max-height: 400px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--gray-200);
    border-radius: 3px;
}

.product-thumbnail {
    width: 90px;
    height: 90px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #F7FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.product-thumbnail img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--secondary);
    background-color: var(--primary-ultralight);
}

.product-info {
    background-color: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.product-description {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.product-description p {
    margin-bottom: 15px;
}

.product-specifications {
    margin-bottom: 35px;
}

.product-specifications h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary);
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.spec-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.spec-value {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.product-contact {
    background-color: var(--primary-ultralight);
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary);
}

.product-contact h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .product-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-info {
        order: 2;
    }
}

/* --- 10. 优势特点区域 --- */
.features-section {
    padding: 120px 0;
    background-color: var(--light);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill-opacity="0.03"><rect x="50" width="50" height="50"/><rect y="50" width="50" height="50"/></svg>');
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.feature-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 52, 96, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--primary-ultralight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
}

/* --- 11. 联系我们区域 --- */
.contact-section {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--light);
    padding: 45px 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-ultralight);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary);
    color: var(--white);
}

.contact-details h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--gray-600);
}

.wechat-qrcode {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--white);
    display: inline-block;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.wechat-qrcode img {
    width: 150px;
    height: 150px;
}

.contact-form {
    padding: 45px 35px;
    background-color: var(--light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- 12. 页脚样式 --- */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 90px 0 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill-opacity="0.05"><rect x="50" width="50" height="50"/><rect y="50" width="50" height="50"/></svg>');
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.3rem;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-about p {
    margin-bottom: 20px;
    color: #b3b3b3;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.footer-menu ul {
    list-style: none;
}

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

.footer-menu a {
    color: #b3b3b3;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: #b3b3b3;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* --- 13. 侧边栏样式 --- */
.sidebar {
    padding-left: 30px;
}

.widget {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-ultralight);
    color: var(--primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget a {
    color: var(--gray-600);
    transition: var(--transition);
}

.widget a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* 联系咨询小工具 */
.widget-contact {
    background-color: var(--primary-ultralight);
    border-top: 3px solid var(--primary);
}

.widget-contact .contact-item {
    margin-bottom: 15px;
}

.widget-contact .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* --- 14. 响应式样式 --- */
@media (max-width: 1024px) {
    .spec-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 导航响应式 */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 20px;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        margin-top: 70px;
    }
    
    .main-navigation li {
        margin: 15px 0;
    }
    
    .main-navigation a {
        font-size: 1.1rem;
        padding: 10px 0;
    }
    
    .header-phone {
        display: none;
    }
    
    /* 英雄区响应式 */
    .hero {
        padding: 120px 0 140px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* 通用响应式 */
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* 产品详情页 */
    .product-main-image img {
        max-height: 300px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    /* 联系表单 */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    /* 页脚 */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    /* 基础样式 */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* 英雄区 */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    /* 产品网格 */
    .products-grid,
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* 页脚 */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* 产品详情页 */
    .product-thumbnail {
        width: 70px;
        height: 70px;
    }
}

/* --- 15. 动画与特殊效果 --- */
/* 滚动渐显动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(15, 52, 96, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 平滑背景过渡 */
.bg-transition {
    transition: background-color 0.5s ease;
}

/* 图片悬停放大效果 */
.zoom-img {
    transition: transform 0.5s ease;
}

.zoom-img:hover {
    transform: scale(1.03);
}

/* 在现有响应式代码基础上补充 */
@media (max-width: 768px) {
    /* 产品列表页 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* 优势特点区域 */
    .features-section {
        padding: 70px 0;
    }
    
    /* 联系我们区域 */
    .contact-section {
        padding: 70px 0;
    }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    /* 产品列表页 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* 导航菜单 */
    .main-navigation {
        width: 280px;
    }
    
    /* 按钮调整 */
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    /* 英雄区 */
    .hero {
        padding: 90px 0 110px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* 通用区块 */
    .section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    width: 100%;
}

.hero-slide {
    width: 100%;
    min-height: 500px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 100px 0;
}

@media (max-width: 576px) {
    .product-thumbnails {
        gap: 8px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* 联系表单响应式补充 */
@media (max-width: 576px) {
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* 产品归档页样式 */
.product-archive {
    padding: 70px 0;
}

.archive-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.products-grid {
    margin-top: 30px;
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-price {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.no-products {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    color: var(--gray-800);
    text-decoration: none;
}

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

/* 头部联系方式样式 */
.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 20px;
    color: var(--gray-600);
}

.header-contact-item {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.header-contact-item i {
    margin-right: 8px;
    color: var(--primary);
}

.header-contact-item a {
    color: var(--gray-600);
}

.header-contact-item a:hover {
    color: var(--secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-contacts {
        display: none;
    }
}

/* 移动端底部固定联系按钮 */
.mobile-fixed-contacts {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 997;
    padding: 0 20px;
    justify-content: space-around;
}

.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    height: 50px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mobile-contact-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.phone-btn {
    background-color: var(--primary);
}

.phone-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.wechat-btn {
    background-color: #25D366;
}

.wechat-btn:hover {
    background-color: #1DA851;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .mobile-fixed-contacts {
        display: flex;
    }
}

/* 文章详情页核心样式 */
.site-content {
    padding: 70px 0;
}

.entry-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.entry-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8rem;
    }
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.entry-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.entry-meta a {
    color: var(--gray-500);
}

.entry-meta a:hover {
    color: var(--secondary);
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.entry-content h2 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--secondary);
}

.entry-content blockquote {
    border-left: 4px solid var(--secondary);
    padding: 15px 20px;
    margin: 0 0 1.5rem;
    background-color: var(--primary-ultralight);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags i {
    color: var(--primary);
    margin-right: 8px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    position: relative;
}

.nav-previous {
    padding-right: 20px;
}

.nav-next {
    padding-left: 20px;
    text-align: right;
}

.nav-previous::after,
.nav-next::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: translateY(-50%) rotate(-135deg);
}

.nav-previous::after {
    right: 0;
}

.nav-next::before {
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.nav-prev-text,
.nav-next-text {
    display: block;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-prev-text:hover,
.nav-next-text:hover {
    color: var(--secondary);
}

.nav-prev-text span,
.nav-next-text span {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-top: 5px;
}

@media (max-width: 576px) {
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        padding: 0;
        text-align: left;
    }
    
    .nav-previous::after,
    .nav-next::before {
        display: none;
    }
}

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    padding: 25px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 15px;
}

.comment-reply-link {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-800);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}
.products-text-section {
    padding: 4rem 0;
    background-color: #f8f9fa; /* 添加浅灰色背景 */
}

.product-text-item {
    border: 1px solid #e9ecef; /* 使用具体颜色值替代CSS变量 */
    padding: 30px;
    border-radius: 8px; /* 使用具体像素值替代CSS变量 */
    margin-bottom: 30px;
    background-color: #ffffff;
    transition: all 0.3s ease; /* 添加过渡效果 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 添加轻微阴影 */
}

.product-text-item:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* 悬停时增强阴影 */
    border-color: #007bff; /* 悬停时边框变色 */
}

.product-text-item h3 {
    color: #007bff; /* 使用具体颜色值替代CSS变量 */
    margin-bottom: 15px;
    font-size: 1.25rem; /* 增加标题大小 */
    font-weight: 600; /* 加粗标题 */
}

.product-usage {
    border-left: 3px solid #28a745; /* 使用具体颜色值替代CSS变量 */
    padding-left: 15px;
    margin: 20px 0;
    color: #6c757d; /* 使用具体颜色值替代CSS变量 */
}

.product-desc {
    color: #495057; /* 为描述文字添加颜色 */
    line-height: 1.6; /* 增加行高提高可读性 */
}

.section-title h2 {
    color: #343a40; /* 为标题添加颜色 */
    font-size: 2.5rem; /* 增加主标题大小 */
    margin-bottom: 1rem;
}

.section-title p {
    color: #6c757d; /* 为副标题添加颜色 */
    font-size: 1.1rem; /* 增加副标题大小 */
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .products-text-section {
        padding: 2rem 0; /* 移动端减少内边距 */
    }
    
    .section-title h2 {
        font-size: 2rem; /* 移动端调整标题大小 */
    }
    
    .product-text-item {
        padding: 20px; /* 移动端减少内边距 */
        margin-bottom: 20px; /* 移动端减少外边距 */
    }
}



