/* ==========================================================================
   1. 全局重置与基础样式 (Reset & Base)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* 防止因动画出现的水平滚动条 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 通用容器 */
.container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px; /* 增加内边距防止小屏贴边 */
}

/* 颜色变量定义 */
:root {
    --primary-blue: #2c6da8;
    --light-bg: #f9fbfd;
    --text-gray: #666;
    --border-color: #eee;
}

/* ==========================================================================
   2. Hero Banner (顶部大图)
   ========================================================================== */
.hero-banner {
    height: 400px;
    background: url('../images/about/banner-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 黑色遮罩，让文字更清晰 */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 1000px;
    justify-content: space-between;
    position: relative;
    z-index: 2; /* 确保内容在遮罩之上 */
}


.hero-text {
    flex: 1;
    padding-left: 60px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.95;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. 面包屑与简介 (Intro)
   ========================================================================== */
.breadcrumbs {
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.section-title {
    text-align: center;
    margin: 70px 0 50px;
    position: relative;
}

.section-title h2 {
    font-size: 34px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

/* 标题下方的装饰线 */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.intro-text {
    text-align: justify; /* 两端对齐更整齐 */
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--text-gray);
    font-size: 16.5px;
    line-height: 1.9;
    text-indent: 2em;
    
    /* 增加段落间距 */
    p {
        margin-bottom: 20px;
    }
    
    /* 最后一个段落不需要底部间距 */
    p:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   4. 使命与愿景 (Mission & Vision)
   ========================================================================== */
.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px;
}

.mv-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* 顶部装饰条 */
.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 109, 168, 0.15);
}

.mv-card:hover::before {
    transform: scaleX(1);
}

.mv-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

.mv-card p {
    color: var(--text-gray);
    font-size: 16.5px;
    line-height: 1.9;
}

/* ==========================================================================
   5. 我们的目标 (Goals)
   ========================================================================== */
.goals-section {
    padding-bottom: 80px;
}

.goals-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.goal-item {
    flex: 1;
    background: #fff;
    padding: 40px 25px;
    border-radius: 10px;
    position: relative;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    overflow: hidden;
}

.goal-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    background: #fff;
}

.goal-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.goal-item:hover .goal-icon {
    transform: scale(1.1);
}

.goal-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}

.goal-item p {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 装饰用的引号 */
.quote-decor {
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-size: 80px;
    color: #f2f2f2;
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   6. 我们的价值观 (Values)
   ========================================================================== */
.values-section {
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed; /* 视差滚动效果 */
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* 遮罩层 */
.values-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.values-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.values-icons {
    display: flex;
    justify-content: center;
    gap: 80px; /* 间距调整 */
    margin-top: 60px;
    flex-wrap: wrap;
}

.value-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 15px 30px rgba(44, 109, 168, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画 */
    cursor: default;
}

.value-circle:hover {
    transform: translateY(-10px) scale(1.05);
    background: #255d91;
}

.value-circle img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    object-fit: contain;
}

.value-circle i {
    font-size: 38px;
    margin-bottom: 8px;
}

.value-circle span {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ==========================================================================
   7. 资质轮播 (Certificates) - 重点美化部分
   ========================================================================== */
.certs-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: #f8f9fa; /* 浅灰背景突出白卡片 */
    overflow: hidden;
}

/* 底部波浪纹理 */
.certs-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* 使用SVG做底纹 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f8f9fa' opacity='0.5' /%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43c54.52-5.13,109.33,9.62,162.31,25.81V0Z' fill='%23ffffff' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    z-index: 1;
}

.cert-swiper {
    position: relative;
    width: 100%;
    margin-top: 40px;
    z-index: 2;
}

.swiper-container {
    width: 100%;
    padding: 20px 0 60px; /* 留出底部阴影和滚动条空间 */
    overflow: visible !important; /* 允许阴影超出容器 */
}

/* 轮播滑块样式 */
.swiper-slide {
    /* 核心修改：固定宽度，配合JS的 'auto' 模式 */
    width: 380px; 
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* 非激活状态样式 */
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s ease;
    filter: grayscale(80%); /* 未选中的变灰 */
}

/* 激活状态样式 (中间的图片) */
.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
    z-index: 10;
}

/* 证书卡片容器 */
.cert-img {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    /* 柔和阴影 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
    border: 1px solid #fff;
    margin-bottom: 20px;
    /* 保持 4:3 比例 */
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 激活状态下悬停效果 */
.swiper-slide-active .cert-img:hover {
    box-shadow: 0 20px 40px rgba(44, 109, 168, 0.15);
    transform: translateY(-5px);
}

/* 占位符/图片包裹层 */
.cert-placeholder {
    width: 100%;
    height: 100%;
    background: #fbfbfb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保证证书不被裁剪 */
    transition: transform 0.5s ease;
}

/* 图片微放大效果 */
.swiper-slide-active .cert-img:hover img {
    transform: scale(1.05);
}

/* 证书名称 */
.cert-name {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* 仅激活状态显示文字 */
.swiper-slide-active .cert-name {
    opacity: 1;
    transform: translateY(0);
}

/* 轮播导航按钮 */
.cert-prev, .cert-next {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cert-prev:hover, .cert-next:hover {
    background: var(--primary-blue);
    color: #fff;
}

.cert-prev::after, .cert-next::after {
    font-size: 20px;
    font-weight: bold;
}

/* 滚动条美化 */
.swiper-scrollbar {
    background: #e0e0e0 !important;
    height: 4px !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 200px !important; /* 限制滚动条长度 */
    border-radius: 2px;
}

.swiper-scrollbar-drag {
    background: var(--primary-blue) !important;
    border-radius: 2px;
}

/* ==========================================================================
   8. 创始人介绍 (Founder - 如需保留)
   ========================================================================== */
.founder-section {
    background-color: #fff;
    padding: 80px 0;
}

.founder-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.founder-photo {
    flex: 0 0 400px;
    height: 500px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.founder-info {
    flex: 1;
    padding-top: 20px;
}

.founder-name {
    font-size: 36px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 700;
}

.founder-title {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 30px;
    display: block;
}

.honor-list {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.honor-item {
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: baseline;
}

.honor-item::before {
    content: "•";
    color: var(--primary-blue);
    font-size: 20px;
    margin-right: 12px;
}

/* ==========================================================================
   9. 响应式适配 (Media Queries)
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .container, .hero-content, .values-container {
        width: 100%;
        padding: 0 20px;
    }
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .hero-img {
        display: none; /* 小屏隐藏大图 */
    }
    .hero-text {
        padding-left: 0;
    }
}

@media screen and (max-width: 768px) {
    /* 证书轮播手机适配 */
    .swiper-slide {
        width: 280px; /* 手机上卡片变窄 */
    }
    .cert-img {
        padding: 10px;
    }
    
    /* 目标卡片变为单列 */
    .goals-grid {
        flex-direction: column;
    }
    .goal-item {
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* 使命愿景变为单列 */
    .mission-vision {
        flex-direction: column;
    }
    
    /* 价值观变为两列 */
    .values-icons {
        gap: 30px;
    }
    .value-circle {
        width: 100px;
        height: 100px;
    }
    .value-circle i {
        font-size: 28px;
    }
    .value-circle span {
        font-size: 14px;
    }
}