/* 自定义样式 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f97316;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* 首页面滚动条文字向下移动40px */
body.home-page {
    padding-top: 86px;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* 修复移动端导航栏显示问题 */
@media (max-width: 991.98px) {
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-nav .nav-item {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    
    /* 在移动端隐藏导航菜单，只显示切换按钮 */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
        z-index: 1000;
    }
}

/* 确保导航栏品牌元素在所有屏幕尺寸上正确显示 */
.navbar-logo {
    height: 50px;
    margin-right: 15px;
}

.navbar-company-name {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 特别针对小屏幕设备 */
@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
        margin-right: 8px;
    }
    
    .navbar-company-name {
        font-size: 1.1rem;
    }
}

/* 首页横幅与内容之间的间距减半 */
.home-page-content {
    margin-top: 20px;
}

/* 公司简介部分的上边距减半 */
.company-intro-enhanced {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

/* 除首页面外的页面滚动条高度 */
body:not(.home-page) ::-webkit-scrollbar {
    height: 360px;
}

/* 除首页外的页面内容区域高度 */
body:not(.home-page) .main-content {
    min-height: 550px;
    padding-top: 86px;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 手机端滚动条样式 - 修正版本 */
@media (max-width: 768px) {
    /* 手机端首页滚动条 */
    body.home-page ::-webkit-scrollbar {
        height: 8px; /* 保持标准滚动条高度 */
    }
    
    /* 手机端非首页滚动条 */
    body:not(.home-page) ::-webkit-scrollbar {
        height: 200px; /* 手机端特殊高度 */
    }
    
    /* 手机端滚动条只显示第一行文字，上下居中 */
    .single-line-scroll {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 200px;
        text-align: center;
    }
}

/* 导航栏样式优化 */
.navbar {
    padding: 15px 0;
    min-height: 70px;
}

/* 确保导航栏元素正确对齐 */
.navbar .container {
    display: flex;
    align-items: center;
}

/* 移动端导航栏调整 */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-collapse {
        flex-basis: auto;
    }
    
    /* 确保移动端导航栏品牌和切换按钮在同一行 */
    .navbar-brand span {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
        margin-right: 10px !important;
    }
    
    /* 调整折叠导航菜单样式 */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
        z-index: 1000;
    }
    
    /* 新增的导航栏元素样式 */
    .navbar-logo {
        height: 40px;
        margin-right: 10px;
    }
    
    .navbar-company-name {
        font-size: 1.2rem;
        font-weight: 700;
    }
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 5px;
    order: 2; /* 将切换按钮放在最后 */
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 确保移动端导航栏元素正确排列 */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .navbar-brand {
        flex: 1;
        min-width: 0;
    }
}

/* 页脚样式 */
.footer-section {
    background: linear-gradient(135deg, #1a2a4c, #0f172a);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-section h5 {
    position: relative;
    padding-bottom: 10px;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-section a {
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

.footer-section .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    transition: var(--transition);
}

.footer-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.footer-section ul li a {
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -10px;
}

.footer-section .text-light.opacity-75,
.footer-section .small.text-light.opacity-75 {
    color: #cbd5e1 !important;
}

/* 卡片样式 */
.card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 统计数据卡片样式 */
.stat-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 150px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 公司简介部分优化 */
.company-intro-content {
    height: 300px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
}

.company-intro-text .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    color: var(--text-dark);
}

/* 公司描述文字限制高度 */
.company-description {
    max-height: 200px;
    overflow: hidden;
}

/* 移除首页公司介绍部分的高度限制 */
.home-page .company-intro p.lead {
    max-height: none;
    overflow: visible;
    text-align: justify;
}

.home-page .company-intro p {
    text-align: justify;
}

/* 首页公司介绍容器高度与图片保持一致 */
.home-page .company-intro-container {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* 调整公司介绍部分元素间距 */
.home-page .company-intro-content {
    height: 300px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    margin-bottom: 0rem;
}

/* 调整了解更多按钮的上边距 */
.home-page .company-intro + div {
    margin-top: 0 !important;
}

/* 公司图片容器样式 */
.company-image-container {
    box-shadow: var(--box-shadow);
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* 增强版公司简介样式 */
.intro-highlight-box {
    background-color: #ffffff;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.intro-highlight-box:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.company-intro-enhanced p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.company-intro-enhanced .lead {
    font-weight: 500;
    color: #334155;
}

/* 调整公司介绍部分的顶部间距 */
.company-intro-section {
    margin-top: 0;
}

.company-intro-container {
    margin-top: 0 !important;
}

/* 轮播图高度调整 */
.carousel-item {
    height: 500px !important;
}

.carousel-item img {
    object-fit: cover !important;
    object-position: center !important;
    height: 100% !important;
    width: 100% !important;
}

.carousel-caption {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    bottom: 25%;
}

.carousel-caption h1, 
.carousel-caption .display-4 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.carousel-caption p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* 首页轮播图样式 */
#pageCarousel .carousel-item {
    height: 500px !important;
}

#pageCarousel .carousel-item img {
    object-fit: cover !important;
    object-position: center !important;
    height: 100% !important;
    width: 100% !important;
}

#pageCarousel .carousel-caption {
    top: 20%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #fff;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#pageCarousel .carousel-caption .mt-4 {
    margin-top: 3rem !important;
}

#pageCarousel .carousel-caption h5 {
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 800;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#pageCarousel .carousel-caption p {
    font-size: 1.6rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-weight: 500;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 二级页面轮播图样式 */
#secondaryCarousel .carousel-item {
    height: 360px !important;
}

#secondaryCarousel .carousel-item img {
    object-fit: cover !important;
    object-position: center !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
}

#secondaryCarousel .carousel-caption {
    bottom: 20%;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#secondaryCarousel .carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#secondaryCarousel .carousel-caption p {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 手机端非首页轮播图样式 - 在手机上完全隐藏轮播图 */
@media (max-width: 576px) {
    /* 在手机端隐藏非首页轮播图 */
    #secondaryCarousel {
        display: none !important;
    }
}

/* 强制设置轮播图容器高度 */
.carousel, #pageCarousel, #secondaryCarousel, .carousel-inner {
    height: 500px !important;
    max-height: 500px !important;
}

/* 非首页轮播图容器高度 */
#secondaryCarousel, #secondaryCarousel.carousel, #secondaryCarousel .carousel-inner {
    height: 360px !important;
    max-height: 360px !important;
}

/* 增加额外的非首页轮播图高度规则 */
#secondaryCarousel, 
#secondaryCarousel .carousel-inner, 
#secondaryCarousel .carousel-item, 
#secondaryCarousel .carousel-item.active {
    height: 360px !important;
    max-height: 360px !important;
}

/* 移除内联样式影响 */
#pageCarousel .carousel-inner, 
#pageCarousel .carousel-item,
#secondaryCarousel .carousel-inner,
#secondaryCarousel .carousel-item {
    border-radius: 0 !important;
    overflow: hidden !important;
}

.carousel-inner {
    height: 500px !important;
    overflow: hidden !important;
}

/* 覆盖Bootstrap默认样式 */
.carousel-item, .carousel-inner, #pageCarousel, #secondaryCarousel {
    min-height: unset !important;
}

/* 增加额外的轮播图高度规则 */
#pageCarousel, 
#pageCarousel .carousel-inner, 
#pageCarousel .carousel-item, 
#pageCarousel .carousel-item.active {
    height: 500px !important;
    max-height: 500px !important;
}

/* 首页轮播图按钮样式 */
.carousel-caption .btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-caption .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
}

.carousel-caption .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #2563eb;
}

/* 响应式轮播图按钮 */
@media (max-width: 768px) {
    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    #pageCarousel .carousel-item {
        height: 400px !important;
    }
    
    #pageCarousel .carousel-caption h5 {
        font-size: 2rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    #pageCarousel .carousel-caption p {
        font-size: 1.2rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
}

@media (max-width: 576px) {
    .carousel-caption .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    #pageCarousel .carousel-item {
        height: 250px !important;
    }
    
    #pageCarousel .carousel-caption h5 {
        font-size: 1.5rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #pageCarousel .carousel-caption p {
        font-size: 1rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #secondaryCarousel .carousel-item {
        height: 160px !important;
    }
    
    #secondaryCarousel .carousel-caption {
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #secondaryCarousel .carousel-caption h5 {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #secondaryCarousel .carousel-caption p {
        display: none;
    }
}

/* 小屏幕设备上的轮播图优化 */
@media (max-width: 768px) {
    #pageCarousel .carousel-item {
        height: 400px !important;
    }
    
    #pageCarousel .carousel-caption {
        top: 15%;
        padding: 0 15px;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #pageCarousel .carousel-caption h5 {
        font-size: 2rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    #pageCarousel .carousel-caption p {
        font-size: 1.2rem;
        font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .partner-logo {
        height: 100px;
        padding: 1rem !important;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
    
    .company-image-container {
        min-height: 250px;
    }
    
    .company-image-placeholder {
        min-height: 250px;
    }
    
    .company-description {
        max-height: none;
    }
    
    .stat-card {
        height: 120px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    #pageCarousel .carousel-item {
        height: 250px !important;
    }
    
    #pageCarousel .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    #pageCarousel .carousel-caption p {
        font-size: 1rem;
    }
    
    #secondaryCarousel .carousel-item {
        height: 160px !important;
    }
    
    #secondaryCarousel .carousel-caption h5 {
        font-size: 1.25rem;
    }
    
    #secondaryCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .detail-page-header {
        padding: 1rem;
    }
    
    .detail-page-title {
        font-size: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .detail-page-title::after {
        width: 60px;
        height: 3px;
    }
    
    .detail-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .detail-section-title {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .related-item-card .card-title {
        font-size: 1rem;
    }
    
    .related-item-card .card-text {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 轮播图与页面内容的间距 */
.carousel {
    margin-bottom: 2rem;
}

/* 产品卡片样式 */
.product-card, .news-card, .solution-card {
    transition: var(--transition);
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
}

.product-card:hover, .news-card:hover, .solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    border-bottom: 1px solid #e2e8f0;
}

/* 产品图片样式 */
.product-image {
    border-radius: var(--border-radius);
    width: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    border-radius: var(--border-radius);
}

/* 确保新闻卡片等高 */
.news-card .card-body {
    flex-grow: 1;
}

.news-card .card-title {
    min-height: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* 新闻详情页面样式 */
.news-detail-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.news-detail-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-meta {
    background-color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.news-content .content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.related-news-card {
    transition: var(--transition);
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-news-section h3 {
    color: var(--text-dark);
    position: relative;
    font-weight: 700;
    padding-bottom: 0.75rem;
}

.related-news-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* 合作伙伴logo样式 */
.partner-logo {
    transition: var(--transition);
    opacity: 0.85;
    border-radius: var(--border-radius);
    background: #ffffff;
    padding: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
}

.partner-logo-placeholder {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .news-meta {
        text-align: center;
    }
    
    .news-meta span {
        margin: 0.5rem;
        display: block;
    }
    
    .news-image img {
        max-height: 250px !important;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h1, 
    .carousel-caption .display-4 {
        font-size: 2rem;
    }
    
    .carousel-caption p.lead {
        font-size: 1rem;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .partner-logo {
        height: 100px;
        padding: 1rem !important;
        width: 100%;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
    
    .company-image-container {
        min-height: 250px;
    }
    
    .company-image-placeholder {
        min-height: 250px;
    }
    
    .company-description {
        max-height: none;
    }
    
    .stat-card {
        height: 120px;
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

/* 详情页面样式 */
.detail-page-header {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
}

.detail-page-title {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.detail-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.detail-meta {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-content {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.detail-section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-bottom: 0.5rem;
}

.detail-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.related-items-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-items-section h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-items-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.related-item-card {
    transition: var(--transition);
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.related-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.related-item-card .card-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.related-item-card .card-text {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.breadcrumb {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

/* 二级页面轮播图样式 */
#secondaryCarousel .carousel-item {
    height: 360px !important;
}

#secondaryCarousel .carousel-item img {
    object-fit: cover !important;
    object-position: center !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
}

#secondaryCarousel .carousel-caption {
    bottom: 20%;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#secondaryCarousel .carousel-caption h5 {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#secondaryCarousel .carousel-caption p {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 覆盖Bootstrap默认样式 */
#secondaryCarousel .carousel-item, #secondaryCarousel .carousel-inner {
    min-height: unset !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    width: 3rem;
    height: 3rem;
}

/* 首页轮播图按钮位置调整 */
#pageCarousel .carousel-caption .mt-4 {
    margin-top: 5rem !important;
    position: relative;
    bottom: -4rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-page-header {
        padding: 1.5rem;
    }
    
    .detail-page-title {
        font-size: 1.75rem;
    }
    
    .detail-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    #secondaryCarousel .carousel-item {
        height: 280px !important;
    }
    
    #secondaryCarousel .carousel-caption {
        padding: 0 10px;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    #secondaryCarousel .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    #secondaryCarousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #secondaryCarousel .carousel-item {
        height: 160px !important;
    }
    
    #secondaryCarousel .carousel-caption {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }
    
    #secondaryCarousel .carousel-caption h5 {
        font-size: 1.25rem;
    }
    
    #secondaryCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .detail-page-header {
        padding: 1rem;
    }
    
    .detail-page-title {
        font-size: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .detail-page-title::after {
        width: 60px;
        height: 3px;
    }
    
    .detail-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .detail-section-title {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .related-item-card .card-title {
        font-size: 1rem;
    }
    
    .related-item-card .card-text {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* 联系我们页面样式 */
.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* 页脚样式 */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.delay-1 {
    transition-delay: 0.1s;
}

.fade-in.delay-2 {
    transition-delay: 0.2s;
}

.fade-in.delay-3 {
    transition-delay: 0.3s;
}

.fade-in.delay-4 {
    transition-delay: 0.4s;
}

.fade-in.delay-5 {
    transition-delay: 0.5s;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* 关于我们页面样式 */
.about-section-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    color: #2d3748;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #2563eb, #f97316);
    border-radius: 2px;
}

.company-description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
}

.about-qrcode {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-qrcode:hover {
    transform: scale(1.05);
}

.about-qrcode-placeholder {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-qrcode-placeholder:hover {
    background-color: #edf2f7;
}

.contact-item {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.contact-item:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.contact-info-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 企业理念样式 */
.philosophy-card {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
}

.philosophy-card:hover {
    background-color: #f8fafc;
    transform: translateY(-5px);
}

.philosophy-icon {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.philosophy-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.philosophy-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 团队成员样式 */
.team-member-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.team-member-icon {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-card:hover .team-member-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.team-member-role {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 发展历程样式 */
.milestone-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

.milestone-icon {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.milestone-card:hover .milestone-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.milestone-year {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.milestone-event {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 全屏图片预览模态框样式 */
.modal-image-fullscreen {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 1052;
    cursor: zoom-in;
    position: relative;
}

.modal-image-fullscreen.zoomed {
    max-width: unset;
    max-height: unset;
    width: auto;
    height: auto;
    cursor: zoom-out;
}

.modal-content.bg-dark {
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 1040;
}

.modal-dialog.modal-fullscreen {
    z-index: 1051;
}

/* 产品图库样式 */
.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    contain: layout style;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.thumbnail-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.thumbnail-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 2;
}

.thumbnail-item.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb;
    z-index: 3;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.thumbnail-item:hover img {
    /* 移除图片缩放效果以减少闪烁 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title::after {
        width: 40px;
        height: 3px;
    }
    
    .company-description-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .contact-item {
        padding: 8px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .philosophy-card {
        padding: 15px;
    }
    
    .philosophy-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .philosophy-description {
        font-size: 0.9rem;
    }
    
    .team-member-card {
        padding: 15px;
    }
    
    .team-member-icon {
        width: 70px;
        height: 70px;
    }
    
    .team-member-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .team-member-role {
        font-size: 0.85rem;
    }
    
    .milestone-card {
        padding: 15px;
    }
    
    .milestone-icon {
        width: 60px;
        height: 60px;
    }
    
    .milestone-year {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .milestone-event {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .about-section-card {
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding-bottom: 12px;
    }
    
    .section-title::after {
        width: 35px;
        height: 2px;
    }
    
    .company-description-text {
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 6px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .philosophy-card {
        padding: 12px;
    }
    
    .philosophy-icon {
        width: 60px;
        height: 60px;
    }
    
    .philosophy-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .philosophy-description {
        font-size: 0.85rem;
    }
    
    .team-member-card {
        padding: 12px;
    }
    
    .team-member-icon {
        width: 60px;
        height: 60px;
    }
    
    .team-member-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .team-member-role {
        font-size: 0.8rem;
    }
    
    .milestone-card {
        padding: 12px;
    }
    
    .milestone-icon {
        width: 50px;
        height: 50px;
    }
    
    .milestone-year {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .milestone-event {
        font-size: 0.8rem;
    }
}

/* 首页静态图片（移动端） */
.static-banner-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 移动端首页横幅文字覆盖 */
.mobile-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mobile-banner-overlay h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.mobile-banner-overlay p {
    font-size: 1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 90%;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 在移动端显示静态图片，隐藏轮播图 */
@media (max-width: 768px) {
    .home-page .static-banner-image {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .home-page .carousel {
        display: none;
    }
    
    /* 非首页在移动端也隐藏轮播图 */
    #secondaryCarousel {
        display: none;
    }
}
