/* 全局变量 */
:root {
    --primary-color: #1e5aa8;
    --secondary-color: #666;
    --bg-light: #f5f5f5;
    --text-dark: #333;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0;
}

.navbar-custom .navbar-brand {
    padding: 10px 0;
}

.navbar-custom .navbar-brand img {
    height: 50px;
}

.navbar-custom .nav-link {
    color: #333;
    font-size: 15px;
    padding: 25px 15px;
    transition: all 0.3s;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 0;
    margin-top: 0;
    padding: 0;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 搜索框 */
.search-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.search-box.active {
    display: flex;
}

.search-form {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-text {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Banner轮播 */
.banner-section {
    position: relative;
}

.swiper-banner {
    width: 100%;
    height: 500px;
}

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

.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.banner-prev:hover, .banner-next:hover {
    background: var(--primary-color);
    color: #fff;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* 产品推荐区域 */
.product-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title img {
    height: 30px;
}

/* 产品卡片 */
.product-card {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

.product-card .shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transition: all 0.3s;
}

.product-card:hover .shadow {
    background: linear-gradient(to top, rgba(30,90,168,0.9), transparent);
}

.product-card .img-product {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.product-card .text {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover .text {
    max-height: 200px;
}

/* 产品轮播控制按钮 */
.product-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.product-controls button {
    background: none;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 公司简介区域 */
.company-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.company-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-content h3 img {
    height: 30px;
}

.company-content p {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 15px;
}

.company-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.company-slider img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* 新闻中心 */
.news-section {
    padding: 60px 0;
    background: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.news-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.news-more:hover {
    color: var(--primary-color);
}

.news-featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.news-main-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    height: 100%;
}

.news-main-item .newstitle {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-msg {
    color: var(--secondary-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-detail-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.news-list-item {
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-list-item .newstitle {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.news-list-item:hover .newstitle {
    color: var(--primary-color);
}

/* 底部 - 深蓝色渐变（与参考图一致） */
.footer {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-info h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #e0f2fe;
}

.footer-info a {
    color: #e0f2fe;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-info a:hover {
    color: #fff;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-nav h6 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #e0f2fe;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
    color: #bae6fd;
}

.footer-bottom a {
    color: #bae6fd;
    text-decoration: none;
    margin: 0 5px;
}

.qrcode-img {
    max-width: 100px;
    margin-bottom: 10px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

/* 动画效果 */
.wow {
    visibility: hidden;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .navbar-custom .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding-left: 20px;
    }
    
    .swiper-banner {
        height: 300px;
    }
    
    .product-card {
        height: 280px;
    }
    
    .banner-prev, .banner-next {
        width: 40px;
        height: 40px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .swiper-banner {
        height: 200px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .product-card {
        height: 250px;
    }
    
    .company-slider img {
        height: 250px;
    }
}

/* 新闻中心区域 */
.news-section {
    padding: 60px 0;
    background: #fff;
}

/* 形象视频区域 */
.video-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.video-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.video-header .more-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    opacity: 0.9;
}

.video-header .more-link:hover {
    opacity: 1;
    transform: translateX(3px);
}

.video-image-link {
    display: block;
    text-decoration: none;
    position: relative;
    flex-grow: 1;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.video-image-link:hover .video-container img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(30,90,168,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.3);
}

.video-image-link:hover .video-play-btn {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #fff;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* 新闻中心头部 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.news-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.news-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(30,90,168,0.05);
}

/* 新闻列表 - 6条紧凑样式 */
.news-list-full {
    border-top: 2px solid var(--primary-color);
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    padding: 0 20px;
}

.news-list-full .news-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.news-list-full .news-list-item:last-child {
    border-bottom: none;
}

.news-list-full .news-list-item:hover {
    background: #fff;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.news-list-full .news-list-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-list-full .news-list-item .newstitle {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: all 0.3s;
    line-height: 1.5;
    font-weight: 500;
}

.news-list-full .news-list-item:hover .newstitle {
    color: var(--primary-color);
}

.news-list-full .news-list-item .news-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .video-container {
        min-height: 240px;
    }
    
    .news-list-full .news-list-item {
        padding: 14px 0;
    }
}

@media (max-width: 576px) {
    .video-container {
        min-height: 200px;
    }
    
    .video-play-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-list-full {
        padding: 0 15px;
    }
    
    .news-list-full .news-list-item:hover {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover .product-card {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.product-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.footer h5,
.footer h6,
.footer p,
.footer li,
.footer .footer-bottom {
    text-align: left !important;
}

.footer ul {
    padding-left: 0;
    list-style: none;
}

.footer .qrcode-img {
    display: block;
    margin: 0;
}


/* ===== 简洁版面包屑导航 ===== */
.breadcrumb {
    margin-bottom: 0;
    padding: 0 0 0 10px;
    background: transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: #0d6efd;
}

/* 分隔符 */
.breadcrumb a:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #ccc;
}

/* 当前页 */
.breadcrumb a:last-child {
    color: #0d6efd;
    font-weight: 600;
    pointer-events: none;
}

/* 图标 - 只给第一个加 */
.breadcrumb a:first-child::before {
    content: '\F3E8';
    font-family: 'bootstrap-icons';
    margin-right: 6px;
    font-size: 0.8rem;
    color: #999;
}

.breadcrumb a:first-child:hover::before {
    color: #0d6efd;
}

/* 容器 */
.breadcrumb-box {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

/* 响应式 */
@media (max-width: 768px) {
    .breadcrumb-box {
        padding: 12px 15px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        padding-left: 10px;
    }
}

/* 产品推荐 - 紧凑版 */
.product-section {
    padding-top: 20px;
}

.product-section .container {
    padding-top: 0;
}

.product-section .section-title {
    margin-bottom: 15px;
}

.product-controls {
    margin-bottom: 10px;
}

/* 新闻中心 - 大字版 */
.news-section .newstitle {
    font-size: 1.15rem;
    line-height: 1.5;
}

.news-section .news-list-item {
    padding: 15px 0;  /* 增加列表项间距，配合大字 */
}


