/* --- Who We Are Section 样式 --- */

/* 顶部标题样式：特粗大写 */

    /* 1. 图片填充控制 */
.object-fit-cover {
    object-fit: cover; /* 关键：保持比例填满容器 */
    object-position: center; /* 居中裁剪 */
    min-height: 400px; /* 移动端最小高度 */
}

/* 2. 数据统计卡片 */
.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #fff !important; /* 悬停变白 */
}
.stat-item h2 {
    font-family: 'Arial', sans-serif; /* 或者你网站的主字体 */
    color: #0d6efd; /* 使用主色调 */
}

/* 3. 证书徽章样式 */
.cert-badge {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: default;
}
.cert-badge:hover {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.1);
    transform: scale(1.05);
}
.cert-badge span {
    font-size: 0.9rem;
    color: #555;
}

.who-we-are-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 2rem;
    font-family: 'Arial Black', sans-serif; /* 确保字体够粗 */
}
     /* --------------------------------------
        证书图标美化容器
        -------------------------------------- */
 .cert-box {
     width: 90px;           /* 统一宽度 */
     height: 60px;          /* 统一高度 */
     background: linear-gradient(135deg, #0d6efd, #0a58ca); /* 漂亮的蓝色渐变背景 */
     border-radius: 8px;    /* 圆角 */
     display: flex;
     align-items: center;   /* 垂直居中 */
     justify-content: center; /* 水平居中 */
     box-shadow: 0 4px 6px rgba(13, 110, 253, 0.15); /* 柔和的蓝色阴影 */
     transition: all 0.3s ease;
     padding: 8px;          /* 内部留白，防止图标顶边 */
 }

/* 悬停效果：上浮 + 阴影加深 */
.cert-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.25);
}

/* 图片样式：限制最大尺寸，保持白色 */
.cert-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 双重保险：强制确保图片是纯白的 */
}

/* --------------------------------------
   数据统计美化
   -------------------------------------- */
.stats-container {
    background-color: #f8f9fa; /* 浅灰背景 */
    border-left: 4px solid #0d6efd; /* 左侧蓝色装饰线 */
}

.stat-number {
    font-family: 'Arial', sans-serif; /* 使用简洁的字体 */
    color: #0d6efd; /* 品牌蓝色 */
    line-height: 1;
}

/* 图片外框效果：模拟白色相框和柔和阴影 */
.about-image-card {
    background: #fff;
    padding: 12px; /* 白色边框厚度 */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* 柔和的大阴影 */
    transition: transform 0.3s ease;
}

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

.about-image-card img {
    border-radius: 6px; /* 内部图片也带一点圆角 */
    width: 100%;
    display: block;
}

/* 右侧文字排版 */
.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify; /* 两端对齐，看起来更专业 */
}

/* 移动端适配 */
@media (max-width: 991px) {
    .who-we-are-title {
        font-size: 2.5rem;
    }

    .about-text-content {
        padding-top: 20px;
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.company-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.company-intro-text {
    flex: 1;
}

.company-intro-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.company-intro-image {
    flex: 1;
    max-width: 400px;
}

.company-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon,
.value-item:hover .value-title {
    color: white;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.value-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.value-item:hover .value-description {
    color: rgba(255, 255, 255, 0.9);
}

.team-section {
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 4px solid var(--accent-color);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.team-position {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 2rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 毛玻璃光泽效果 */
.card-glass-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    transform: rotate(-45deg);
    pointer-events: none;
}

.year-tag {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 45, 90, 0.05);
    position: absolute;
    top: 10px;
    z-index: 0;
    transform: translateZ(20px); /* 3D 浮动 */
}

.card-content {
    position: relative;
    z-index: 1;
    transform: translateZ(50px); /* 让文字浮起来 */
}

.card-content i {
    font-size: 3rem;
    color: #00c6ff;
    margin-bottom: 20px;
    display: block;
}

.card-content h4 {
    color: #002d5a;
    font-weight: 800;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 颜色变体 */
.card-blue {
    background: linear-gradient(145deg, #002d5a, #004a8f);
}

.card-blue .card-content i, .card-blue .card-content h4, .card-blue .card-content p {
    color: #fff;
}

.card-blue .year-tag {
    color: rgba(255, 255, 255, 0.1);
}

.card-highlight {
    background: linear-gradient(145deg, #00c6ff, #0072ff);
    color: #fff;
}

.card-highlight .card-content i, .card-highlight .card-content h4, .card-highlight .card-content p {
    color: #fff;
}

/* Swiper 箭头样式美化 */
.swiper-button-next, .swiper-button-prev {
    color: #002d5a;
}

/* 画廊容器背景 */
.gallery-section {
    padding: 80px 0;
    background-color: #f9fafb; /* 极淡的灰背景 */
}

.gallery-header {
    margin-bottom: 50px;
    text-align: center;
}

/* Swiper 容器调整 */
.swiper-gallery {
    width: 100%;
    padding-bottom: 50px; /* 给分页器留位置 */
}

.swiper-slide {
    /* 移除之前的固定宽度和3D设置 */
    height: 400px; /* 统一高度 */
    border-radius: 12px;
    overflow: hidden;
    position: relative; /* 用于定位文字遮罩 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 悬停时卡片轻微上浮 */
.swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片填满且不因拉伸变形 */
    transition: transform 0.6s ease;
}

/* 悬停时图片缓慢放大 */
.swiper-slide:hover img {
    transform: scale(1.1);
}

/* 文字遮罩层（默认隐藏，悬停显示，或者一直半透明显示） */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px;
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.slide-caption h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.slide-caption p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* 分页器颜色 */
.swiper-pagination-bullet-active {
    background-color: #0d6efd !important;
    width: 25px;
    border-radius: 4px;
    transition: width 0.3s;
}


/* 位置微调：上方的点 */
.item-up {
    top: 15%;
    transform: translateX(-50%);
}

.item-up .milestone-content {
    margin-bottom: 10px;
}

/* 位置微调：下方的点 */
.item-down {
    bottom: 15%;
    transform: translateX(-50%);
}

.item-down .milestone-content {
    margin-top: 10px;
}

/* 發展歷程視覺化樣式 */
.history-wire-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    overflow-x: hidden;
    padding-bottom: 80px !important;
}

.timeline-visual-wrapper {
    position: relative;
    padding: 100px 0;
    margin-top: 50px;
}

/* 線束背景橫條 */
.wire-harness-line {
    position: absolute;
    top: 135px; /* 對齊圓球中心 */
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to bottom, #d1d1d1 0%, #ffffff 50%, #d1d1d1 100%);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

/* 模擬線束中的彩色細線 */
.wire-harness-line::before {
    content: "";
    position: absolute;
    top: 2px; bottom: 2px; left: 0; right: 0;
    background: repeating-linear-gradient(
            transparent,
            transparent 2px,
            #ff4d4d 2px, #ff4d4d 4px,
            #4d94ff 4px, #4d94ff 6px,
            #ffdb4d 6px, #ffdb4d 8px
    );
    opacity: 0.6;
}

/* 兩端的接頭裝飾 */
.wire-connector {
    position: absolute;
    width: 40px;
    height: 30px;
    background: #333;
    top: -9px;
    border-radius: 4px;
}
.wire-connector.left { left: -10px; }
.wire-connector.right { right: -10px; border-radius: 50% 4px 4px 50%; }

/* 時間軸容器 */
.timeline-items-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-sphere-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

/* 圓球樣式 */
.sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15), inset -5px -5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: default;
}

.sphere-wrap:hover .sphere {
    transform: scale(1.1) rotate(5deg);
}

/* 下方箭頭 */
.sphere-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #2d4a86; /* 默認色 */
    margin: 10px auto;
}

/* 不同階段的顏色細節 (對應圖片) */
.color-grey .sphere { background: radial-gradient(circle at 30% 30%, #e0e0e0, #9e9e9e); color: #333; }
.color-dark-blue .sphere { background: radial-gradient(circle at 30% 30%, #2c3e50, #000000); }
.color-blue .sphere { background: radial-gradient(circle at 30% 30%, #3498db, #2980b9); }
.color-cyan .sphere { background: radial-gradient(circle at 30% 30%, #00bcd4, #00838f); }
.color-light-blue .sphere { background: radial-gradient(circle at 30% 30%, #adc9ff, #5d87ff); }

/* 文字內容 */
.timeline-content {
    margin-top: 15px;
}
.timeline-content h5 {
    font-size: 1rem;
    font-weight: bold;
    color: #2d4a86;
    margin-bottom: 5px;
}
.timeline-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* How Do We Work - Professional Styles */
.process-section {
    background-color: #ffffff;
}

.header-line {
    width: 80px;
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
}

.process-item {
    margin-bottom: 100px !important;
}

.process-img-wrapper {
    position: relative;
    z-index: 1;
}

.process-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-item:hover .process-img-wrapper img {
    transform: scale(1.02);
}

/* 数字标签样式 */
.step-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: #0d6efd;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    z-index: 2;
    border: 5px solid #fff;
}

/* 翻转布局时数字标签的位置 */
.flex-lg-row-reverse .step-badge {
    right: auto;
    left: -20px;
}

.process-features i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.process-features .col-sm-6 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tracking-widest {
    letter-spacing: 0.2rem;
}
/* 标题字体样式 (Montserrat) */
.section-title-premium {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #212529;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.section-title-premium::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1b63d3, #00d4ff);
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #6c757d;
    letter-spacing: 1px;
    margin-top: -15px;
    margin-bottom: 50px;
}

/* 图片区域优化 */
.process-img-wrapper img {
    width: 100%;
    height: 380px; /* 稍微缩短高度，使比例更协调 */
    object-fit: cover;
    border-radius: 1.5rem;
}

/* 数字角标在 4:8 布局下的位置微调 */
.step-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: #1b63d3;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(27, 99, 211, 0.2);
}

.flex-lg-row-reverse .step-badge {
    right: auto;
    left: -15px;
}

/* 文字行间距优化，适合大量文字阅读 */
.text-secondary {
    line-height: 1.8;
    text-align: justify;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .process-img-wrapper img {
        height: 300px;
    }
    .process-item {
        margin-bottom: 60px !important;
        text-align: center;
    }
    .step-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: -10px;
        right: 10px;
    }
    .process-features .row {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* 響應式處理 */
@media (max-width: 991px) {
    .timeline-items-container {
        flex-wrap: wrap;
    }
    .timeline-sphere-item {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }
    .wire-harness-line {
        display: none; /* 手機版隱藏橫線避免視覺混亂 */
    }
}

@media (max-width: 576px) {
    .timeline-sphere-item {
        flex: 0 0 100%;
    }
}
/*
   仅在屏幕宽度大于 992px (电脑/平板横屏) 时生效
   手机端保持单列或双列，否则字太小无法阅读
*/
@media (min-width: 992px) {
    .values-grid {
        display: grid;
        /* 核心代码：强制分为5列，每列宽度相等 */
        grid-template-columns: repeat(5, 1fr);
        /* 调整间距：原来可能很大，现在设为较小的 10px 或 15px */
        gap: 12px;
        align-items: stretch; /* 让所有卡片高度一致 */
    }

    /* 整体缩小卡片尺寸 */
    .value-item {
        /* 减小卡片内部边距 */
        padding: 20px 10px;
    }

    /* 缩小图标 */
    .value-icon i {
        font-size: 2rem; /* 原来通常是 2.5rem 或 3rem */
        margin-bottom: 10px;
        color: var(--accent-color); /* 保持你的主题色 */
    }

    /* 缩小标题 */
    .value-title {
        font-size: 1.1rem; /* 约 18px */
        margin-bottom: 8px;
        font-weight: 700;
    }

    /* 缩小描述文字 */
    .value-description {
        font-size: 0.85rem; /* 约 13.6px，稍微缩小 */
        line-height: 1.4;
        color: #666;
    }
}

@media (max-width: 768px) {
    .company-intro {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .company-intro-image {
        max-width: 100%;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}