/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 头部样式 */
.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.top-bar {
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.logo .site-title:hover {
    color: var(--dark-color);
    transform: translateY(-1px);
}

.contact-info {
    font-size: 0.9rem;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #007bff, #28a745, #ffc107, #dc3545);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.phone-number:hover {
    transform: scale(1.05);
    animation-play-state: paused;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-scrolled {
    background-color: rgba(0, 123, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255,255,255,0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #fff;
}

/* 二级菜单样式 */
.navbar .dropdown-menu {
    background-color: rgba(0, 123, 255, 0.95) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.navbar .dropdown-menu .nav-link,
.navbar .dropdown-menu a {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.3s ease;
    background: none !important;
}

.navbar .dropdown-menu .nav-link:hover,
.navbar .dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    transform: translateX(5px);
}

.navbar .dropdown-menu .nav-link.active,
.navbar .dropdown-menu a.active {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* 下拉菜单箭头 */
.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* 移动端下拉菜单样式 */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        background-color: rgba(255,255,255,0.1) !important;
        border: none !important;
        box-shadow: none !important;
        margin-top: 0;
        padding: 0;
    }
    
    .navbar .dropdown-menu .nav-link,
    .navbar .dropdown-menu a {
        color: rgba(255,255,255,0.8) !important;
        padding: 0.5rem 1rem 0.5rem 2rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar .dropdown-menu .nav-link:hover,
    .navbar .dropdown-menu a:hover {
        background-color: rgba(255,255,255,0.1) !important;
        color: #fff !important;
        transform: none;
    }
    
    .navbar .dropdown-menu .nav-link:last-child,
    .navbar .dropdown-menu a:last-child {
        border-bottom: none;
    }
}

/* 确保二级菜单样式优先级 */
.navbar-nav .dropdown-menu {
    background-color: rgba(0, 123, 255, 0.95) !important;
    border: none !important;
}

.navbar-nav .dropdown-menu li a,
.navbar-nav .dropdown-menu .nav-link {
    color: rgba(255,255,255,0.9) !important;
    background: transparent !important;
}

.navbar-nav .dropdown-menu li a:hover,
.navbar-nav .dropdown-menu .nav-link:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* 覆盖Bootstrap默认样式 */
.bg-primary .dropdown-menu {
    background-color: rgba(0, 123, 255, 0.95) !important;
}

.bg-primary .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.9) !important;
}

.bg-primary .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* Banner轮播图样式 */
.banner-swiper {
    height: 500px;
    margin-bottom: 0;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 动态幻灯片样式 */
.banner-swiper .swiper-slide a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.banner-swiper .swiper-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-swiper .swiper-slide a:hover img {
    transform: scale(1.02);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* 搜索区域样式 */
.search-section {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    padding: 1rem 0;
}

.keywords {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keywords .badge {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.keywords .badge:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.search-section input[type="search"] {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.search-section .btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
}

/* 标题装饰样式 */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.title-decoration .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    max-width: 100px;
}

.title-decoration .text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    padding: 0 1rem;
}

/* 产品卡片样式 */
.product-section {
    background-color: #fff;
    padding: 4rem 0;
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.product-image {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .overlay {
    opacity: 1;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

/* 新闻卡片样式 */
.news-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.news-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.news-item .card-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.news-item .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-item .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-item .btn-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    padding: 0;
    font-size: 0.9rem;
}

.news-item .btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 关于我们区域样式 */
.about-section {
    background-color: #fff;
    padding: 4rem 0;
}

.about-image {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 0 1rem;
}

.about-content h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

/* 关于我们富文本内容样式 */
.about-text {
    color: #666;
    line-height: 1.8;
    text-align: justify;
    white-space: pre-line;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.8;
    white-space: pre-line;
}

.about-text h1, .about-text h2, .about-text h3, 
.about-text h4, .about-text h5, .about-text h6 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text ul, .about-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: #666;
}

.about-text strong, .about-text b {
    color: #333;
    font-weight: 600;
}

.about-text em, .about-text i {
    font-style: italic;
    color: #555;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-text a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.about-action {
    margin-top: 2rem;
}

/* 友情链接样式 */
.links-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.links-list a {
    color: #6c757d;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.links-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: #fff;
    padding: 3rem 0 0 0;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer .contact-info p {
    color: #adb5bd;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 120px;
    height: auto;
}

.qr-code p {
    color: #adb5bd;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    background-color: #212529;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 卡片通用样式 */
.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 表单控件样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

.product-card,
.news-item,
.about-content {
    animation: fadeInUp 0.6s ease-out;
}

/* 返回顶部按钮样式 */
.back-to-top {
    transition: all 0.3s ease;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 文本选择样式 */
::selection {
    background-color: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .banner-swiper {
        height: 300px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .title-decoration .text {
        font-size: 1.2rem;
    }
    
    .title-decoration .line {
        max-width: 60px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .footer .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .logo .site-title {
        font-size: 1.2rem;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .banner-swiper {
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .title-decoration .text {
        font-size: 1rem;
    }
    
    .title-decoration .line {
        max-width: 40px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
    
    .navbar-nav .nav-link:last-child {
        margin-bottom: 0;
    }
    
    .search-section .row {
        gap: 1rem;
    }
    
    .keywords {
        justify-content: center;
    }
    
    .links-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .phone-number {
        font-size: 1rem;
    }
}

/* 页面横幅样式 */
.page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8) 0%, rgba(0,86,179,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #fff !important;
}

.breadcrumb-item.active {
    color: #fff !important;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.widget-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-header small {
    opacity: 0.8;
    font-size: 0.8rem;
}

.widget-content {
    padding: 1rem;
}

.widget-content ul li a {
    color: #333;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.widget-content ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 文章列表样式 */
.article-item,
.news-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.article-item:hover,
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-meta,
.news-meta {
    font-size: 0.85rem;
}

.article-item .card-title a,
.news-item .card-title a {
    color: #333;
    transition: color 0.3s ease;
}

.article-item .card-title a:hover,
.news-item .card-title a:hover {
    color: var(--primary-color);
}

/* 联系信息卡片样式 */
.contact-info-card,
.contact-form-card,
.map-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover,
.map-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* 联系表单样式 */
.contact-form-card .form-label {
    font-weight: 600;
    color: #333;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 部门卡片样式 */
.department-card {
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.department-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-details i {
    color: var(--primary-color);
    width: 16px;
}

/* 联系信息展示样式 */
.contact-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #666;
    margin: 0;
}

/* 地图容器样式 */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 分页样式 */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 表单验证样式 */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L4.84 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin: 0 auto 0.5rem;
    }
    
    .department-card {
        margin-bottom: 1rem;
    }
    
    .map-container img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        height: 150px;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .widget-header {
        padding: 0.75rem;
    }
    
    .widget-header h5 {
        font-size: 1rem;
    }
    
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .department-icon {
        width: 60px;
        height: 60px;
    }
    
    .department-icon i {
        font-size: 1.5rem;
    }
}

/* Product Detail Page Styles */
.product-detail {
    background: #fff;
}

.product-images {
    position: relative;
}

.main-image {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-images {
    margin-top: 15px;
}

.thumbnail-img {
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 80px;
    object-fit: cover;
}

.thumbnail-img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.product-title {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.product-meta {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.product-description {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.product-actions {
    margin-top: 20px;
}

.product-details {
    background: #fff;
}

.product-content {
    line-height: 1.8;
    color: #555;
}

.product-content h6 {
    color: #333;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.product-content ul {
    padding-left: 20px;
}

.product-content li {
    margin-bottom: 8px;
    color: #666;
}

.product-inquiry {
    background: #fff;
}

.product-inquiry .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
}

.product-inquiry .form-label {
    font-weight: 500;
    color: #333;
}

.product-inquiry .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.product-inquiry .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.product-inquiry textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Sidebar Widget Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.widget-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.widget-header small {
    opacity: 0.8;
    font-size: 12px;
}

.widget-content {
    padding: 20px;
}

/* Accordion Styles */
.accordion-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 6px !important;
    overflow: hidden;
}

.accordion-button {
    background: #f8f9fa;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 6px !important;
}

.accordion-button:not(.collapsed) {
    background: #007bff;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-size: 16px;
}

.accordion-body {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.accordion-body ul li {
    margin-bottom: 8px;
}

.accordion-body ul li a {
    color: #666;
    font-size: 13px;
    padding: 5px 0;
    display: block;
    transition: all 0.3s ease;
}

.accordion-body ul li a:hover,
.accordion-body ul li a.active {
    color: #007bff;
    padding-left: 8px;
}

/* Responsive adjustments for product detail page */
@media (max-width: 768px) {
    .product-info {
        margin-top: 20px;
    }
    
    .product-meta .row {
        margin: 0;
    }
    
    .product-meta .col-md-6 {
        padding: 0 10px;
    }
    
    .thumbnail-images .row {
        margin: 0;
    }
    
    .thumbnail-images .col-4 {
        padding: 0 5px;
    }
    
    .sidebar-widget {
        margin-bottom: 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
}

/* Form validation styles */
.was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4L5.8 6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Breadcrumb styles for product detail page */
.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    content: ">";
}

.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-banner .breadcrumb-item a:hover {
    color: white;
}

.page-banner .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* Article Detail Page Styles */
.article-detail {
    background: #fff;
}

.article-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.article-title {
    color: #333;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #666;
}

.article-meta i {
    color: #007bff;
}

.article-tags {
    margin-top: 15px;
}

.article-tags .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

.article-content {
    background: #fff;
}

.content-text {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.content-text .lead {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    border-left: 4px solid #007bff;
    padding-left: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.content-text h4 {
    color: #333;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-text h5 {
    color: #444;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

.content-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 8px;
    color: #555;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

.alert-heading {
    color: #0c5460;
    font-weight: 600;
}

.alert-heading i {
    color: #17a2b8;
}

/* Article Navigation */
.article-navigation {
    background: #fff;
}

.prev-article,
.next-article {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    background: #f8f9fa;
}

.prev-article h6 a,
.next-article h6 a {
    color: #333;
    transition: color 0.3s ease;
}

.prev-article h6 a:hover,
.next-article h6 a:hover {
    color: #007bff;
}

/* Related Articles */
.related-articles {
    background: #fff;
}

.related-article-item {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-article-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-article-item h6 a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-article-item h6 a:hover {
    color: #007bff;
}

.related-article-item img {
    height: 60px;
    object-fit: cover;
}

/* Popular Articles Sidebar */
.popular-articles .article-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.popular-articles .article-item:last-child {
    border-bottom: none;
}

.popular-articles .article-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 6px;
}

.popular-articles .article-item h6 a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.popular-articles .article-item h6 a:hover {
    color: #007bff;
}

.popular-articles .article-item img {
    height: 50px;
    object-fit: cover;
}

/* Tags Cloud */
.tags-cloud .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tags-cloud .badge:hover {
    background: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* News Categories */
.widget-content ul li a {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.widget-content ul li a:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.widget-content ul li a .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Responsive adjustments for article detail page */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-header {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .article-meta > div {
        margin-bottom: 8px;
        margin-right: 0 !important;
    }
    
    .content-text .lead {
        font-size: 16px;
        padding: 15px;
    }
    
    .content-text h4 {
        font-size: 1.3rem;
    }
    
    .content-text h5 {
        font-size: 1.1rem;
    }
    
    .prev-article,
    .next-article {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .related-article-item {
        margin-bottom: 15px;
    }
    
    .sidebar-widget {
        margin-bottom: 15px;
    }
    
    .widget-content {
        padding: 15px;
    }
}

/* Print styles for articles */
@media print {
    .sidebar-widget,
    .article-navigation,
    .related-articles,
    .search-section,
    .links-section,
    .footer {
        display: none !important;
    }
    
    .article-content {
        box-shadow: none;
        border: none;
    }
    
    .content-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .article-title {
        font-size: 1.8rem;
        color: #000;
    }
    
    .article-meta {
        color: #666;
    }
}

/* Social sharing styles (if needed) */
.article-share {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-btn.wechat {
    background: #07c160;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn.qq {
    background: #12b7f5;
}

/* 底部菜单样式 */
.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled li a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .list-unstyled li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.footer .list-unstyled .list-unstyled {
    margin-top: 0.5rem;
}

.footer .list-unstyled .list-unstyled li {
    margin-bottom: 0.25rem;
}

.footer .list-unstyled .list-unstyled li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6) !important;
}

.footer .list-unstyled .list-unstyled li a:hover {
    color: rgba(255,255,255,0.9) !important;
}

/* 快速链接样式 */
.footer .list-unstyled.row li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled.row li a {
    display: block;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.footer .list-unstyled.row li a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transform: translateX(5px);
}

.culture-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.culture-icon {
    transition: all 0.3s ease;
}

.culture-card:hover .culture-icon {
    transform: scale(1.1);
}

/* 企业文化项目样式 */
.culture-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 2rem 1rem;
    height: 100%;
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.culture-item .culture-icon {
    transition: all 0.3s ease;
}

.culture-item:hover .culture-icon {
    transform: scale(1.1);
}

.product-swiper {
    padding: 0 50px;
}

.product-swiper .swiper-slide {
    height: auto;
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.product-swiper .swiper-button-next::after,
.product-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* 关于我们页面推荐产品轮播样式 */
.recommended-products .product-swiper {
    padding: 0 50px;
}

.recommended-products .product-swiper .swiper-slide {
    height: auto;
}

.recommended-products .product-swiper .swiper-button-next,
.recommended-products .product-swiper .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recommended-products .product-swiper .swiper-button-next:hover,
.recommended-products .product-swiper .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.recommended-products .product-swiper .swiper-button-next::after,
.recommended-products .product-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
} 

/* 产品图片画廊样式 */
.product-images .main-image {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    height: 400px; /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-images .main-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例 */
    display: block;
}

.product-images .thumbnail-images .thumbnail-img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
    width: 80px; /* 固定宽度 */
    height: 80px; /* 固定高度 */
    object-fit: cover; /* 保持图片比例 */
}

.product-images .thumbnail-images .thumbnail-img:hover {
    opacity: 1;
    border-color: #007bff;
    transform: scale(1.05);
}

.product-images .thumbnail-images .thumbnail-img.active {
    opacity: 1;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* 缩略图间距优化 */
.product-images .thumbnail-images .row {
    margin-left: -4px;
    margin-right: -4px;
}

.product-images .thumbnail-images .col-4 {
    padding-left: 4px;
    padding-right: 4px;
    display: flex;
    justify-content: center;
}

.product-images .thumbnail-images .thumbnail-img {
    margin-bottom: 8px;
}