/* 导入思源黑体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置根元素字体大小，rem.js会动态调整 */
html {
    font-size: 14px; /* 基础字体大小 */
}

body {
    font-family: 楷体, KaiTi, '楷体_GB2312', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 1rem; /* 使用rem单位 */
}

/* 1像素边框处理 */
body.hairlines * {
    border-width: 0.5px !important;
}


body.landscape {
    /* 横屏样式 */
    max-width: 100vw;
    overflow-x: hidden;
}

/* 英文文本优化 - 紧凑字母间距 */
body[lang="en"] {
    letter-spacing: -0.05em;
    word-spacing: -0.15em;
    font-family: Arial, Helvetica, sans-serif;
}

/* 针对英文语言的文本优化 */
[lang="en"] {
    letter-spacing: -0.05em;
    word-spacing: -0.15em;
}

/* 导航菜单英文文本优化 */
.nav-link[lang="en"] {
    letter-spacing: -0.03em;
    word-spacing: -0.1em;
    font-weight: 500;
}

/* 标题英文文本优化 */
.company-title[lang="en"],
h1[lang="en"],
h2[lang="en"],
h3[lang="en"],
h4[lang="en"] {
    letter-spacing: -0.08em;
    word-spacing: -0.2em;
    font-weight: 600;
}

/* 段落英文文本优化 */
p[lang="en"],
.company-info[lang="en"] {
    letter-spacing: -0.04em;
    word-spacing: -0.12em;
    line-height: 1.5;
}

/* 按钮英文文本优化 */
.cta-button[lang="en"],
.more-button[lang="en"],
.news-link[lang="en"] {
    letter-spacing: -0.02em;
    word-spacing: -0.08em;
    font-weight: 500;
}

/* 页脚英文文本优化 */
.footer[lang="en"] {
    letter-spacing: -0.02em;
    word-spacing: -0.08em;
    font-size: 0.95em;
}

/* 新闻卡片英文文本优化 */
.news-card[lang="en"] h3 {
    letter-spacing: -0.06em;
    word-spacing: -0.15em;
    font-weight: 600;
}

.news-card[lang="en"] p {
    letter-spacing: -0.03em;
    word-spacing: -0.1em;
    line-height: 1.4;
}

/* Logo图片样式 */
.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 为logo单独设置字体，不使用楷体 */
.logo h2 {
    font-family: 楷体, KaiTi, '楷体_GB2312', 'Microsoft YaHei', Arial, sans-serif;
}

.container {
    max-width: 90%; /* 使用百分比替代固定宽度 */
    margin: 0 auto;
    padding: 0 5%; /* 使用百分比内边距 */
    width: 100%;
}

/* 导航栏样式 - 优化版 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #002060;
    z-index: 1000;
    box-shadow: 0 0.1429rem 0.7143rem rgba(0, 0, 0, 0.2);
    height: 5rem;
}

.nav-container {
    max-width: 90%; /* 使用百分比替代固定宽度 */
    margin: 0 auto;
    padding: 0 5%; /* 使用百分比内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 3.5714rem; /* 50px / 14px = 3.5714rem */
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4286rem; /* 20px / 14px = 1.4286rem */
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff; /* 纯白色更清晰 */
    font-weight: 600; /* 加粗字体 */
    padding: 0 1.0714rem; /* 15px / 14px = 1.0714rem */
    font-size: 1.2857rem; /* 18px / 14px = 1.2857rem */
    letter-spacing: 0.0143rem; /* 0.2px / 14px = 0.0143rem */
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 0.2143rem solid transparent; /* 3px / 14px = 0.2143rem */
}

.nav-link:hover {
    color: #ffffff;
    border-bottom: 3px solid #002060;
}

/* 下拉菜单样式 - 优化版 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border-top: 3px solid #002060;
    margin-top: 0;
    z-index: 1001;
    transform: translateY(-10px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 确保导航项有相对定位 */
.nav-item {
    position: relative;
    height: 100%;
}

/* 修复下拉菜单定位问题 */
.nav-menu {
    position: relative;
    z-index: 1000;
}

/* 优化下拉菜单悬停效果 */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* 防止鼠标快速移动时菜单闪烁 */
.nav-item .dropdown-menu {
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu {
    pointer-events: auto;
}

/* 确保下拉菜单在导航栏上方 */
.navbar {
    z-index: 1000;
    position: fixed;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #002060;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f0f5ff;
    color: #002060;
    border-left: 3px solid #002060;
    padding-left: 19px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 5rem; /* 70px / 14px = 5rem */
    pointer-events: none; /* 容器本身不接收点击事件 */
}

.carousel * {
    pointer-events: auto; /* 但容器内的所有元素都可以接收点击事件 */
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-item.active {
    opacity: 1;
}

/* 高清图片处理 */
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    /* 高清屏优化 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 高清屏图片优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-img {
        /* 可以使用更高分辨率的图片 */
        image-rendering: crisp-edges;
    }
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    color: white;
    max-width: 42.8571rem; /* 600px / 14px = 42.8571rem */
    z-index: 10; /* 确保内容在图片上方 */
    pointer-events: auto; /* 确保链接可以点击 */
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 1.4286rem; /* 20px / 14px = 1.4286rem */
    text-shadow: 0.1429rem 0.1429rem 0.2857rem rgba(0, 0, 0, 0.5); /* 2px 2px 4px */
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2.1429rem; /* 30px / 14px = 2.1429rem */
    text-shadow: 0.0714rem 0.0714rem 0.1429rem rgba(0, 0, 0, 0.5); /* 1px 1px 2px */
}

/* 第一张图片文字动画 */
.text-animation {
    animation: floatUp 1s ease-out;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: #002060;
    color: white;
    padding: 1.0714rem 2.1429rem; /* 15px 30px / 14px */
    text-decoration: none;
    border-radius: 0.3571rem; /* 5px / 14px = 0.3571rem */
    font-weight: bold;
    transition: background 0.3s ease;
    z-index: 15; /* 确保链接在最上层 */
    position: relative; /* 为z-index生效 */
    pointer-events: auto; /* 确保可以点击 */
}

.cta-button:hover {
    background: #002060;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.7143rem 1.0714rem; /* 10px 15px / 14px */
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 5; /* 确保按钮在内容下方 */
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
    left: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

.carousel-control.next {
    right: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 2.1429rem; /* 30px / 14px = 2.1429rem */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7143rem; /* 10px / 14px = 0.7143rem */
    z-index: 5; /* 确保指示器在内容下方 */
}

.indicator {
    width: 0.8571rem; /* 12px / 14px = 0.8571rem */
    height: 0.8571rem; /* 12px / 14px = 0.8571rem */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 5; /* 确保指示器在内容下方 */
}

.indicator.active {
    background: white;
}

/* 公司标题样式 - 统一为深蓝色(#002060) */
.company-title {
    font-size: 2.0571rem; /* 28.8px / 14px = 2.0571rem */
    text-align: left;
    color: #002060;
    margin: 2.1429rem 1.4286rem; /* 30px 20px / 14px */
    font-weight: 700;
    line-height: 1.5;
    text-shadow: 0.0714rem 0.0714rem 0.1429rem rgba(0, 0, 0, 0.1); /* 1px 1px 2px */
}

/* 响应式设计 - 使用rem单位 */
@media (max-width: 768px) {
    .company-title {
        font-size: 1.7143rem; /* 24px / 14px = 1.7143rem */
        margin: 1.4286rem 1.0714rem; /* 20px 15px / 14px */
    }
    
    .nav-menu {
        gap: 0.7143rem; /* 10px / 14px = 0.7143rem */
    }
    
    .nav-link {
        padding: 0 0.7143rem; /* 10px / 14px = 0.7143rem */
        font-size: 1.1429rem; /* 16px / 14px = 1.1429rem */
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-section {
        padding: 4.2857rem 0; /* 60px / 14px = 4.2857rem */
    }
    
    .news-card {
        padding: 1.7857rem; /* 25px / 14px = 1.7857rem */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 1.4286rem; /* 20px / 14px = 1.4286rem */
        margin: 1.4286rem 1.0714rem; /* 20px 15px / 14px */
    }
    
    .nav-container {
        padding: 0 0.8571rem; /* 12px / 14px = 0.8571rem */
    }
    
    .nav-menu {
        gap: 0.1429rem; /* 2px / 14px = 0.1429rem */
    }
    
    .nav-link {
        padding: 0 0.5714rem; /* 8px / 14px = 0.5714rem */
        font-size: 1.0714rem; /* 15px / 14px = 1.0714rem */
    }
    
    .carousel-content {
        left: 5%;
        right: 5%;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8571rem 1.7857rem; /* 12px 25px / 14px */
        font-size: 1rem;
    }
    
    .news-section {
        padding: 2.8571rem 0; /* 40px / 14px = 2.8571rem */
    }
    
    .news-card {
        padding: 1.4286rem; /* 20px / 14px = 1.4286rem */
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
    
    .more-button {
        padding: 0.7143rem 1.7857rem; /* 10px 25px / 14px */
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .company-title {
        font-size: 1.2857rem; /* 18px / 14px = 1.2857rem */
        margin: 1.0714rem 0.7143rem; /* 15px 10px / 14px */
    }
}

/* 手机字体缩放防护 */
body {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 允许文本选择 */
* {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 高清屏优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 使用更高分辨率的图片 */
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 新闻动态区域 */
.news-section {
    padding: 6rem 0; /* 80px / 14px = 5.7143rem */
    position: relative;
    overflow: hidden;
    background: #ffffff !important;
}

.news-section h2 {
    margin-bottom: 3.5714rem; /* 50px / 14px = 3.5714rem */
    color: #002060;
    text-align: center;
}

.news-grid {
    display: grid;
    gap: 2.8571rem; /* 40px / 14px = 2.8571rem */
    margin-bottom: 3.5714rem; /* 50px / 14px = 3.5714rem */
}

.news-card {
    background: white;
    border-radius: 0;
    box-shadow: 0 0.2857rem 0.8571rem rgba(0, 0, 0, 0.12); /* 4px 12px */
    transition: all 0.3s ease;
    border: 0.0714rem solid rgba(42, 92, 170, 0.1); /* 1px */
    overflow: hidden;
    display: flex;
    align-items: normal;
    padding: 0;
    cursor: pointer;
    height: auto;
}

/* 基础卡片图片样式 */
.card-image {
    width: 25rem; /* 350px / 14px = 25rem */
    height: auto;
    object-fit: cover;
    background: none;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    display: block;
    flex-shrink: 0;
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* 保持原始图片尺寸不变 */
.original-image {
    width: 39.6429rem; /* 555px / 14px = 39.6429rem */
    height: 16.8571rem; /* 236px / 14px = 16.8571rem */
    object-fit: cover;
    object-position: center;
}

/* 新增图片的自动尺寸适配 */
.card-image:not(.original-image) {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* 图片加载淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 图片悬停效果 */
.news-card:hover .card-image {
    transform: scale(1.02);
}

.card-content {
    flex: 1;
    padding: 1.4286rem 2.1429rem; /* 20px 30px / 14px */
    text-align: left;
    margin-left: 1.4286rem; /* 20px / 14px = 1.4286rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-card {
        flex-direction: column;
    }
    
    .card-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain; /* 确保图片完整显示 */
    }
    
    /* 保持原始图片在小屏幕上的尺寸 */
    .original-image {
        max-width: 100%;
        height: auto;
        object-fit: contain; /* 确保图片完整显示 */
        object-position: center;
    }
    
    .card-content {
        text-align: center;
        padding: 25px;
        margin-left: 0; /* 重置小屏幕上的间距 */
        margin-top: 20px; /* 添加垂直间距 */
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        padding: 0;
    }
    
    .card-image {
        padding: 0;
        min-height: 200px;
    }
    
    .original-image {
        min-height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 60px 0;
    }
    
    .news-section h2 {
        margin-bottom: 30px;
    }
    
    .card-image {
        padding: 0;
        min-height: 180px;
    }
    
    .original-image {
        min-height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    /* 优化小屏幕上的图片加载动画 */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); /* 悬停时增强阴影效果 */
    border-color: rgba(42, 92, 170, 0.2);
}

.news-card h3 {
    color: #002060;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left; /* 确保标题左对齐 */
}

.news-card p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left; /* 确保段落左对齐 */
}

.news-link {
    color: #002060;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #002060;
    text-decoration: underline;
}

.more-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #002060;
    color: #002060;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.more-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #002060, #002060);
    transition: all 0.4s ease;
    z-index: -1;
}

.more-button:hover {
    color: white;
    border-color: transparent;
}

.more-button:hover:before {
    left: 0;
}

.news-more {
    text-align: center;
    margin-top: 20px;
}

/* 底部栏样式 - 浅色商务风格 */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #000000;
    padding: 5.7143rem 0 2.8571rem; /* 80px 0 40px / 14px */
    font-family: 楷体, KaiTi, '楷体_GB2312', 'Microsoft YaHei', Arial, sans-serif;
    border-top: 0.2143rem solid #002060; /* 3px / 14px = 0.2143rem */
    box-shadow: 0 -0.2857rem 1.4286rem rgba(0, 0, 0, 0.1); /* 4px 20px */
}

/* 统一所有主要区域的容器样式 */
.container, .nav-container, .footer > .container {
    max-width: 90%; /* 使用百分比替代固定宽度 */
    margin: 0 auto;
    padding: 0 5%; /* 使用百分比内边距 */
    width: 100%;
}

/* 超宽屏适配 (1920px以上) */
@media (min-width: 1921px) {
    .container, .nav-container, .footer > .container {
        max-width: 1800px; /* 扩大容器宽度 */
        padding: 0 2%;
    }
    
    .company-title {
        font-size: 2.5rem;
    }
    
    .carousel-content h1 {
        font-size: 3.5rem;
    }
}

/* 宽屏适配 (1440px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .container, .nav-container, .footer > .container {
        max-width: 1600px; /* 扩大容器宽度 */
        padding: 0 3%;
    }
    
    .company-title {
        font-size: 2.3rem;
    }
    
    .carousel-content h1 {
        font-size: 3.2rem;
    }
}

/* 标准桌面适配 (1200px - 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
    .container, .nav-container, .footer > .container {
        max-width: 1200px;
        padding: 0 1%;
    }
    
    .company-title {
        font-size: 2.1rem;
    }
}

/* 响应式设计统一 - 优化断点单位 */
@media (max-width: 1200px) {
    .container, .nav-container, .footer > .container {
        max-width: 95%;
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    .container, .nav-container, .footer > .container {
        max-width: 95%;
        padding: 0 3%;
    }
}

@media (max-width: 480px) {
    .container, .nav-container, .footer > .container {
        max-width: 98%;
        padding: 0 2%;
    }
}

/* 超小手机适配 (小于320px) */
@media (max-width: 320px) {
    .container, .nav-container, .footer > .container {
        max-width: 100%;
        padding: 0 1%;
    }
    
    .company-title {
        font-size: 1.2rem;
        margin: 1rem 0.5rem;
    }
    
    .carousel-content h1 {
        font-size: 1.3rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
    }
}

/* 超窄屏适配 (小于280px) */
@media (max-width: 280px) {
    .container, .nav-container, .footer > .container {
        max-width: 100%;
        padding: 0 0.5%;
    }
    
    .company-title {
        font-size: 1.1rem;
        margin: 0.8rem 0.3rem;
    }
    
    .carousel-content h1 {
        font-size: 1.1rem;
    }
    
    .carousel-content p {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

.title-qrcode-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5714rem; /* 8px / 14px = 0.5714rem */
    margin-bottom: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

.company-footer-title {
    font-size: 2.5714rem; /* 36px / 14px = 2.5714rem */
    color: #000000;
    margin: 0;
    font-weight: 700;
    text-shadow: 0.1429rem 0.1429rem 0.2857rem rgba(0, 0, 0, 0.1); /* 2px 2px 4px */
    letter-spacing: 0.0714rem; /* 1px / 14px = 0.0714rem */
    margin-bottom: 0;
}

/* 链接区域样式优化 */
.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 0.8571rem; /* 12px / 14px = 0.8571rem */
}

.footer-links-section a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem; /* 14px / 14px = 1rem */
    transition: color 0.3s ease;
    line-height: 1.6;
}

.footer-links-section a:hover {
    color: #002060;
}

.underline-link {
    text-decoration: none;
    position: relative;
}

.underline-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.1429rem; /* 2px / 14px = 0.1429rem */
    bottom: -0.1429rem; /* 2px / 14px = 0.1429rem */
    left: 0;
    background-color: #002060;
    transition: width 0.3s ease;
}

.underline-link:hover::after {
    width: 100%;
}

.copyright-link {
    color: #000000 !important;
    font-size: 1rem; /* 14px / 14px = 1rem */
}

.copyright-link:hover {
    color: #002060 !important;
}

/* 三列响应式网格布局 - 结合百分比和rem */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 4.2857rem; /* 保持rem单位用于固定间距 */
    align-items: start;
    width: 100%; /* 确保网格宽度为100% */
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

.footer-left {
    grid-column: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

.title-qrcode-container {
    display: flex;
    align-items: center;
    gap: 0.7143rem; /* 10px / 14px = 0.7143rem */
}

.company-footer-title {
    font-size: 1.5rem;
    color: #002060;
    margin: 0;
    flex-shrink: 0;
}

.footer-left::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    height: 100%;
    width: 0.1429rem; /* 2px / 14px = 0.1429rem */
    background: linear-gradient(to bottom, 
        transparent 0%,
        #002060 50%,
        #002060 50%,
        transparent 100%);
    mask: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0.2) 100%);
    -webkit-mask: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0.2) 100%);
}

.footer-center {
    grid-column: 2;
}

.footer-right {
    grid-column: 3;
}

/* 内容区域样式 */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.0714rem; /* 15px / 14px = 1.0714rem */
}

.footer-section p {
    margin: 0;
    line-height: 1.6;
    color: #000000;
    font-size: 1rem; /* 14px / 14px = 1rem */
}

.footer-section strong {
    color: #000000;
    font-weight: 700;
    font-size: 1.0714rem; /* 15px / 14px = 1.0714rem */
}

/* 链接区域样式 */
.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-section a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-section a:hover {
    color: #4a90e2;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 两列布局 */
        gap: 30px;
    }
    
    .footer-right {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
    
    .footer-left::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 25px;
    }
    
    .footer-right {
        grid-column: 1;
        grid-row: auto;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-left::after {
        display: none;
    }
    
    .title-qrcode-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links-section {
        align-items: center;
    }
}

/* 链接样式 */
.underline-link {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s;
    line-height: 1.5;
}

.underline-link:hover {
    color: #002060;
}

.normal-link {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.5;
}

.normal-link:hover {
    color: #002060;
}

/* 联系信息 */
.contact-info p {
    margin: 0;
    line-height: 1.5;
    color: #000000;
}

/* 底部版权信息 */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.copyright-link {
    color: #000000;
    text-decoration: underline;
    transition: color 0.3s;
}

.copyright-link:hover {
    color: #4a90e2;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: #444;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}



/* 公司信息区域样式 */
.company-section {
    padding: 120px 0;
    background: #ffffff;
}

.company-info {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin: 0 30px;
}

.company-info p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.company-info strong {
    color: #002060;
    font-weight: 600;
}

/* 水平排列图片展示布局 - 优化百分比使用 */
.horizontal-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.8571rem; /* 保持rem单位用于固定间距 */
    margin: 0 5%; /* 使用百分比外边距 */
    padding: 3.5714rem 0;
    width: 90%; /* 使用百分比宽度 */
    max-width: 1200px; /* 添加最大宽度限制 */
    margin-left: auto;
    margin-right: auto;
}

.horizontal-block {
    background: white;
    border-radius: 0.8571rem; /* 12px / 14px = 0.8571rem */
    box-shadow: 0 0.2857rem 1.4286rem rgba(0, 0, 0, 0.08); /* 4px 20px */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 1.4286rem; /* 20px / 14px = 1.4286rem */
}

.horizontal-block:hover {
    transform: translateY(-0.3571rem); /* 5px / 14px = 0.3571rem */
    box-shadow: 0 0.5714rem 2.1429rem rgba(0, 0, 0, 0.12); /* 8px 30px */
}

.app-image {
    width: 10.7143rem; /* 150px / 14px = 10.7143rem */
    height: 10.7143rem; /* 150px / 14px = 10.7143rem */
    object-fit: cover;
    border-radius: 0.5714rem; /* 8px / 14px = 0.5714rem */
    margin-bottom: 1.0714rem; /* 15px / 14px = 1.0714rem */
    background: #f8f9fa;
    border: 0.0714rem solid #e9ecef; /* 1px / 14px = 0.0714rem */
}

.app-title {
    text-align: center;
}

.app-title h4 {
    font-size: 1.2857rem; /* 18px / 14px = 1.2857rem */
    color: #002060;
    font-weight: 600;
    margin: 0;
}

/* 响应式设计 - 优化断点使用百分比 */
@media (max-width: 1440px) {
    .horizontal-showcase {
        width: 95%; /* 大屏幕增加宽度百分比 */
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .horizontal-showcase {
        width: 98%; /* 中等屏幕进一步增加宽度 */
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr); /* 改为两列布局 */
        gap: 2rem; /* 减少间距 */
    }
    
    .app-title h4 {
        font-size: 1.4286rem;
    }
}

/* 水平排列布局响应式设计 - 优化百分比断点 */
@media (max-width: 1200px) {
    .horizontal-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4286rem;
        width: 95%; /* 增加宽度百分比 */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .horizontal-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.0714rem;
        width: 98%; /* 移动端进一步增加宽度 */
        margin: 0 auto;
        padding: 2.1429rem 0;
    }
    
    .horizontal-block {
        padding: 1.0714rem;
    }
    
    .app-image {
        width: 8.5714rem;
        height: 8.5714rem;
    }
    
    .app-title h4 {
        font-size: 1.1429rem;
    }
}

@media (max-width: 480px) {
    .horizontal-showcase {
        grid-template-columns: 1fr;
        gap: 1.0714rem; /* 15px / 14px = 1.0714rem */
        margin: 0 3%;
        padding: 1.4286rem 0; /* 20px / 14px = 1.4286rem */
    }
    
    .horizontal-block {
        padding: 1.0714rem; /* 15px / 14px = 1.0714rem */
        display: flex;
        align-items: center;
        gap: 1.0714rem; /* 15px / 14px = 1.0714rem */
    }
    
    .app-image {
        width: 5.7143rem; /* 80px / 14px = 5.7143rem */
        height: 5.7143rem; /* 80px / 14px = 5.7143rem */
        margin-bottom: 0;
    }
    
    .app-title h4 {
        font-size: 1.1429rem; /* 16px / 14px = 1.1429rem */
        text-align: left;
    }
}

@media (max-width: 320px) {
    .horizontal-showcase {
        margin: 0 2%;
        padding: 1.0714rem 0; /* 15px / 14px = 1.0714rem */
    }
    
    .horizontal-block {
        padding: 0.8571rem; /* 12px / 14px = 0.8571rem */
        gap: 0.8571rem; /* 12px / 14px = 0.8571rem */
    }
    
    .app-image {
        width: 5rem; /* 70px / 14px = 5rem */
        height: 5rem; /* 70px / 14px = 5rem */
    }
    
    .app-title h4 {
        font-size: 1rem; /* 14px / 14px = 1rem */
    }
}

/* 高清屏优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 横竖屏适配 */
@media (orientation: landscape) {
    .horizontal-showcase {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.4286rem; /* 20px / 14px = 1.4286rem */
    }
}

@media (orientation: portrait) {
    .horizontal-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.0714rem; /* 15px / 14px = 1.0714rem */
    }
}

/* 生产制造页面样式 */
.page-banner {
    background: linear-gradient(135deg, #002060 0%, #002060 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.manufacturing-content {
    padding: 9rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-column h2 {
    font-size: 2.5rem;
    color: #002060;
    margin-bottom: 30px;
    font-weight: 700;
}

.blue-text-box {
    background: #002060;
    color: white;
    padding: 40px;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.2);
}

.blue-text-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.5px;
    word-spacing: -3px;
}

.image-column {
    text-align: center;
    margin-top: 40px; /* 将图片往下调一点 */
}

.factory-image {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        gap: 40px;
    }
    
    .text-column h2 {
        font-size: 2rem;
    }
    
    .blue-text-box {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-banner {
        padding: 100px 0 60px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .text-column h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .blue-text-box {
        padding: 25px;
        font-size: 1rem;
    }
    
    .factory-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 80px 0 40px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .manufacturing-content {
        padding: 60px 0;
    }
    
    .text-column h2 {
        font-size: 1.5rem;
    }
    
    .blue-text-box {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* 增程器型谱-发动机总成栏样式 */
.engine-spectrum-section {
    padding: 60px 0;
}

.spectrum-header {
    margin-bottom: 40px;
}

.spectrum-title {
    font-family: '楷体', 'KaiTi', 'STKaiti', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #002060;
    margin: 0 0 20px 0;
}

.title-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #bdc3c7 50%, transparent 100%);
    width: 80%;
    margin: 0 auto;
}

/* 维度标签导航 */
.dimension-tabs {
    margin-bottom: 30px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #002060;
    border-radius: 25px;
    background: white;
    color: #002060;
    font-family: '楷体', 'KaiTi', 'STKaiti', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background: #002060;
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #002060;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 产品矩阵 */
.product-matrix {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.matrix-header {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.header-cell {
    text-align: center;
    font-weight: 700;
    color: #002060;
    font-size: 1.1rem;
}

.header-cell.empty {
    visibility: hidden;
}

.matrix-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.matrix-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.row-header {
    font-weight: 700;
    color: #002060;
    font-size: 1.1rem;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-cell {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-cell:hover {
    border-color: #002060;
    box-shadow: 0 8px 25px rgba(0, 32, 96, 0.2);
    transform: translateY(-5px);
}

.engine-model {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.engine-model img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.product-cell:hover .engine-model img {
    transform: scale(1.1);
}

.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-cell:hover .model-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: white;
    color: #002060;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .matrix-header,
    .matrix-row {
        grid-template-columns: 150px 1fr 1fr;
        gap: 15px;
    }
    
    .row-header {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .engine-spectrum-section {
        padding: 40px 0;
    }
    
    .spectrum-title {
        font-size: 2rem;
    }
    
    .tabs-container {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .matrix-header,
    .matrix-row {
        grid-template-columns: 120px 1fr 1fr;
        gap: 12px;
    }
    
    .row-header {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .product-cell {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .matrix-header,
    .matrix-row {
        grid-template-columns: 100px 1fr 1fr;
        gap: 10px;
    }
    
    .header-cell,
    .row-header {
        font-size: 0.8rem;
    }
    
    .product-cell {
        height: 120px;
    }
    
    .view-details {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-out;
}

.qrcode-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.qrcode-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.qrcode-close:hover {
    color: #333;
}

.qrcode-modal-image {
    width: 250px;
    height: 250px;
    display: block;
    margin: 0 auto;
}

.wechat-qrcode-trigger {
    cursor: pointer;
    transition: transform 0.2s;
}

.wechat-qrcode-trigger:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

