     
/*
 * main.css 已拆分为多个模块化文件，不再直接维护。
 * 若仍有页面引用此文件，请尽快移除该引用以减少重复加载。
 * 新文件列表（按加载顺序建议）：
 *   css/base-reset-variables.css
 *   css/layout-structure.css
 *   css/navigation-menu.css
 *   css/sections-hero-services.css
 *   css/sections-products.css
 *   css/sections-faq-blog-feedback.css
 *   css/widgets-news-sidebar.css
 *   css/widgets-category-tree.css
 *   css/footer-area.css
 *
 * 如需恢复某段样式，请在对应功能模块中编辑，不要再写回此文件。
 */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 服务区域样式 */
.services { padding: var(--spacing-section-y) 0; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* 产品展示区域 */
.home-products-display-area {
    background-color: #fff;
    padding: var(--spacing-section-y) 0;
}

.home-products-display-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.home-product-display-area-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* 骨架/占位图与产品图片统一样式 */
.wave-effect-img,
.home-product-display-area-img {
    height: 200px;
    background-color: #ddd;
    background: var(--skeleton-gradient);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}
.wave-effect-img img,
.home-product-display-area-img img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* 图片填满容器 */
}

.home-product-display-area-content {
    padding: 1.5rem;
}

.home-product-display-area-card h3 {
    margin-bottom: 0.5rem;
}



/* FAQ区域 */
.faq { background-color: #f1f5f9; padding: var(--spacing-section-y) 0; }

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.accordion-content.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

/* 博客区域 */
section.blog { padding: var(--spacing-section-y) 0; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Homepage product cards: allow images to stretch with content without touching global card styles */
.home-products-display-area--dynamic-img .home-products-display-area-grid {
    align-items: stretch;
}

.home-products-display-area--dynamic-img .home-product-display-area-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-products-display-area--dynamic-img .home-product-display-area-img,
.home-products-display-area--dynamic-img .product-card-img-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 200px;
    flex: 1 1 auto;
}

.home-products-display-area--dynamic-img .home-product-display-area-img a,
.home-products-display-area--dynamic-img .product-card-img-wrapper a {
    display: flex;
    width: 100%;
}

.home-products-display-area--dynamic-img .home-product-display-area-img img,
.home-products-display-area--dynamic-img .product-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1 1 auto;
}

.blog-img {
    height: 200px;
    background-color: #ddd;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 1rem;
}




.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 782px) {
    .nav-menu {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0.75rem 0;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        transition: none;
    }

    .nav-menu > li {
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li > a {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}















/*
========================================
=         侧边栏分类等样式           =
========================================
*/

/* 侧边栏小工具标题样式 */
.sidebar-widgets-style {
    text-align: left;              /* 标题文本左对齐 */
    border-bottom: 2px solid #add8e6; /* 底部添加一条2像素宽的淡蓝色实线下划线 */
    padding-bottom: 0px;
    margin-top: 0;
    margin-bottom: 20px;
}










/*
========================================
=         侧边栏等样式           =
========================================
*/

    /*
 * 这是桌面端的样式，保持内容和侧边栏水平排列
 */
.main-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

/*
 * 这是你的侧边栏样式，需要一个包裹容器
 */
.sidebar-area {
    width: 300px; /* 示例宽度 */
}
.main-content-area {
    flex: 1; /* 占据剩余空间 */
}

/*
 * 媒体查询：当屏幕宽度小于 768px 时，切换为移动设备布局
 */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column; /* 将子元素垂直堆叠 */
    }

    /* * 调整内容的显示顺序
     * main-content-area 会先显示 (order: 1)
     * sidebar-area 会后显示 (order: 2)
     */
    .main-content-area {
        order: 1;
    }
    
    .sidebar-area {
        order: 2;
        width: 100%; /* 侧边栏占据全部宽度 */
    }
}
















