/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --text-color: #333;
    --light-bg: #f5f5f5;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 联系我们 */
.contact-info {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.contact-info p {
    margin: 0;
}
/* 中英文切换 */
.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.language-switch {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

.language-switch a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: opacity 0.3s;
}

.language-switch a:hover {
    opacity: 0.8;
}

.language-switch a.active {
    font-weight: bold;
}

.language-switch span {
    color: #fff;
    opacity: 0.7;
}

.language-switch {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #fff;
    /* background-color: rgba(255, 255, 255, 0.2); */
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.language-switch a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s;
    padding: 3px 8px;
}

.language-switch a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.language-switch a.active {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.language-switch span {
    color: #fff;
    opacity: 0.7;
    margin: 0 2px;
}

/* 头部样式 */
header {
    height: 99px;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.logo {
    text-align: left;
}

.logo img {
    height: 40px;
}

/* 导航菜单按钮样式 */
.nav-toggle {
    display: none; /* 默认隐藏菜单按钮 */
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* 主要内容样式 */
.hero {
    display: flex;
    flex-direction: column;
    height: 900px;
    color: white;
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 400px;
}

.hero-content {
    display: flex;
    gap: 30px;
}

.about-image .about-background-gif { /* 使用新 class */
    position: absolute;
    top: -1px; /* 保留这些微调，如果它们对 GIF 仍然有效 */
    left: 0;
    width: 100%;
    height: calc(100% + 2px); /* 保留这些微调 */
    object-fit: cover;        /* 保持覆盖和裁剪行为 */
    border-radius: 10px;      /* 保持圆角 */
    transform: scale(1.02);   /* 保留缩放效果 */
    /* 注意：这里没有明确的 z-index，它依赖于 .about-image 的 z-index: 1 */
}


/* 还需要修改响应式部分的样式 */
@media screen and (max-width: 992px) {
    /* ... 其他 @media 内部的样式 ... */

    .about-image {
        min-height: 400px; /* 容器最小高度不变 */
    }

    .header-background-gif{
        min-height: 400px;
    }
    
    /* 原来的响应式视频样式 */
    /* .about-image video { 
        position: relative; 
        height: 400px;
    }
    */

    /* 修改后的响应式 GIF 图片样式 */
    .about-image .about-background-gif { /* 使用新 class */
        position: relative; /* 保持响应式布局中的相对定位 */
        height: 400px;      /* 保持响应式布局中的固定高度 */
        /* 可能需要重置一些绝对定位的样式 */
        top: auto;          /* 重置 top */
        left: auto;         /* 重置 left */
        width: 100%;        /* 可能仍然需要宽度100% */
        transform: none;    /* 在此视图下可能不需要缩放，或者根据需要调整 */
        /* object-fit 和 border-radius 通常可以保留 */
    }
}

.hero-text, .hero-image, .achievement {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* 统一标题样式 */
.hero-content h1, .achievement h1 {
    font-size: 2.5rem;  /* 更大的字体大小 */
    margin-bottom: 1.5rem;
    font-weight: bold;
}
.achievement{
    margin-left: 30px;
}

.achievement h1 {
    margin-bottom: 20px;
    font-size: 32px;
}

.achievement p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 16px;
}

/* 特性卡片样式 */
.features {
    /* height: 400px; */
    padding: 60px 0;
    position: relative;
    z-index: 3;
}

.three-card-item {
    flex: 0 0 30%;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* 调整阴影颜色 */
    transition: all 0.3s ease;
    background: white; /* 改为白色背景 */
    border-radius: 8px;
    color: #333; /* 文字颜色改为深色 */
}

.three-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2); /* 悬停时的阴影颜色也调整 */
    background: white; /* 保持白色背景 */
}

/* 手机端保持样式 */
@media screen and (max-width: 768px) {
    .three-card-item {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

.three-card {
    min-height: 400px; /* 改为最小高度而不是固定高度 */
    padding: 60px 0;
    position: relative;
    z-index: 3;
    background-color: var(--light-bg);
}

.three-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex; /* 添加 flex 布局 */
    justify-content: space-between; /* 三个卡片两端对齐 */
    flex-wrap: wrap; /* 允许在需要时换行 */
}

.three-card-item-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem;
    flex: 0 0 30%; /* 每个卡片占 30% 宽度 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 手机端响应式布局 */
@media screen and (max-width: 768px) {
    .three-card {
        min-height: auto; /* 移除最小高度限制 */
        padding: 40px 0; /* 稍微减少内边距 */
    }

    .three-container {
        flex-direction: column;
    }

    .three-card-item {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    /* 最后一个卡片不需要底部边距 */
    .three-card-item:last-child {
        margin-bottom: 0;
    }
}

.features-content {
    display: flex;
    justify-content: space-between;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.feature-item {
    flex: 0 0 31%;
    text-align: left;
    color: #fff;
}

.feature-text h2 {
    font-size: 3.75rem;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.6;
}

.feature-text ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-text ul li {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    font-size: 1.2rem;
}

.feature-image {
    text-align: left; /* 图片容器左对齐 */
}


.feature-image img {
    max-width: 400px;  /* 新增最大宽度限制 */
    width: 80%;        /* 默认显示80%宽度 */
    height: auto; /* 保持宽高比 */
    margin: 0 auto;
    background-size: contain;
}


/* 手机端适配 */
@media screen and (max-width: 768px) {
    .feature-image img {
        width: 400px;  /* 手机端保持全宽 */
        max-width: none;
    }
}

/* 超小屏优化 */
@media screen and (max-width: 400px) {
    .feature-image {
        padding: 0 10px;
    }
    .feature-image img {
        width: 95%;
    }
}


.feature-item:nth-child(3) {
    /* padding-left: 30px; */
    display: flex;
    justify-content: flex-end; /* 内容靠右 */
}

.feature-item:nth-child(3) .feature-text {
    width: 100%; /* 确保文本容器占满宽度 */
    text-align: left; /* 文字左对齐 */
}

@media screen and (max-width: 992px) {
    .about-image {
        min-height: 500px;
    }
    
    .about-image .about-background-gif {
        position: relative;
        height: 500px;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
    }
}

/* 手机响应式 */
@media screen and (max-width: 768px) {
    .features-content {
        flex-direction: column;
    }

    .feature-item {
        flex: 0 0 100%;
    }

    .feature-text h2 {
        font-size: 24px;
    }

    .feature-text p,
    .feature-text ul li {
        font-size: 14px;
    }

    .feature-item:nth-child(3) {
        padding-left: 0;
    }
}

/* 修改后的样式，应用于 GIF 图片 */
.header-wrapper .header-background-gif { /* 使用我们添加的 class */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 使 GIF 覆盖整个容器，可能会裁剪 */
    z-index: 0;       /* 保持在内容和叠加层后面 */
}

/* 添加响应式调整 */
@media screen and (max-width: 768px) {
    .header-wrapper .header-background-gif {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    
    /* 调整 header-wrapper 的高度以匹配 GIF */
    .header-wrapper {
        height: auto;
        min-height: 400px;
    }
}


/* 确保 .header-wrapper 仍然有后备背景色/图，以防 GIF 加载慢 */
.header-wrapper {
    position: relative;
    width: 100%;
    background-color: #003366; /* 示例背景色 */
    overflow: hidden; /* 防止内容溢出 */
}

/* 确保其他元素的 z-index 正确 */
.header-wrapper::before { /* 叠加层 */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 51, 102, 0.3); /* 示例叠加色 */
    z-index: 1; 
}

.header-wrapper header,
.header-wrapper .features { /* 内容 */
    position: relative; 
    z-index: 2; 
}


.header-wrapper {
    position: relative;
    width: 100%;
    /*  height: 999px; 固定高度为999px，替换之前的 min-height: 100vh */
}

.header-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0); /* 使用半透明的蓝色，可以调整透明度 */
    z-index: 1;
}



/* 确保其他内容在遮罩层上方 */
.features, 
.features-content, 
.feature-item {
    z-index: 2;
}

.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: stretch;
    gap: 50px;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-header {
    /* margin-bottom: 30px; */
    text-align: left; /* 改为左对齐 */
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.title {
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-indent: 2em; /* 添加首行缩进，2em 相当于两个汉字的宽度 */
}

.about-image {
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: hidden; /* 防止 scale 导致的溢出 */
}

.about-image video {
    position: absolute;
    top: -1px; /* 向上微调以消除上边的黑线 */
    left: 0;
    width: 100%;
    height: calc(100% + 2px); /* 稍微增加高度 */
    object-fit: cover;
    border-radius: 10px;
    transform: scale(1.02);
}

/* 响应式布局 */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        min-height: 400px;
    }
    
    .about-image video {
        position: relative;
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 40px 0;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

.beian-text {
    text-align: center;
    margin: 10px 0;
}

.beian-link {
    display: inline-block;
    margin-right: 20px;
    color: #333; /* 设置为黑色 */
    text-decoration: none; /* 移除下划线 */
}

.beian-link:hover {
    color: #333; /* 鼠标悬停时保持黑色 */
}

.beian-link img {
    vertical-align: middle;
    margin-right: 5px;
} 

/* 卡片导航样式 */
.card-nav {
    width: 100%;
    display: flex;
    justify-content: space-between; /* 保持或根据需要调整 */
    gap: 20px; /* 保持或根据需要调整间隔 */
    margin-bottom: 30px;
    /* 如果您想底部对齐，可以保留或添加 align-items: flex-end; */
}

.card-nav-item {
    flex: 1; /* 确保是 flex: 1; */
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 0;
}

.card-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.12);
}

.card-nav-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
    position: relative;
}

.card-nav-item.active:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}

/* 内容面板样式 */
.content-panel {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.1);
    padding: 40px;
}

.panel-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.panel-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 智能分析对比表格容器 */
.comparison-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    padding: 0;
    position: relative;
}

/* 智能分析对比表格 */
.styled-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table th, 
.styled-table td {
    padding: 12px 15px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.styled-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    position: sticky;
    top: 0;
}

.styled-table tr:nth-child(even) {
    background-color: rgba(0, 102, 204, 0.03);
}

.styled-table tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.table-note {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

/* 时间线样式 */
.timeline-wrapper {
    position: relative;
    padding-left: 120px;
    /* margin-top: 30px; */
}

.timeline-item {
    position: relative;
    /* padding-bottom: 30px; */
}

.timeline-year {
    position: absolute;
    left: -120px;
    top: 0;
    width: 100px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
}

.timeline-content h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-nav {
        flex-direction: column;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .timeline-wrapper {
        padding: 20px 0;
    }
    
    .timeline-item {
        width: 100%;
        padding: 0 40px;
        margin-bottom: 30px;
        text-align: left; /* 添加左对齐 */
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        right: 0;
        text-align: left; /* 确保左右两侧都左对齐 */
    }
    
    .timeline-item .content {
        width: 100%;
        padding: 15px;
        margin: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .timeline-item .content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: var(--primary-color);
        text-align: left; /* 确保标题左对齐 */
    }
    
    .timeline-item .content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
        text-align: left; /* 确保段落左对齐 */
    }
    
    .timeline-item.left .content::after,
    .timeline-item.right .content::after {
        display: none;
    }
    
    .timeline-wrapper::before {
        left: 20px;
    }
}

/* 新增：时间轴样式 */
.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}
.timeline-wrapper::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0px 40px;
    animation: fadeInUp 0.6s ease forwards;
}
.timeline-item.left {
    left: 40px;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-item .content {
    padding: 20px;
    background-color:#e4f2ff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 90%;
}
.timeline-item.left .content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 12px;
    border-color: transparent transparent transparent white;
}
.timeline-item.right .content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 12px 10px 0;
    border-color: transparent white transparent transparent;
}
.timeline-item:hover .content {
    transform: translateY(-5px);
}
@keyframes fadeInUp {
    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);
    }
}
/* 响应式：手机端改为单列 */
/* 移动设备适配 */
@media (max-width: 768px) {
    .comparison-wrapper {
        margin: 10px 0;
        padding: 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .styled-table {
        font-size: 0.8em;
        margin: 0;
    }
    
    .styled-table th, 
    .styled-table td {
        padding: 8px 10px;
    }
    
    .content-panel {
        padding: 20px;
        overflow: hidden;
    }

    .timeline-wrapper {
        padding: 20px 0;
    }
    
    .timeline-item {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        right: 0;
    }
    
    .timeline-item .content {
        width: 100%;
        padding: 15px;
        margin: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .timeline-item .content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    
    .timeline-item .content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
    }
    
    .timeline-item.left .content::after,
    .timeline-item.right .content::after {
        display: none;
    }
    
    .timeline-wrapper::before {
        left: 20px;
    }
}

/* 超小屏幕设备 */
@media (max-width: 480px) {
    .styled-table {
        font-size: 0.75em;
    }
    
    .styled-table th, 
    .styled-table td {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .card-nav {
        flex-direction: column;
    }
    
    .card-nav-item {
        margin-bottom: 15px;
    }
    
    /* 可选：在移动设备上隐藏某些列 */
    .hide-on-mobile {
        display: none;
    }
}