/* 导航条初始样式 */
#mainNav {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* 导航项：字体改为1.1rem */
#mainNav .nav-item {margin:0 5px;}
#mainNav .nav-link {
    font-size: 1.1rem;
    color: #fff;
    position: relative;
    padding: 8px 20px;
    transition: color 0.3s ease;
}

/* 大于1200px：左右间距3% */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 94%;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* 手机端菜单展开后的背景 */
@media (max-width: 991px) {
    #mainNav .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.8);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }
    #mainNav .nav-link {
        margin-left: 0;
        display: inline-block;
    }
    
    #mainNav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* 移动端下拉菜单需点击展开，这里强制设置为静态位置 */
    .dropdown-menu {
        position: static !important;
        display: none;
        background: transparent;
        border: none;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .dropdown-menu .dropdown-item {
        color: #fff;
    }
}

/* 鼠标悬停：文字变蓝 + 底部横条动画 */
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #008ee8;
    transition: width 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: #008ee8 !important; /* 强制覆盖白色 */
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link:focus::after {
    width: 100%;
}

/* 下拉菜单样式（纯CSS实现悬停显示） */
.dropdown {
    position: relative;
}

/* 隐藏原生Bootstrap的箭头（因为没加data-bs-toggle类，所以没有默认箭头） */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 5px 0;
    min-width: 200px;
}

/* 鼠标悬停时显示下拉菜单 */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉项样式（根据用户图片调整） */
.dropdown-menu .dropdown-item {
    color: #333;
    font-size: 1rem;
    padding: 10px 15px;
    transition: all 0.2s;
}

/* 图片中第一项为蓝色底白字效果（或者hover时变为蓝底白字） */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item.active {
    background-color: #008ee8;
    color: #fff;
}

/* 滚动后透明度变为0.5 */
#mainNav.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 10px 0;
}

/* Banner高度和轮播样式（保持原样） */
.carousel-item img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 60vh;
    }
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
}

.carousel-indicators {
    margin-bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    transition: all 0.2s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}


/* ========== 新增：人気商品样式 ========== */
.product-section {
    max-width: 1580px;
    width: 94%;
    margin: 80px auto;
    position: relative;
}

/* 标题部分 */
.product-header {
    margin-bottom: 40px;
}

.product-title {
    font-weight: bold;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

/* 标题下的蓝色横线 */
.product-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #008ee8;
    margin: 10px auto 0;
}

.product-subtitle {
    color: #666;
    font-size: 1rem;
}

/* 卡片样式 */
.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.img-box {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 鼠标移入：图片放大 */
.product-card:hover .img-box img {
    transform: scale(1.1);
}

/* VIEW MORE 遮罩层动画 */
.view-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    border: 2px solid #fff;
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* 鼠标移入：显示 VIEW MORE */
.product-card:hover .view-more {
    opacity: 1;
}

/* 底部标题栏 */
.product-name {
    background-color: #008ee8;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 轮播箭头（蓝色方块样式） */
.product-arrow {
    width: 40px;
    height: 60px;
    background-color: #008ee8;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border-radius: 0;
    /* 调整箭头位置使其贴合图片边缘 */
    left: 0;
}

.product-arrow.next {
    left: auto;
    right: 0;
}

.product-arrow:hover {
    background-color: #006bb3;
}

/* 轮播指示器（圆点样式） */
.product-indicators {
    margin-bottom: -30px; /* 下移至标题下方 */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.product-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #999;
    border: 0;
}

.product-indicators .active {
    background-color: #008ee8;
}

/* 底部 VIEW MORE 按钮 */
.btn-product-more {
    display: inline-block;
    padding: 10px 50px;
    border: 2px solid #008ee8;
    color: #008ee8;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-product-more:hover {
    background-color: #008ee8;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .img-box {
        height: 200px;
    }
    .product-arrow {
        display: none; /* 手机端隐藏箭头，通过滑动操作 */
    }
}

/* 会社概要版块 */
.about-section {
    background-image: url('/static/images/about_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 背景固定不动 */
    padding: 100px 0 0;
    position: relative;
}

/* 添加蓝色半透明蒙版层 (颜色为 #008ee8) */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 142, 232, 0.6); /* 半透明蓝色 */
    z-index: 0;
}
/* 确保内容在蒙版之上 */
.about-content-wrapper, .full-width-gallery {
    position: relative;
    z-index: 1;
	min-height:300px;
}

/* 手机端禁用固定背景，避免因不兼容导致错位 */
@media (max-width: 768px) {
    .about-section {
        background-attachment: scroll;
    }
}

.about-content {
    max-width: 1280px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-title {
    font-weight: bold;
    display: inline-block;
}

.title-line { width: 50px; height: 3px; background-color: #fff; margin: 10px auto 0; }

/* 数字动画样式 */
.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 0.95rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

/* 按钮样式 */
.btn-about {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-about:hover {
    background-color: #fff;
    color: #008ee8;
}

/* 图片占满全宽，各25% */
.full-width-gallery .gallery-item {
    overflow: hidden;
    height: 300px; /* 可根据需要调整高度 */
}

.full-width-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 鼠标移入图片放大效果 */
.full-width-gallery .gallery-item:hover img {
    transform: scale(1.1);
}

/* 当社の強み 版块样式 */
.strength-section {
    max-width: 1580px;
    width: 94%;
    margin: 80px auto;
}

.strength-header {
    text-align: center;
    margin-bottom: 50px;
}

.strength-desc {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* 标题下划线，沿用之前的蓝色线条样式 */
.strength-header .title-line {
    width: 50px;
    height: 3px;
    background-color: #008ee8;
    margin: 10px auto 0;
}

/* 卡片基础样式 */
.strength-card {
    background: #fff;
    border-radius: 12px;
    padding: 3vw 2vw;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 确保没有链接样式，纯div */
    text-decoration: none; 
	height:100%;
}

/* 鼠标悬停：上移10px效果 */
.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 图标圆形背景样式 */
.icon-box {
    width: 80px;
    height: 80px;
    background-color: #008ee8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.icon-box i {
    color: #fff;
    font-size: 2.5rem;
}

/* 卡片标题 */
.strength-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* 卡片描述 */
.strength-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 移动端响应式微调 */
@media (max-width: 768px) {
    .strength-section {
        margin: 50px auto;
    }
    .strength-card {
        margin-bottom: 20px;
    }
}

/* ニュース (新闻) 版块样式 */
.news-section {
    /* 背景图片，根据实际目录修改路径 */
    background-image: url('/static/images/news_bg.png'); 
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

/* 内部内容容器，最大宽度1580px */
.container-news {
    max-width: 1580px;
    width: 94%;
    margin: 0 auto;
}

.news-header {
    margin-bottom: 50px;
}

.news-desc {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* 新闻标题样式 */
.news-header h2 {
    font-weight: bold;
}

/* 标题下的蓝色短线 */
.news-header .title-line {
    width: 50px;
    height: 3px;
    background-color: #008ee8;
    margin: 10px auto 0;
}

/* 卡片整体样式 */
.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    /* 让伪元素定位在底部 */
    position: relative; 
}

/* 图片容器：溢出隐藏，保证放大时不超出 */
.news-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 图片放大动画过渡 */
    transition: transform 0.5s ease; 
}

/* 鼠标移入：图片变大 */
.news-card:hover .news-img-box img {
    transform: scale(1.1);
}

/* 新闻内容区域 */
.news-body {
    padding: 20px;
}

.news-body h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    color: #008ee8;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-body p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 鼠标移入时，底部显示蓝色线条动画 */
/* 使用 ::after 伪元素制作线条，宽度从0变到100% */
.news-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #008ee8;
    transition: width 0.4s ease; /* 动画时长 */
}

.news-card:hover::after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-section {
        padding: 50px 0;
    }
    .news-img-box {
        height: 180px;
    }
}

/* 底部板块样式 */
.site-footer {
    /* 背景图片：根据实际路径修改 */
    background-image: url('/static/images/foot_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding-top: 60px;
}


/* 内容宽度：1580px, 94% */
.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1580px;
    width: 94%;
    margin: 0 auto;
}

/* 左侧Logo */
.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-logo p {
    letter-spacing: 1px;
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    border-width: 1px 0 0 0;
    opacity: 1;
    margin-bottom: 30px;
}

/* 底部导航链接样式 */
.footer-nav li {
    margin-left: 30px;
	min-width:80px;
	max-width:24%;
	
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #008ee8;
}

/* 保证居中适配 */
@media (max-width: 991px) {
    .footer-nav {
        margin-top: 15px;
        justify-content: flex-start; /* 手机端导航左对齐 */
        width: 100%;
    }
    .footer-nav li {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* 左侧信息块 */
.info-item {
    text-align: left;
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.info-item h4 {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.info-item span {
    color: #999;
    font-size: 0.9rem;
}

/* 右侧表单 */
.footer-form-wrap {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.custom-input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    color: #fff;
    border-radius: 4px;
    padding: 6px 15px;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.custom-input:focus {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border-color: #008ee8;
    box-shadow: none;
}

.custom-btn {
    background-color: #7c8fa6;
    color: #fff;
    border-radius: 4px;
    padding: 10px 50px;
    border: none;
    font-weight: bold;
}

.custom-btn:hover {
    background-color: #008ee8;
    color: #fff;
}

/* 底部版权区 */
.footer-copyright {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    font-size: 0.9rem;
    color: #999;
}

.footer-copyright p {
    margin: 0;
}

/* 响应式适配（手机端） */
@media (max-width: 991px) {
    .footer-form-wrap {
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
    }
    .footer-copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px;
    }
    .info-item {
        margin-bottom: 20px;
    }
}

/* 右侧浮动侧边栏容器 */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background-color: #333;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

/* 单个图标项 */
.side-item {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停时背景变蓝 */
.side-item:hover {
    background-color: #008ee8;
}

/* 侧边弹出的提示框（默认隐藏） */
.side-tooltip {
    position: absolute;
    right: 100%; /* 放在左侧 */
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: #008ee8;
    color: #fff;
    white-space: nowrap;
    padding: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* 悬停时展开提示框 */
.side-item:hover .side-tooltip {
    width: auto;
    padding: 0 20px;
    opacity: 1;
}


/* ============ 内页通用样式 ============ */
/* 顶部Banner */
.page-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden; /* 防止溢出 */
    display: flex;
    align-items: flex-end; 
}

/* 内容区 */
.page-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    position: relative; 
    left: auto;
    right: auto;
    bottom: auto;
    padding-bottom: 20px; /* 用 Padding 控制距离底部的距离 */
}
.s_line{
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: rgba(255,255,255,0.6)	
}

/* 左侧标题和面包屑 */
.pb-left h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pb-left .breadcrumb-nav {
    color: #fff;
    font-size: 1rem;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 右侧三个二级栏目按钮 */
.pb-btn {
    display: inline-block;
    padding: 10px 30px;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
	white-space: nowrap; 
}

.pb-btn:hover {
    background-color: #fff;
    color: #008ee8;
}

/* 激活状态按钮（纯色蓝） */
.pb-btn.active {
    background-color: #008ee8;
    border-color: #008ee8;
}

/* 内容区域通用容器 */
.about-container {
    max-width: 1580px;
    width: 94%;
    margin: 0 auto;
}

.blue-text {
    color: #008ee8;
}

.about-content-section {
    background-color: #fff;
}

.about-content-section p {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 右侧图片及蓝色装饰块 */
.img-wrapper {
    position: relative;
	overflow: hidden;
}

.blue-deco {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-color: #008ee8;
    z-index: 0;
}

.about-main-img {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 三张图片及标签 */
.about-gallery-section {
    background-color: #f8f9fa;
    padding-top: 40px;
    padding-bottom: 40px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-label {
    padding: 15px;
    font-weight: 500;
    color: #333;
}

/* 底部蓝色宣言区 */
.blue-statement-section {
    background: linear-gradient(135deg, #0077cc, #008ee8);
    padding: 80px 0;
}

.blue-statement-section p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .page-banner {
        height: 300px;
    }
    .page-banner-content {
        flex-direction: column;
        align-items: flex-start;
        bottom: 20px;
    }
    .pb-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .pb-btn {
        margin-left: 0;
        padding: 8px 15px;
    }
    .blue-deco {
        display: none; /* 手机端隐藏蓝色方块装饰 */
    }
}

.page-num{Padding:0.375rem 0.75rem;text-decoration:none;font-size:1rem;}
.page-num-current {
	z-index: 1;
	color: #fff;
	background-color: #008ee8;
	border-color: #17a2b8;
}
.page-num-current:hover {
	color: #fff;
}