/* ============================================================
   海康威视消防产品风格CSS样式表 - 精确复刻版
   ============================================================ */

/* ===== 1. 全局基础样式 ===== */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c00;
    text-decoration: none;
}

/* ===== 2. 主导航 ===== */
.hk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.hk-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    height: 60px;
}

.hk-navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Logo */
.hk-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.hk-logo img {
    height: 36px;
    display: block;
}

/* 导航菜单容器（靠右对齐，距离右边200像素） */
.hk-nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 120px;
}

.hk-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.hk-nav-item {
    position: relative;
}

.hk-nav-item a {
    display: block;
    padding: 0 18px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 60px;
    transition: color 0.3s;
    white-space: nowrap;
}

.hk-nav-item a:hover,
.hk-nav-item.active a {
    color: #c00;
}

.hk-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background-color: #c00;
}

/* 移动端汉堡按钮 */
.hk-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hk-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s;
}

/* 导航占位（去掉了顶部工具条，只剩导航栏高度） */
.hk-nav-placeholder {
    height: 60px;
}

/* 移动端菜单 */
.hk-mobile-menu {
    display: none;
    position: fixed;
    top: 60px; /* 导航栏高度 */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.hk-mobile-menu.open {
    display: block;
}

.hk-mobile-menu-inner {
    background: #fff;
    padding: 15px 0;
    max-height: 80vh;
    overflow-y: auto;
}

.hk-mobile-menu-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hk-mobile-menu-inner ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.hk-mobile-menu-inner ul li a:hover {
    color: #c00;
    background: #fafafa;
}

.hk-mobile-actions {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hk-mobile-actions a {
    color: #666;
    font-size: 14px;
    padding: 8px 0;
}

body.hk-menu-open {
    overflow: hidden;
}

/* ===== 4. 面包屑 ===== */
.hk-breadcrumb {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 13px;
    color: #999;
}

.hk-breadcrumb a {
    color: #666;
}

.hk-breadcrumb a:hover {
    color: #c00;
}

.hk-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

.hk-breadcrumb-current {
    color: #333;
}

/* ===== 5. 页面标题区 ===== */
.hk-page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 35px 0;
    text-align: center;
}

.hk-page-header h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
}

.hk-page-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* ===== 6. 公共区块 ===== */
.hk-section {
    padding: 55px 0;
}

.hk-section-gray {
    background-color: #f8f8f8;
}

/* 区块标题 */
.hk-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.hk-section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
    padding-bottom: 12px;
}

.hk-section-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #c00;
    margin: 12px auto 0;
}

/* ===== 7. 产品概述 ===== */
.hk-overview-text {
    font-size: 14px;
    line-height: 1.9;
    color: #666;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hk-overview-text p {
    margin: 0;
}

/* ===== 8. 产品类别（仿海康威视官网：左图右文，整块可点击链接） ===== */
/* 整个分类卡片是一个大链接块，点击跳转到对应产品列表 */
.hk-category-link {
    display: block;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.hk-category-link:hover {
    background: #fafafa;
    border-color: #ddd;
    text-decoration: none;
}

/* 左图右文弹性布局 */
.hk-category-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 左侧图片 */
.hk-category-img {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

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

.hk-category-link:hover .hk-category-img img {
    transform: scale(1.05);
}

/* 右侧文字 */
.hk-category-text {
    flex: 1;
    min-width: 0;
}

/* 分类标题：智慧消防 / 传统消防 */
.hk-category-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    transition: color 0.3s;
}

.hk-category-link:hover .hk-category-title {
    color: #c00;
}

/* 分类描述文字 */
.hk-category-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 9. 首页产品类别卡片（4列3行网格布局） ===== */
.hk-cat-card {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px 15px 18px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hk-cat-card:hover {
    border-color: #c00;
    box-shadow: 0 4px 20px rgba(204,0,0,0.10);
    transform: translateY(-3px);
    text-decoration: none;
}

/* 分类小图片 */
.hk-cat-card-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hk-cat-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hk-cat-card:hover .hk-cat-card-img img {
    transform: scale(1.08);
}

/* 分类标题 */
.hk-cat-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    transition: color 0.3s;
}

.hk-cat-card:hover .hk-cat-card-title {
    color: #c00;
}

/* 分类简短描述 */
.hk-cat-card-desc {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 10. 更多服务卡片 ===== */
.hk-service-card {
    display: block;
    text-align: center;
    padding: 28px 15px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.hk-service-card:hover {
    background: #fafafa;
    border-color: #ddd;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hk-service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hk-service-icon img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hk-service-card:hover .hk-service-icon img {
    opacity: 1;
}

.hk-service-icon .fa {
    font-size: 28px;
    color: #c0392b;
    transition: all 0.3s;
}

.hk-service-card:hover .hk-service-icon .fa {
    color: #e74c3c;
    transform: scale(1.15);
}

.hk-service-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.hk-service-card p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ===== 产品特点样式（产品详情页右侧） ===== */
.hk-product-features {
    background: #fef9f0;
    border-left: 3px solid #c0392b;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}
.hk-product-features h3 {
    font-size: 16px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 8px;
}

/* ===== 产品详情页主图样式（单张图片，无轮播） ===== */
.hk-product-main-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
}
.hk-product-main-img img {
    width: 100%;
    height: auto;
    display: block;
}
.hk-product-features ul {
    padding-left: 18px;
    margin: 0;
}
.hk-product-features li {
    margin-bottom: 4px;
}

/* ===== 9.1 在线咨询弹窗样式 ===== */
.consult-qrcode {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.consult-qrcode img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto 10px;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.consult-qrcode-tip {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.consult-phone {
    font-size: 16px;
    color: #c00;
    font-weight: 600;
    padding: 10px 0;
}

.consult-phone i {
    margin-right: 8px;
}

/* ===== 10. 底部（仿朗强网站风格） ===== */
.site-footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 45px 0 0;
}

.footer-col {
    margin-bottom: 30px;
}

/* 关注我们列 - 往右移160像素 */
.footer-col-qrcode {
    padding-left: 160px;
}

.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #c00;
}

/* 公司名称 */
.footer-company-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 联系方式列表 */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.footer-contact-list li i {
    color: #c00;
    font-size: 14px;
    margin-top: 2px;
    min-width: 16px;
}

/* 快捷导航链接 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 3px;
}

/* 二维码区域 */
.footer-qrcode {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.qrcode-item {
    text-align: center;
    width: 100px;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    display: block;
    border: 2px solid #333;
    border-radius: 4px;
    background: #fff;
    padding: 4px;
}

.qrcode-item span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

/* 版权信息栏 */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 18px 0;
    margin-top: 20px;
    text-align: center;
}

.copyright-text {
    color: #888;
    font-size: 12px;
    margin: 0;
    line-height: 1.8;
}

.copyright-text a {
    color: #888;
}

.copyright-text a:hover {
    color: #c00;
}

/* ===== 12. 响应式 ===== */
@media (max-width: 991px) {
    .hk-nav-menu {
        display: none;
    }
    
    .hk-mobile-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .hk-nav-placeholder {
        height: 60px;
    }
    
    .hk-page-header h1 {
        font-size: 24px;
    }
    
    .hk-section {
        padding: 40px 0;
    }
    
    .hk-section-title h2 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .hk-navbar {
        height: 54px;
    }
    
    .hk-nav-placeholder {
        height: 54px;
    }
    
    .hk-mobile-menu {
        top: 54px;
    }
    
    .hk-logo img {
        height: 30px;
    }
    
    .hk-page-header {
        padding: 25px 0;
    }
    
    .hk-page-header h1 {
        font-size: 20px;
    }
    
    .hk-section {
        padding: 30px 0;
    }
    
    .footer-col {
        margin-bottom: 18px;
    }
}

@media (max-width: 575px) {
    .hk-category-link {
        padding: 15px;
    }
    
    /* 移动端：图片在上，文字在下（上下排列） */
    .hk-category-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .hk-category-img {
        width: 100%;
        height: 140px;
    }
    
    .hk-category-title {
        font-size: 16px;
    }
    
    .hk-service-card {
        padding: 20px 12px 18px;
    }
}

/* ===== 13. 首页幻灯片Banner ===== */
/* 使用background-image方式展示，与老网站海康威视风格一致 */
.hk-slideshow {
    width: 100%;
    height: 480px;
}

/* ===== 子页面Banner（除首页外的所有内页） ===== */
/* 设置高度为300px，覆盖默认的jumbotron高度 */
.jumbotron {
    height: 300px;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
}

.hk-slideshow .swiper-slide {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 480px;
}

/* 幻灯片链接 - 覆盖整个slide区域，用于跳转 */
.hk-slide-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* 幻灯片文字标题 */
.hk-slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
    max-width: 800px;
    pointer-events: none;
}

.hk-slide-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.hk-slide-subtitle {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    font-weight: 400;
}

/* 幻灯片切换按钮 */
.hk-slideshow .swiper-button-next,
.hk-slideshow .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: background 0.3s;
}

.hk-slideshow .swiper-button-next:hover,
.hk-slideshow .swiper-button-prev:hover {
    background: rgba(0,0,0,0.5);
}

.hk-slideshow .swiper-button-next::after,
.hk-slideshow .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* 分页器小圆点 */
.hk-slideshow .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.hk-slideshow .swiper-pagination-bullet-active {
    background: #c00;
    width: 26px;
    border-radius: 5px;
}

@media (max-width: 991px) {
    .hk-slideshow {
        height: 360px;
    }
    .hk-slideshow .swiper-slide {
        height: 360px;
    }
    .hk-slide-title {
        font-size: 30px;
    }
    .hk-slide-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .hk-slideshow {
        height: 220px;
    }
    .hk-slideshow .swiper-slide {
        height: 220px;
    }
    .hk-slide-caption {
        width: 90%;
    }
    .hk-slide-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .hk-slide-subtitle {
        font-size: 13px;
    }
    .hk-slideshow .swiper-button-next,
    .hk-slideshow .swiper-button-prev {
        display: none;
    }
}

/* ===== 14. 产品分类筛选栏（精美卡片式设计） ===== */

/* ---- 整个筛选栏容器 ---- */
.hk-category-filter {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px 24px 16px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.hk-category-filter:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---- 每一级分类行 ---- */
.hk-cat-level {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
}

/* 二级分类行与一级分类行之间留间距 */
.hk-cat-secondary {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
}

/* ---- 分类标签 ---- */
.hk-cat-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #c00, #e63e3e);
    border-radius: 17px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(204,0,0,0.25);
}

/* 二级分类标签颜色浅一点 */
.hk-cat-label-sub {
    background: linear-gradient(135deg, #888, #aaa);
    box-shadow: 0 2px 6px rgba(136,136,136,0.25);
}

/* ---- 分类按钮容器 ---- */
.hk-cat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* ---- 二级分类分组 - 默认隐藏 ---- */
.hk-sub-group {
    display: none;
}

/* ---- 一级分类按钮（大药丸） ---- */
.hk-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1.5px solid #e0e4e8;
    border-radius: 22px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

/* 按钮底部光晕效果 */
.hk-cat-pill::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #c00;
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.hk-cat-pill:hover {
    color: #c00;
    border-color: #c00;
    background: #fff8f8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204,0,0,0.15);
    text-decoration: none;
}

.hk-cat-pill:hover::before {
    width: 60%;
}

/* ---- 一级分类选中状态 ---- */
.hk-cat-active {
    color: #fff !important;
    background: linear-gradient(135deg, #c00, #e63e3e) !important;
    border-color: #c00 !important;
    box-shadow: 0 4px 14px rgba(204,0,0,0.3) !important;
    transform: translateY(-1px);
}

.hk-cat-active::before {
    display: none;
}

.hk-cat-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204,0,0,0.35) !important;
}

/* 选中状态下按钮文字加粗 */
.hk-cat-active .hk-cat-pill-icon {
    font-weight: 600;
}

/* ---- 二级分类按钮（小药丸） ---- */
.hk-cat-pill-sm {
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    background: #f7f8fa;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
}

.hk-cat-pill-sm::before {
    display: none;
}

.hk-cat-pill-sm:hover {
    color: #c00;
    background: #fff0f0;
    border-color: #ffb3b3;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(204,0,0,0.12);
}

/* 二级分类选中状态（如果点了二级分类页面） */
.hk-cat-pill-sm.hk-cat-active {
    color: #fff !important;
    background: linear-gradient(135deg, #c00, #e63e3e) !important;
    border-color: #c00 !important;
    font-weight: 500;
    padding: 5px 16px;
    font-size: 13px;
}

/* ---- 移动端适配 ---- */
@media (max-width: 991px) {
    .hk-cat-level {
        flex-wrap: wrap;
    }
    .hk-cat-label {
        min-width: 60px;
        height: 30px;
        font-size: 12px;
        padding: 0 12px;
    }
}

@media (max-width: 767px) {
    .hk-category-filter {
        padding: 14px 14px 12px;
        border-radius: 8px;
    }
    .hk-cat-pill {
        padding: 5px 16px;
        font-size: 13px;
    }
    .hk-cat-pill-sm {
        padding: 4px 12px;
        font-size: 12px;
    }
    .hk-cat-label {
        min-width: 54px;
        height: 28px;
        font-size: 11px;
        padding: 0 10px;
    }
    .hk-cat-secondary {
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* ===== 15. 动画 ===== */
.wow {
    visibility: hidden;
}

.animated {
    visibility: visible;
}