/* 自定义全局样式 - 鲜艳儿童配色 */
:root {
    --primary: #FF6B35; /* 活力橙 - 主色/主按钮 */
    --secondary: #FFD23F; /* 明亮黄 - 辅助色 */
    --accent: #06D6A0; /* 清新绿 - 强调色/次按钮 */
    --dark: #118AB2; /* 天空蓝 - 深色 */
    --light: #FFF9E8; /* 米白色 - 背景 */
}


/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    font-family: 'Arial', sans-serif;
    padding-top: 60px; /* 适配固定导航栏，防止内容被遮挡 */
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-item {
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

    .navbar-item:hover {
        color: var(--primary);
        background-color: transparent;
    }

.navbar-burger {
    color: var(--primary);
}

/* Hero轮播区域 + CTA按钮容器 */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .carousel-slide.active {
        opacity: 1;
    }

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

/* 轮播图上的文字与按钮遮罩层 */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

    .carousel-content h2 {
        font-size: 2.8rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .carousel-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        max-width: 500px;
    }

/* 16:9 视频容器 + 边框 + 禁止下载 */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 固定比例 */
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0; /* 美观灰色边框 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* CTA 按钮通用样式 */
.btn-main {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-right: 1rem;
    text-decoration: none;
    display: inline-block;
}

    .btn-main:hover {
        background-color: #e85a29;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(255,107,53,0.4);
        color: #fff;
    }

.btn-secondary {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-secondary:hover {
        background-color: #05b88c;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(6,214,160,0.4);
        color: #fff;
    }



/* 板块通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
}

    .section-title::after {
        content: '';
        width: 80px;
        height: 4px;
        background: var(--primary);
        display: block;
        margin: 10px auto;
        border-radius: 2px;
    }

/* 产品卡片样式 */
.product-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

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

    .product-card img {
        height: 220px;
        object-fit: cover;
        width: 100%;
        background-color: #f0f0f0;
    }

.product-info {
    padding: 15px;
    text-align: center;
}

/* 案例卡片样式 */
.Cases-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

    .Cases-card:hover {
        transform: translateY(-8px);
    }

    .Cases-card img {
        height: 250px;
        object-fit: cover;
        width: 100%;
    }

.Cases-info {
    padding: 15px;
    text-align: center;
}

/* 优势卡片 */
.advantage-card {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
}

.advantage-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* 证书图片 */
.certificate-img {
    height: 180px;
    object-fit: contain;
    margin: 10px;
}

/* 板块顶部居中按钮 */
.section-cta {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* 底部样式 */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

    .footer h3 {
        color: var(--secondary);
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

.footer-link {
    color: white;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

    .footer-link:hover {
        color: var(--secondary);
    }

.social-icon {
    font-size: 22px;
    margin-right: 15px;
    color: white;
    transition: all 0.3s;
}

    .social-icon:hover {
        color: var(--secondary);
        transform: translateY(-3px);
    }

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* about us 页面独立css类 */
/* 页面头部 Banner */
.a-hero {
    
    padding: 4rem 0;
    color: white;
    text-align: center;
}

/* 【新增】250px 固定高度头部横幅图片 */
.a-banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* 图片等比裁剪，防止拉伸变形 */
    display: block;
}

/* 产品卡片 - 列表页专用 */
.p-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

    .p-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.p-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.p-card-body {
    padding: 1.2rem;
}

.p-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.p-card-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* 筛选栏 */
.p-filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}


/*=============================== 产品详情页 ===============================*/
/* 图片画廊容器 */
.d-gallery {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
}

/* 主图 1:1 + 边框 */
.d-main-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.d-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* 缩略图 1:1 + 边框 */
.d-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    border: 1px solid #eaeaea;
    transition: border 0.2s ease;
}

    .d-thumb:hover {
        border: 2px solid var(--primary);
    }

/* 产品标题、价格 */
.d-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 1rem;
}

.d-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin: 1rem 0;
}

.d-info-list li {
    margin: 0.6rem 0;
    font-size: 1rem;
    list-style: none;
}

/* 产品参数表格 - 带单元格边框 + 分层样式 */
.product-specs {
    width: 100%;
    border-collapse: collapse; /* 合并相邻边框，避免出现双线 */
    margin: 1rem 0;
    font-size: 1rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

    .product-specs th {
        background: #FFF4E8;
        color: #CC5C29;
        padding: 13px 16px;
        text-align: left;
        width: 38%;
        font-weight: 600;
        border: 1px solid #e5e5e5; /* 新增：浅灰色单元格边框 */
    }

    .product-specs td {
        background: #fafafa;
        padding: 13px 16px;
        color: #333;
        border: 1px solid #e5e5e5; /* 新增：浅灰色单元格边框 */
    }

    .product-specs tr:hover td {
        background: #f0f9ff;
    }

/* 详情内容区块 */
.d-tab {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0.05);
}


/*=============================== FAQ页 ===============================*/
/* 手风琴面板 */
.f-accordion {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.f-accordion-header {
    padding: 1.2rem 1.5rem;
    background: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-accordion-body {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .f-accordion-body.show {
        padding-bottom: 1.2rem;
        max-height: 500px;
    }

.f-icon {
    color: var(--primary);
    transition: 0.3s;
}

.rotate {
    transform: rotate(45deg);
}

/*=============================== Blog页 ===============================*/
/* 博客文章卡片 */
.b-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    height: 100%;
}

    .b-blog-card:hover {
        transform: translateY(-6px);
    }

.b-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.b-card-body {
    padding: 1.5rem;
}

.b-card-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.b-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.b-card-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* 阅读更多按钮 */
.b-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

    .b-read-more:hover {
        text-decoration: underline;
    }

/* 侧边栏 */
.b-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.b-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.b-category-item {
    display: block;
    padding: 0.5rem 0;
    color: #444;
    text-decoration: none;
    transition: 0.3s;
}

    .b-category-item:hover {
        color: var(--primary);
        padding-left: 6px;
    }

/*=============================== Blog 详情页 ===============================*/
/* 文章主体容器 */
.bd-article-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 文章头部信息 */
.bd-article-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.bd-tag {
    display: inline-block;
    background: var(--secondary);
    color: #333;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 文章大图 */
.bd-article-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* 文章正文 */
/* 文章正文 */
.bd-article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #444;
}

    .bd-article-content p {
        margin-bottom: 1.2rem;
    }

    /* 文章二级标题 H2 */
    .bd-article-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #222;
        margin: 2rem 0 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }

    /* 文章三级标题 H3 */
    .bd-article-content h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #222;
        margin: 1.5rem 0 0.8rem;
    }

    /* 文章内图片 */
    .bd-article-content img {
        max-width: 100%;
        height: auto;
        margin: 1.5rem auto;
        display: block;
        border-radius: 8px;
        border: 1px solid #eee;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    /* 文章无序列表 ul li */
    .bd-article-content ul {
        margin: 1rem 0 1.5rem 1.2rem;
    }

    .bd-article-content li {
        margin-bottom: 0.6rem;
        position: relative;
        padding-left: 0.5rem;
    }

        .bd-article-content li::before {
            content: "•";
            color: #FF6B35; /* 你的主题色 */
            font-weight: bold;
            position: absolute;
            left: -1rem;
        }

/* 侧边栏 */
.bd-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.bd-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.bd-side-link {
    display: block;
    padding: 0.5rem 0;
    color: #444;
    text-decoration: none;
    transition: 0.3s;
}

    .bd-side-link:hover {
        color: var(--primary);
        padding-left: 6px;
    }

/*=============================== Contact Us 页 ===============================*/
/* 联系信息卡片（保留你原有） */
.c-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    height: 100%;
}

/* 联系项：图标+文字 同行、居中、紧凑 */
.c-info-item {
    display: flex; /* 横向排列 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 1.5rem; /* 项之间间距 */
}

/* 图标：取消原来的下间距，改右间距 */
.c-info-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 0; /* 取消原来的 block 下间距 */
    margin-right: 1rem; /* 图标和文字之间距离 */
    flex-shrink: 0; /* 图标不缩小，保持方形 */
}

/* 文字内容区域 */
.c-info-content {
    flex: 1; /* 文字占剩余空间 */
}

/* 标签（Phone/Email） */
.c-info-label {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #222;
}

/* 具体文本 */
.c-info-text {
    margin: 0;
    color: #444;
}

/* 表单样式 */
.c-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 提交按钮 */
.c-submit-btn {
    background-color: var(--primary);
    color: #fff;
    border-radius: 30px;
    padding: 0.7rem 2rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .c-submit-btn:hover {
        background-color: #e85a29;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(255,107,53,0.3);
    }

/* 地图占位 */
.c-map-area {
    width: 100%;
    height: 300px;
    background: #e9e9e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* =============================== 移动端轮播高度 & 文字适配 =============================== */
@media (max-width: 768px) {
    .hero-carousel {
        height: 300px;
    }

    .carousel-content h2 {
        font-size: 1.6rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .btn-main, .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
        width: fit-content;
    }

    /* 移动端-首页-产品图片 */
    .product-card img {
        width: 100%;
        height: 165px !important;
        object-fit: contain !important; /* 手机完整显示、不裁剪 */
        background-color: #f5f5f5; /* 留白处浅底、更干净 */
    }

    /* 移动端-产品页-产品图片 */
    .p-card img {
        width: 100%;
        height: 165px !important;
        object-fit: contain !important; /* 手机完整显示、不裁剪 */
        background-color: #f5f5f5; /* 留白处浅底、更干净 */
    }

    /* 移动端-案例图片 */
    .Cases-card img {
        height: 175px !important;
        object-fit: cover;
        width: 100%;
    }
}