/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

body .back-white{
    background: #fff;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 26px;
    font-weight: bold;
    color: #1e4b9a;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1e4b9a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e4b9a;
}

/* 移动菜单按钮 */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

.mobile-menu.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, #1e4b9a, #2196f3);
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/banner.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 22px;
    margin-bottom: 35px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #1e4b9a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
}

.cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.cta-button.primary {
    background: #1e4b9a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 75, 154, 0.3);
}

.cta-button.primary:hover {
    background: #1a3f82;
    box-shadow: 0 6px 15px rgba(30, 75, 154, 0.4);
}

/* 关于部分 */
.about-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 75, 154, 0.2), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 400px auto;
    gap: 60px;
    align-items: center;
}

.about-content  h3{
    text-align: center;
    padding: 5px;
}
.about-text {
    position: relative;
}
.about-text  img{
    width: 100%;
}

.about-text h2 {
    font-size: 36px;
    color: #1e4b9a;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1e4b9a;
}

.about-text p {
    margin-bottom: 8px;
    font-size: 16px;
    text-indent: 2em;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 1s ease-out;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat-item {
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 75, 154, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 75, 154, 0.15);
}

.stat-item h3 {
    font-size: 42px;
    color: #1e4b9a;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-item p {
    color: #666;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 企业文化部分 */
.culture-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* 企业荣誉部分 */
.honors-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.honors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 75, 154, 0.2), transparent);
}

.honors-section h2 , .container h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #1e4b9a;
    position: relative;
    padding-bottom: 20px;
    font-size: 36px;
}

.honors-section h2::after, .container h2::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1e4b9a;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.honors-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.honor-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.honor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 75, 154, 0.15);
}

.honor-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.honor-card:hover .honor-image {
    transform: scale(1.05);
}

.honor-caption {
    padding: 20px;
    text-align: center;
    font-weight: 500;
    color: #1e4b9a;
    font-size: 18px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .honors-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .honor-image {
        height: 180px;
    }
    
    .honor-caption {
        padding: 15px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .honors-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 30px auto 0;
    }
}

.culture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 75, 154, 0.2), transparent);
}

.culture-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e4b9a;
    position: relative;
    padding-bottom: 20px;
}

.culture-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1e4b9a;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.culture-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 75, 154, 0.1);
    text-align: center;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e4b9a, #2196f3);
    transition: height 0.4s ease;
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 75, 154, 0.15);
}

.culture-card:hover::before {
    height: 10px;
}

.culture-icon {
    font-size: 48px;
    margin-bottom: 25px;
    color: #1e4b9a;
    transition: all 0.4s ease;
    display: inline-block;
}

.culture-card:hover .culture-icon {
    transform: scale(1.1) rotate(5deg);
    color: #2196f3;
}

.culture-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e4b9a;
    transition: color 0.3s ease;
}

.culture-card p {
    color: #666;
    line-height: 1.7;
    margin-top: 15px;
}

/* 服务部分 */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 75, 154, 0.2), transparent);
}

.contact h2 {
    padding-bottom: 40px;
    position: relative;
    text-align: center;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1e4b9a;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.services-section p {
    text-indent: 2em;
    margin: 25px 0;
    color: #555;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 75, 154, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e4b9a, #2196f3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 75, 154, 0.15);
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 25px;
    color: #1e4b9a;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #2196f3;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1e4b9a;
    transition: color 0.3s ease;
}

.service-card p {
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* 产品列表页 */
.page-header {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: #fff;
    padding: 100px 0 40px;
    text-align: center;
}

.filter-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.filter-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-description {
    margin: 10px 0;
    color: #666;
}

.pagination{
    margin:20px;
}
.product-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.page-link{
    padding:30px 20px;
}

/* 产品详情页 */
.breadcrumb {
    background: #f8f9fa;
    padding: 90px 20px 20px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
}

.breadcrumb-list li:not(:last-child):after {
    content: '>';
    margin-left: 10px;
    color: #666;
}

.breadcrumb-list a {
    color: #007bff;
    text-decoration: none;
}

.product-detail {
    padding: 40px 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-gallery {
    position: relative;
}

.main-image img {
    width: 100%;
    border-radius: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.product-info-detail {
    padding: 20px;
}

.product-rating {
    margin: 10px 0;
}

.stars {
    color: #ffc107;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.price-note {
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.primary-button,
.secondary-button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.primary-button {
    background: #007bff;
    color: #fff;
}

.secondary-button {
    background: #f8f9fa;
    color: #333;
}

.description-tabs {
    display: flex;
    gap: 20px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    position: relative;
}

.tab-button.active {
    color: #007bff;
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-pane {
    display: none;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1e4b9a, #1a3f82);
    color: #fff;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #1e4b9a);
}

.footer-info h3 {
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2196f3;
}

.footer-info p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-links h3 {
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2196f3;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #2196f3;
}

.footer-links a:hover::before {
    transform: translateX(3px);
    color: #2196f3;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.social-link:hover {
    opacity: 1;
    background: #2196f3;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    opacity: 0.9;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .about-content,
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .filter-options {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

/* 增强的响应式设计 */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid,
    .culture-grid,
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    .navbar .container {
        height: 70px;
    }
    
    .logo a {
        font-size: 24px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-stats {
        margin-top: 30px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-item h3 {
        font-size: 36px;
    }
    
    .culture-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .services-section,
    .about-section,
    .culture-section {
        padding: 60px 0;
    }

    .service-card,
    .culture-card,
    .contact-item {
        padding: 30px 20px;
    }

    .service-icon,
    .culture-icon,
    .contact-icon {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info h3::after,
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-links a {
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: 20px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .service-card h3,
    .culture-card h3 {
        font-size: 20px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/* 额外的动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 添加滚动显示动画 */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* 从左侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* 从右侧滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放效果 */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* 旋转效果 */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotate-in.active {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 淡入效果 */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.active {
    opacity: 1;
}

/* 从下方滑入 */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* 性能优化 */
.scroll-animation,
.slide-in-left,
.slide-in-right,
.scale-in,
.rotate-in,
.fade-in,
.slide-up {
    will-change: opacity, transform;
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .scroll-animation,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .rotate-in,
    .fade-in {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* 系统监测设备图集 */
.monitor-gallery {
    padding: 40px 0;
    background: #fff;
}

.monitor-gallery .section-description {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 幻灯片容器 */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.monitor-slideshow {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 幻灯片 */
.slide {
    display: none;
    width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* 幻灯片标题 */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0);
}

.slide-caption h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.slide-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* 前后按钮 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 导航点 */
.dots-container {
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #1e4b9a;
}

/* 淡入淡出动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(30, 75, 154, 0.3);
    border-radius: 50%;
    border-top: 4px solid #1e4b9a;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 播放/暂停按钮 */
.play-pause-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 进度条 */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #1e4b9a;
    transition: width 0.1s linear;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e4b9a;
    color: #fff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 75, 154, 0.3);
    z-index: 999;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(30, 75, 154, 0.4);
}

/* 导航栏滚动效果 */
.navbar {
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移动菜单按钮动画 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1e4b9a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}