/* 关于我们页面特定样式 */

/* 自定义CSS变量 */
:root {
    --light-bg: #f8f9fa;
}

/* 页面头部样式 */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
    margin-bottom: 0px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 公司介绍部分样式 */
.about-intro {
    padding: 50px 0;
    background-color: var(--light-bg); /* 区块浅色背景，提升整洁度 */
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* 顶部对齐，确保右侧图片与左侧文字齐头 */
    background: #ffffff; /* 内容卡片白底 */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 30px;
}

.about-text {
    flex: 1;
    display: flex; /* 确保内部从顶部起始对齐 */
    flex-direction: column;
}

.about-text h2 {
    font-size: 2rem; /* 调大标题字号 */
    margin-top: 0; /* 去掉顶部外边距，顶部与右侧图片齐平 */
    margin-bottom: 12px;
}

.about-text p {
    font-size: 1.1rem; /* 调大正文字号 */
    line-height: 1.9;
}

.about-image {
    flex: 1;
    margin-top: calc(2rem + 30px); /* 忽略h2高度：使右侧图片与正文段落对齐 */
}

.about-main-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mission-vision {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mission, .vision {
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
}

.mission h3, .vision h3 {
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 核心价值观部分样式 */
.core-values-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 针对只有3个卡片的情况优化布局 */
.values-grid.three-items {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 三项卡片的特殊样式 */
.three-items .value-card {
    padding: 35px;
}

.three-items .value-icon {
    width: 80px;
    height: 80px;
}

.three-items .value-icon i {
    font-size: 32px;
}

.value-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}


.value-icon i {
    font-size: 30px;
}

.value-card h3 {
    margin: 15px 0;
    color: var(--primary);
}

/* 核心优势段落文本对齐 - 根据语言优化 */
.value-card p {
    text-align: left; /* 默认左对齐，避免英文单词间距过大 */
    line-height: 1.6;
}

/* 中文环境下的两端对齐 */
[lang="zh"] .value-card p {
    text-align: justify;
    text-justify: inter-ideograph; /* 更适合中日韩文字的两端对齐 */
}

/* 移动端优化 - 所有语言都使用左对齐 */
@media (max-width: 768px) {
    .value-card p {
        text-align: left !important;
        text-justify: auto !important;
        line-height: 1.5;
    }
}

/* 服务内容区域样式 */
.services-section {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.service-contact {
    text-align: center;
    margin-top: 40px;
    background: #f0f4f8;
    padding: 30px;
    border-radius: 10px;
}

.service-contact p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.service-contact .contact-btn {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-contact .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 价值承诺区域样式 */
.commitment-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* 公司历程时间线样式 */
.company-history {
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-content .year {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 团队部分样式 */
.team-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    color: var(--primary);
}

.team-info .position {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* 公司荣誉部分样式 */
.honors-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

/* 荣誉资质网格布局 */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 荣誉资质卡片样式 */
.honor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 200px;
}

/* 荣誉资质卡片悬停效果 */
.honor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 荣誉资质图片样式 */
.honor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 荣誉资质图片悬停效果 */
.honor-card:hover img {
    transform: scale(1.05);
}

.snapshots-container {
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.snapshots-slider {
    width: 100%;
}

.snapshots-slider .swiper-slide {
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

/* 轮播分页器样式 */
.snapshots-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
    text-align: center;
}

.snapshots-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    opacity: 0.3;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.snapshots-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* 轮播导航按钮样式 */
.snapshots-slider .swiper-button-next,
.snapshots-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.snapshots-slider .swiper-button-next:hover,
.snapshots-slider .swiper-button-prev:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.snapshots-slider .swiper-button-next {
    right: -20px;
}

.snapshots-slider .swiper-button-prev {
    left: -20px;
}

/* 服务瞬间卡片样式 */
.snapshot-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 280px;
    width: 100%;
    max-width: 300px;
}

.snapshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.snapshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--gold);
}

.snapshot-info {
    padding: 15px;
    text-align: center;
}

.snapshot-info h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 联系部分样式 */
.contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.contact-info {
    flex: 1;
    padding: 30px;
}

.contact-country-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.contact-country-header .flag-icon {
    margin-right: 10px;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-country-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.country-selector {
    margin: 30px 0;
}

.contact-section .country-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-section .country-tab {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-section .country-tab .flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-section .country-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-section .country-tab:hover:not(.active) {
    background: #e9e9e9;
    transform: translateY(-2px);
}

.contact-section .country-content {
    display: none;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 22px;
    color: var(--primary);
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.office-map {
    flex: 1.2;
    min-height: 400px;
    position: relative;
}

.office-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.contact-social {
    margin-top: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-cta {
    text-align: center;
    margin-top: 40px;
}

.contact-cta .contact-btn {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-cta .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        flex-direction: column;
    }
    .about-image { margin-top: 0; } /* 小屏改为顺序堆叠，无需偏移 */
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item::after {
        left: 20px;
        right: auto;
    }
    
    .timeline-item.right::after {
        left: 20px;
    }
    
    .values-grid.three-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .office-map {
        min-height: 300px;
    }
    
    .contact-section .contact-wrapper {
        margin: 20px 15px;
    }
}

/* 移动端宽度修复 - 防止水平滚动条 */
@media (max-width: 768px) {
    /* 确保容器不会超出屏幕宽度 */
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    /* 修复关于内容区域的宽度 */
    .about-content {
        margin: 0;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    /* 修复核心优势区域 */
    .core-values-section {
        padding: 40px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .values-grid.three-items {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    /* 修复价值卡片 */
    .value-card {
        padding: 25px 20px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* 移动端文本优化 */
    .value-card p {
        text-align: left !important;
        text-justify: auto !important;
        line-height: 1.5;
        font-size: 0.95rem;
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    /* 修复时间线 */
    .timeline {
        margin: 30px auto 0;
        padding: 0 10px;
    }
    
    .timeline-item {
        padding: 10px 20px 10px 60px;
        margin-bottom: 30px;
    }
    
    .timeline::after {
        left: 25px;
    }
    
    .timeline-item::after {
        left: 14px;
    }
    
    /* 修复荣誉资质 */
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .honor-card {
        height: 160px;
        padding: 15px;
    }
    
    /* 修复页面头部 */
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* 合并移动端样式，避免重复 */
@media (max-width: 768px) {
    .mission-vision {
        flex-direction: column;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .contact-section .country-tabs {
        gap: 10px;
    }
    
    .contact-section .country-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .contact-info {
        padding: 20px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 576px) {
    /* 进一步优化容器宽度 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .about-content {
        padding: 15px 10px;
        margin: 0;
    }
    
    .team-photo img {
        height: 250px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* 核心优势单列显示 */
    .values-grid, .values-grid.three-items {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
        padding: 0 5px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    /* 小屏幕进一步优化文本显示 */
    .value-card p {
        text-align: left !important;
        text-justify: auto !important;
        line-height: 1.4;
        font-size: 0.9rem;
        word-spacing: normal;
        letter-spacing: normal;
        hyphens: none; /* 禁用连字符 */
    }
    
    /* 荣誉资质优化 */
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 25px;
        padding: 0 5px;
    }
    
    .honor-card {
        height: 140px;
        padding: 10px;
    }
    
    /* 时间线优化 */
    .timeline-item {
        padding: 10px 15px 10px 50px;
        margin-bottom: 25px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item::after {
        left: 9px;
        width: 16px;
        height: 16px;
    }
    
    /* 联系部分优化 */
    .contact-section .country-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .contact-section .country-tab {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .contact-country-header h3 {
        font-size: 1.2rem;
    }
    
    .contact-section .contact-wrapper {
        margin: 15px 5px;
    }
    
    .contact-info {
        padding: 15px;
    }
}

/* 国旗图标兜底样式 */
.flag-icon {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-color: #f5f5f5;
    border-radius: 2px;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.flag-icon-ng {
    background: linear-gradient(to right, #008751 33.3%, white 33.3%, white 66.6%, #008751 66.6%);
}

.flag-icon-gh {
    background: linear-gradient(to bottom, #CE1126 33.3%, #FCD116 33.3%, #FCD116 66.6%, #006B3F 66.6%);
}

.flag-icon-ci {
    background: linear-gradient(to right, #FF8200 33.3%, white 33.3%, white 66.6%, #009E60 66.6%);
}

.flag-icon-sn {
    background: linear-gradient(to right, #00853F 33.3%, #FDEF42 33.3%, #FDEF42 66.6%, #E31B23 66.6%);
}

/* 确保在关于我们页面上悬浮按钮始终可见 */
.floating-social {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}