/* 全局样式 */
.highlight-pulse {
    animation: pulse-border 2s ease;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.4);
    border-radius: 8px;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}
body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: #f5f7fa; /* 浅灰蓝色背景 */
    color: #2d3748; /* 深灰蓝色文字 */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb; /* 主蓝色 */
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8; /* 深蓝色 */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #f59e0b; /* 活力橙 */
    color: white;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    background-color: #d97706; /* 深橙色 */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(245, 158, 11, 0.3);
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    display: block;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
    margin-left: 25px;
}

nav ul li a {
    color: #4a5568; /* 中灰色 */
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #2563eb; /* 主蓝色 */
    background: rgba(37, 99, 235, 0.1);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10;
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #4a5568;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    padding-left: 25px;
}

/* 语言切换器 */
.language-switcher {
    position: absolute;
    top: 10px;
    right: 20px;
}

.language-switcher select {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

/* 主标题区 - 视频区 */
.hero-video {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.product-video {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.product-video video {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.video-overlay h1 {
    font-size: 56px;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.video-overlay p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 主内容区 */
main {
    padding: 80px 0;
}

.section-container {
    margin-bottom: 80px;
    padding: 0 20px;
}

/* 公司简介 */
.about-section {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    transition: transform 0.5s ease;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 36px;
    color: #1e40af; /* 深蓝色 */
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #4a5568;
    font-size: 16px;
}

/* 产品介绍 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f59e0b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: #1e3a8a; /* 深蓝色 */
    margin-bottom: 15px;
    font-size: 20px;
}

.product-info p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 项目案例 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-client {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 20px;
}

.project-info p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

/* 新闻动态 */
.news-list {
    list-style: none;
}

.news-item {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    min-width: 80px;
    text-align: center;
    background: #2563eb;
    color: white;
    padding: 10px;
    border-radius: 8px;
}

.news-date .day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 14px;
    text-transform: uppercase;
}

.news-content h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 18px;
}

.news-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 15px;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #4a5568, #235485);
    padding: 60px 0 30px;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    display: block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f59e0b;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 10px;
    color: #f59e0b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 标题装饰 */
.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.blue-title .section-title:after {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.orange-title .section-title:after {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

/* Swiper 轮播 */
.swiper {
    padding-bottom: 50px;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: #2563eb;
}

.swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #2563eb;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-video h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }

    .hero-video {
        height: 500px;
    }

    .hero-video h1 {
        font-size: 42px;
    }

    .hero-video p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 70px;
    }

    nav ul {
        display: none;
    }

    .hero-video {
        height: 400px;
        margin-top: 70px;
    }

    .hero-video h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .news-item {
        flex-direction: column;
        gap: 20px;
    }

    .news-date {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-video {
        height: 350px;
    }

    .hero-video h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-section {
        padding: 30px;
    }

    .products-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* 新增包裹导航和语言切换的容器 */
.nav-language-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 25px;
}

nav ul li a {
    color: #4a5568; /* 中灰色 */
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    color: #2563eb; /* 主蓝色 */
    background: rgba(37, 99, 235, 0.1);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* 确保比header高，避免被遮挡 */
    border-radius: 8px;
    padding: 10px 0;
    border: 1px solid #e2e8f0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #4a5568;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    padding-left: 25px;
}

/* 语言切换器，去掉绝对定位，和导航并排 */
.language-switcher {
    position: static; /* 取消绝对定位 */
}

.language-switcher select {
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-switcher select:hover,
.language-switcher select:focus {
    border-color: #2563eb;
    outline: none;
}
/* 自定义 Swiper 箭头样式 */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明黑背景 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.7); /* 鼠标悬停变深 */
}

/* 使箭头垂直居中，更显眼 */
.swiper-button-next,
.swiper-button-prev {
    top: 40%;
}

/* 自定义分页点 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
    margin: 0 6px;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #007bff; /* 活动项为主题色 */
}
.about-swiper {
    width: 100%;
    max-width: 600px;
    height: 350px; /* 或按比例计算: 比如 16:9 可用 56.25vw */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px; /* 可选，圆角美化 */
}

.about-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：按容器填充并裁剪 */
    object-position: center;
    display: block;
}
.footer-social a {
    margin: 0 10px;
    color: rgb(255, 255, 255); /* 设置图标颜色 */
    font-size: 24px; /* 设置图标大小 */
}
/* 顶部导航样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo img {
    height: 48px;
}
.nav-language-wrapper nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    font-weight: 600;
    margin: 0;
}
.nav-language-wrapper nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-language-wrapper nav ul li a:hover {
    color: #f90;
}
.language-switcher select {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* 主内容样式 */
main.about-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}
main.about-detail h1 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    border-left: 6px solid #f90;
    padding-left: 16px;
    font-weight: 700;
}
main.about-detail section {
    margin-bottom: 60px;
    line-height: 1.7;
    font-size: 1.15rem;
    color: #444;
}
main.about-detail section h2 {
    font-size: 1.9rem;
    color: #005577;
    margin-bottom: 16px;
    font-weight: 600;
}

/* 日常照片展示 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.photo-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.photo-gallery img:hover {
    transform: scale(1.03);
}

/* 页脚 */
footer {
    background: #002244;
    color: #aaa;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.indent {
    text-indent: 2em; /* 首行缩进两汉字 */
    line-height: 1.8;
}


