/* --- 核心样式定义 --- */
:root {
    --primary-blue: #0052CC; /* 品牌主色 */
    --dark-blue: #003ea1;
    --bg-gray: #F8F9FA;
    --text-main: #333333;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --soft-bg: #fbfbfd;
}

body {
    font-family: "Roboto", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    padding-top: 76px; /* 防止导航栏遮挡内容 */
    background-color: var(--bg-gray);
}

/* 导航栏 */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 800;
    color: var(--primary-blue) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-link {
    font-weight: 500;
    color: #555;
    margin: 0 10px;
    transition: all 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}
.btn-lang {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
}

/* Banner 区域 */
.hero-section {
    /* 使用在线渐变占位背景，实际开发请替换为高清大图 */
    background: linear-gradient(rgba(0, 82, 204, 0.8), rgba(0, 10, 60, 0.8)), 
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
}
.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.btn-hero {
    background-color: #fff;
    color: var(--primary-blue);
    font-weight: bold;
    padding: 12px 40px;
    border-radius: 50px;
    transition: all 0.3s;
}
.btn-hero:hover {
    background-color: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 栏目标题通用 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-blue);
    margin: 10px auto 0;
}
.section-header p {
    color: #777;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 核心优势 */
.feature-box {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
    height: 100%;
}
.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0,82,204,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}
.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.product-img-holder {
    background: #fdfdfd;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-img-holder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-img-wrap {
    background: #fdfdfd;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-img-wrap img {
    max-width: 80%;
    max-height: 80%;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}
.product-body {
    padding: 20px;
    text-align: center;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}
.product-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}
.product-model {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* 新闻列表 */
.news-item {
    border-left: 4px solid transparent;
    transition: all 0.3s;
}
.news-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-blue);
}
.news-date {
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 页脚 */
footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}
footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}
footer ul li {
    margin-bottom: 12px;
}
footer a {
    color: #bbb;
    text-decoration: none;
}
footer a:hover {
    color: white;
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

/* --- 产品页面特有样式 --- */

/* 页面标题区 */
.page-header {
    background: linear-gradient(rgba(0, 0, 50, 0.7), rgba(0, 82, 204, 0.7)), 
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* 🚀 极简悬浮分类导航 */
.category-hub {
    position: sticky;
    top: 90px;
    z-index: 100;
    padding: 20px 0;
    margin-bottom: 40px;
}
.hub-inner {
    display: inline-flex;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hub-link {
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}
.hub-link:hover { 
    color: var(--text-dark); 
}
.hub-link.active {
    background: #fff;
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- 胶囊式分页器 --- */
.pagination-container {
    margin-top: 80px;
    padding: 20px;
    display: flex;
    justify-content: center;
}
.custom-pagination {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 15px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    gap: 5px;
}
.page-link-item {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6e6e73;
    font-weight: 600;
    border-radius: 50%;
    transition: all 0.3s;
}
/* 数字页码悬停 */
.page-link-item:not(.active):not(.disabled):hover {
    background: #E9F0FF;
    color: var(--primary-blue);
    transform: scale(1.1);
}
/* 激活状态 */
.page-link-item.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}
/* 翻页箭头专用样式 */
.page-nav-icon {
    font-size: 1.2rem;
    color: var(--primary-blue);
}
.page-link-item.disabled {
    color: #ddd;
    cursor: not-allowed;
}
.page-link-item.disabled .page-nav-icon {
    color: #ddd;
}

/* --- 产品详情页专用样式 --- */
body.product-detail-page {
    background-color: #fff;
}

/* 产品主展示区 */
.product-hero { padding: 40px 0 60px; }
.gallery-container { position: sticky; top: 120px; }
.main-preview {
    background: #fdfdfd;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    margin-bottom: 20px;
    transition: 0.3s;
}
.main-preview img { max-width: 90%; max-height: 90%; object-fit: contain; }
.thumb-grid { display: flex; gap: 15px; }
.thumb-btn {
    width: 80px; height: 80px; border-radius: 12px;
    border: 2px solid transparent; cursor: pointer;
    overflow: hidden; background: #f5f5f7; transition: 0.2s;
}
.thumb-btn.active { border-color: var(--primary-blue); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

/* 产品规格与购买引导 */
.product-meta-panel { padding-left: 20px; }
.badge-new { background: #ff3b30; color: #fff; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.product-detail-page .product-title { font-size: 2.5rem; font-weight: 700; margin: 15px 0; letter-spacing: -0.5px; }
.product-desc { font-size: 1.1rem; color: #6e6e73; margin-bottom: 30px; }

.param-tag-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.param-tag {
    background: #E9F0FF;
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-box {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}
.price-contact { font-size: 1.5rem; font-weight: 700; color: #222; margin-bottom: 20px; }
.btn-inquiry { background: var(--primary-blue); color: #fff; font-weight: 600; padding: 15px 30px; border-radius: 12px; width: 100%; transition: 0.3s; }
.btn-inquiry:hover { background: #0044ab; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,82,204,0.2); }

/* 详情页签样式 */
.detail-tabs { margin-top: 80px; border-top: 1px solid #e5e5e5; }
.nav-tabs-custom { border: none; justify-content: center; transform: translateY(-1px); }
.nav-tabs-custom .nav-link {
    border: none; padding: 20px 40px; font-weight: 600; color: #6e6e73;
    border-top: 3px solid transparent;
}
.nav-tabs-custom .nav-link.active {
    color: var(--primary-blue); border-top-color: var(--primary-blue); background: none;
}

.tab-content-inner { padding: 60px 0; }
.tech-table { border-radius: 12px; overflow: hidden; border: none; }
.tech-table th { background: #f5f5f7; color: #333; font-weight: 700; border-color: #eee; }

/* --- 新闻页面专用样式 --- */
/* 新闻网格卡片 */
.news-item-card {
    background: #fff; border: none; border-radius: 15px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%; position: relative;
}
.news-item-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.news-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-item-card:hover .news-img-wrapper img { transform: scale(1.1); }
.news-badge { position: absolute; top: 20px; left: 20px; background: var(--primary-blue); color: #fff; padding: 5px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; z-index: 2; }
.news-content { padding: 25px; }
.news-date-tag { font-size: 0.85rem; color: #999; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.news-card-title { font-size: 1.25rem; font-weight: 700; color: #222; margin-bottom: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
.news-item-card:hover .news-card-title { color: var(--primary-blue); }
.news-card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more-link { font-weight: 600; font-size: 0.9rem; color: var(--primary-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.read-more-link i { transition: transform 0.3s; }
.news-item-card:hover .read-more-link i { transform: translateX(5px); }

/* --- 新闻详情页面专用样式 --- */
body.news-detail-page {
    line-height: 1.6;
    background-color: #fff;
}

/* 文章顶部 */
.post-header { padding: 60px 0 40px; }
.category-tag { color: var(--primary-blue); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; }
.post-title { font-size: 2.8rem; font-weight: 700; margin: 20px 0; color: #1d1d1f; line-height: 1.25; }
.post-meta { color: #6e6e73; font-size: 0.95rem; border-bottom: 1px solid #efefef; padding-bottom: 30px; }

/* 左侧浮动工具栏 */
.sticky-toolbar { position: sticky; top: 120px; height: fit-content; display: flex; flex-direction: column; gap: 15px; }
.tool-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid #efefef;
    display: flex; align-items: center; justify-content: center;
    color: #888; text-decoration: none; transition: 0.3s; background: #fff;
}
.tool-btn:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); transform: scale(1.1); }

/* 文章主体 */
.article-body { font-size: 1.15rem; line-height: 1.9; color: #333; }
.article-body p { margin-bottom: 28px; }
.article-body img { border-radius: 16px; margin: 20px 0 40px; width: 100%; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
.quote-box { margin: 45px 0; padding: 35px; border-radius: 20px; background: #f5f5f7; border-left: 4px solid var(--primary-blue); }
.quote-text { font-size: 1.2rem; font-weight: 500; color: #444; font-style: italic; margin-bottom: 0; }

/* --- 重新设计的 相关资讯 (图文列表版) --- */
.sidebar-title { 
    font-size: 0.85rem; font-weight: 800; color: #111; 
    text-transform: uppercase; letter-spacing: 1px; 
    margin-bottom: 25px; display: flex; align-items: center;
}
.sidebar-title::after { content: ""; flex: 1; height: 1px; background: #eee; margin-left: 15px; }

.related-post-card { 
    display: flex; gap: 15px; text-decoration: none; 
    margin-bottom: 25px; align-items: flex-start;
}
.related-img-box { 
    width: 90px; height: 65px; flex-shrink: 0; 
    border-radius: 8px; overflow: hidden; 
}
.related-img-box img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.4s ease;
}
.related-post-info h6 { 
    font-size: 0.95rem; font-weight: 700; color: #1d1d1f; 
    line-height: 1.4; margin-bottom: 5px; transition: 0.3s;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-post-info .post-date { 
    font-size: 0.75rem; color: #aaa; font-weight: 500;
}
/* Hover Effect */
.related-post-card:hover .related-img-box img { transform: scale(1.15); }
.related-post-card:hover h6 { color: var(--primary-blue); }

/* 底部导航 */
.post-nav-fixed { border-top: 1px solid #efefef; padding: 40px 0; margin-top: 60px; }

/* ===== 右侧悬浮快捷联系栏 ===== */
.float-contact-bar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图标容器 - 白色圆形+蓝色图标 */
.contact-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.12), 
                0 2px 8px rgba(0, 82, 204, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary-blue);
    transition: all 0.3s;
}

/* 展开内容容器 - 白色卡片风格 */
.contact-content {
    position: absolute;
    right: 70px;
    background: #fff;
    padding: 16px 22px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.12), 
                0 4px 12px rgba(0, 82, 204, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 200px;
}

/* 热线样式 */
.contact-item[data-type="hotline"] .contact-content {
    min-width: 240px;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info {
    font-size: 17px;
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contact-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* 微信二维码样式 */
.contact-qr {
    text-align: center;
    padding: 18px;
    min-width: 170px;
}

.qrcode-img {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    border: 2px solid var(--bg-gray);
    padding: 6px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 鼠标悬停效果 */
.contact-item:hover .contact-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.2), 
                0 4px 12px rgba(0, 82, 204, 0.12);
}

.contact-item:hover .contact-icon i {
    transform: scale(1.1);
}

.contact-item:hover .contact-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 不同类型的图标颜色 */
.contact-item[data-type="hotline"] .contact-icon i {
    color: var(--primary-blue);
}

.contact-item[data-type="wechat"] .contact-icon i {
    color: #09b83e;
}

.contact-item[data-type="email"] .contact-icon i {
    color: var(--primary-blue);
}

/* 添加小三角箭头指示器 */
.contact-content::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    filter: drop-shadow(2px 0 2px rgba(0, 82, 204, 0.06));
}

/* 响应式适配 */
@media (max-width: 768px) {
    .float-contact-bar {
        right: 15px;
        bottom: 70px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 22px;
    }
    
    .contact-content {
        right: 62px;
        min-width: 180px;
        padding: 14px 18px;
        border-radius: 14px;
    }
    
    .contact-item[data-type="hotline"] .contact-content {
        min-width: 220px;
    }
    
    .qrcode-img {
        width: 110px;
        height: 110px;
    }
}

/* 合作伙伴区域 - logo图片展示 */
/* 自定义五列布局 */
@media (min-width: 992px) {
    .col-lg-fifth {
        flex: 0 0 auto;
        width: 20%;
    }
}

.partner-card-rect {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    min-height: 110px;
}

.partner-card-rect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 82, 204, 0.12);
    border-color: var(--primary-blue);
}

.partner-logo-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.partner-logo-img img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(30%);
    opacity: 0.85;
}

.partner-card-rect:hover .partner-logo-img img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .partner-card-rect {
        padding: 20px 15px;
        min-height: 90px;
    }
    
    .partner-logo-img img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .partner-card-rect {
        padding: 15px 10px;
        min-height: 80px;
    }
    
    .partner-logo-img img {
        max-height: 45px;
    }
}
