/* ================= 全局样式重置 & 全屏设置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= 第一行：顶部导航栏 (17% - 50% - 33% 布局) ================= */
header {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0 0 0 40px;
    height: 70px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

/* 第一列：Logo (宽度17%，内容右对齐) */
.header-logo {
    width: 17%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    padding-right: 20px;
}

.header-logo span {
    color: #22a84a;
    font-size: 28px;
    line-height: 1;
    margin-left: 2px;
}

/* 第二列：导航菜单 (宽度50%，内部平分6列) */
.main-nav {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
}

.main-nav a {
    font-family: 'Opensans', 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    position: relative;
    padding: 10px 0;
    display: inline-block;
    transform: translateY(3px);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    transform: translateY(0);
    opacity: 1;
    color: #000;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: #069;
    transform: translateX(-50%) translateY(5px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 第三列：联系方式 (宽度33%，黑底延伸至右侧边缘) */
.header-contact {
    width: 33%;
    background-color: #069;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: 40px;
    gap: 40px;
}

.header-contact div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: 'Opensans', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
}

.header-contact .time-info {
    text-align: left;
    line-height: 1.4;
}

/* ================= 第二行：Hero 轮播图区域 ================= */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    background-color: #222;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 60px 80px;
    overflow: hidden;
}

/* ---------- 轮播层：所有幻灯片叠放 ---------- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 6s ease-out;
}

.hero-slide.active .hero-img {
    transform: scale(1);
}

/* ---------- 黑色渐变遮罩 ---------- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

.hero-content {
    position: relative;
    text-align: right;
    z-index: 3;
    margin-bottom: 40px;
    pointer-events: none;
}

.hero-logo {
    font-size: 60px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.hero-logo sup {
    font-size: 20px;
    margin-top: 5px;
    margin-left: 5px;
    color: #22a84a;
}

.hero-subtitle {
    font-size: 18px;
    color: #ccc;
    font-style: italic;
    letter-spacing: 1px;
}

/* ---------- 小圆圈切换按钮 ---------- */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-dots button:hover {
    background-color: rgba(255, 255, 255, 0.65);
    transform: scale(1.15);
}

.hero-dots button:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.hero-dots button.active {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

/* ================= 第三行：纯图片产品网格 ================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    background-color: #fff;
    width: 100%;
}

.grid-item {
    display: block;
    width: 100%;
    
    overflow: hidden;
    background-color: #f2f2f2;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* ================= 底部 Footer 区域 ================= */
footer {
    background-color: #fff;
    padding: 60px 40px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-logo sup {
    font-size: 12px;
    margin-top: 5px;
    color: #22a84a;
}

.footer-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 13px;
    color: #555;
    padding: 0 10px;
    border-right: 1px solid #ddd;
}

.footer-nav a:last-child {
    border-right: none;
}

.footer-contact {
    font-size: 12px;
    color: #777;
    line-height: 1.8;
    margin-bottom: 40px;
}

.footer-contact p {
    margin-bottom: 5px;
}

.qr-section {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 40px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #555;
}

.qr-box {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #aaa;
    border-radius: 5px;
}

.copyright {
    font-size: 11px;
    color: #aaa;
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ================= 响应式排版 ================= */
@media (max-width: 1024px) {
    .hero {
        aspect-ratio: 16 / 9;
    }
    .hero-logo {
        font-size: 40px;
    }
    .header-logo { width: 20%; padding-right: 10px; }
    .main-nav { width: 45%; }
    .header-contact { width: 35%; gap: 15px; padding-left: 20px; }
    .header-contact div { font-size: 11px; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    .header-logo {
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }
    .main-nav {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .header-contact {
        display: none;
    }
    .hero {
        aspect-ratio: auto;
        height: 400px;
        padding: 40px 20px;
        align-items: center;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 20px;
    }
    .hero-logo {
        justify-content: center;
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .hero-dots {
        bottom: 20px;
        gap: 12px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    .grid-item {
        aspect-ratio: 16 / 9;
    }
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    .footer-nav a {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    .qr-section {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ================= 无障碍：减少动效偏好 ================= */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-img,
    .hero-dots button,
    .grid-item img,
    .main-nav a,
    .main-nav a::after {
        transition: none !important;
    }
    .hero-slide.active .hero-img {
        transform: none;
    }
}

/* v3 */
/* ================= 全局背景色修改 ================= */
html, body {
    background-color: #fff;
}

/* ==========================================================================
   分类页 (Category Page) 专属样式
   ========================================================================== */

/* 1. 子页面 Hero 横幅 */
.category-hero {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.85)), url('https://picsum.photos/1920/400?grayscale') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.category-hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.category-hero-content .red-line {
    width: 40px;
    height: 3px;
    background-color: #e74c3c;
    margin: 0 auto;
}

/* ================= 主内容区的外套容器 ================= */

/* 最外层：控制背景全屏 */
.category-outer-wrapper {
    width: 100%;
    height: auto;
    padding: 0px;
    background-color: #ffffff;
    overflow: hidden;
}

/* 第二层：主内容区容器 (按要求设置) */
.category-inner-wrapper {
    margin-right: auto;
    margin-left: auto;
    margin-top: 30px; /* 上外边距30px */
    padding-right: 0px;
    padding-left: 0px;
    max-width: 1600px;
    width: auto;
}

/* =================================================== */

/* 2. 页面整体布局 (核心修改：左右间距30px) */
.category-layout {
    display: flex;
    gap: 30px; /* 核心修改：左侧与右侧之间距离30px */
    background-color: transparent; 
}

/* 3. 左侧边栏样式 (宽度 17%) */
.sidebar {
    width: 17%; 
    flex-shrink: 0; 
}

.sidebar-title {
    background-color: #069;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

/* 移除黑点：确保列表及子列表无默认样式 */
.sidebar-menu {
    border: 1px solid #e0e0e0;
    border-top: none;
    background-color: #fff;
    list-style: none; 
    padding-left: 0;  
    margin: 0;
}

.menu-item {
    border-bottom: 1px solid #e0e0e0;
    list-style: none;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.menu-link:hover {
    color: #000;
}

.toggle-icon {
    font-size: 16px;
    font-weight: 400;
    color: #777;
}

/* 子菜单样式（同样去掉黑点） */
.submenu {
    padding-left: 20px;
    padding-bottom: 15px;
    list-style: none; 
    margin: 0;
}

.submenu li {
    margin-bottom: 8px;
    list-style: none; 
}

.submenu a {
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
}

.submenu a:hover {
    color: #000;
}

/* 侧边栏搜索框 (适应 17% 的较窄宽度) */
.sidebar-search {
    display: flex;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    width: 100%;
}

.sidebar-search input {
    flex-grow: 1;
    border: none;
    padding: 10px 8px; 
    font-size: 12px;
    outline: none;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.sidebar-search input::placeholder {
    color: #999;
    font-size: 11px;
}

.sidebar-search button {
    background-color: #069;
    color: #fff;
    border: none;
    padding: 0 10px; 
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
}

.sidebar-search button:hover {
    background-color: #0099cc;
}

/* 4. 右侧产品内容区 (核心修改：改为 flex-grow 自动填充剩余空间) */
.product-content {
    flex-grow: 1; /* 核心修改：自动填充 83% 减去 30px 间距后的剩余空间 */
    min-width: 0; 
}

/* 产品网格，足够宽度展示 4 列 */
.product-grid-category {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 卡片容器 */
.product-card-category {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 0; 
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    overflow: hidden; 
}

.product-card-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

/* 产品图默认占满框 */
.product-card-category img {
    width: 100%;
    /*height: 160px; */
    object-fit: cover; 
    padding: 20px; 
    box-sizing: border-box; 
    margin-bottom: 0; 
    transition: transform 0.4s ease; 
}

/* 鼠标悬停时图片放大（因为有 overflow: hidden，不会超出产品块） */
.product-card-category:hover img {
    transform: scale(1.15);
}

/* 标题单独一行，添加悬停变色效果 */
.product-code {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    width: 100%;
    padding: 15px 20px; 
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease; 
    margin-top: auto; 
}

/* 鼠标悬停时标题背景块颜色 */
.product-card-category:hover .product-code {
    background-color: #069;
    color: #fff;
}

/* 5. 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 8px;
    font-size: 13px;
    color: #333;
    flex-wrap: wrap; 
}

.page-num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-num:hover {
    border-color: #333;
}

.page-num.active {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #999;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.jump-input {
    width: 40px;
    height: 32px;
    border: 1px solid #e0e0e0;
    text-align: center;
    outline: none;
    font-size: 13px;
    font-family: inherit;
}

.jump-input:focus {
    border-color: #111;
}

.jump-btn {
    background-color: #111;
    color: #fff;
    border: none;
    height: 32px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
}

.jump-btn:hover {
    background-color: #333;
}

/* ================= 响应式排版 (针对分类页的调整) ================= */
@media (max-width: 1024px) {
    .product-grid-category {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .category-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .product-content {
        width: 100%;
    }
    
    .product-grid-category {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-jump {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 500px) {
    .product-grid-category {
        grid-template-columns: 1fr;
    }
    
    .category-hero-content h1 {
        font-size: 24px;
    }
    
    .pagination {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
    }
    
    .page-jump {
        grid-column: span 5;
    }
}

.content-page p{
	font-size:14px

text-indent: 2em;

}