

/* 简介 */
.company-intro {
    width: 100%;
    padding: 93px 160px;
    background: rgba(255, 255, 255, 1);
}

.intro-header {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.company-name {
    font-size: 38px;
    line-height: 55.02px;
    color: rgba(51, 51, 51, 1);
}

.intro-header > p {
    font-size: 16px;
    line-height: 32px;
    color: rgba(51, 51, 51, 1);
}

.intro-values {
    display: grid;
    gap: 20px;
    margin-top: 57px;
    grid-template-columns: repeat(3, 1fr);
}

.value-item {
    background-image: url(/public/static/index/images/about_bg01@2x.png);
    width: auto;
    height: auto;
    padding: 35px 60px;
    box-sizing: border-box;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background-size: 100% 100%;
    background-position: bottom;
    background-repeat: no-repeat;
}

.value-label {
    color: rgba(33, 33, 33, 1);
    font-size: 24px;
}


.value-text {
    font-size: 20px;
    color: rgba(136, 136, 136, 1);
    margin-top: 20px;
}

/* 组成 */
.container-center {
    padding: 84px 0 80px 160px;
    background: rgba(247, 247, 247, 1);
}

.section-header {
    margin-bottom: 40px;
}

.section-header span {
    font-size: 38px;
    color: rgba(51, 51, 51, 1);
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: rgba(102, 102, 102, 1);
    margin-top: 15px;
    font-weight: 400;
}

.scroll-wrapper {
    width: 100%;
    overflow-x: auto; /* 允许横向滚动 */
    overflow-y: hidden;
    white-space: nowrap; /* 强制子元素不换行 */

    /* 隐藏滚动条 (兼容 Chrome, Safari, Opera) */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    /* 增加一点内边距，防止第一个和最后一个卡片贴边太紧 */
    padding-bottom: 20px;
    margin-bottom: -20px; /* 抵消padding带来的高度影响 */

    /* 平滑滚动效果 */
    scroll-behavior: smooth;
}

/* 隐藏滚动条 (Chrome, Safari, Opera) */
.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* --- 单个卡片样式 --- */
.card {
    display: inline-block;
    margin-right: 24px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 500px;
    height: 600px;
}

.card:hover {
    transform: translateY(-5px);
}

/* 鼠标移入卡片时：显示全部 */
.card:hover .card-desc {
    -webkit-line-clamp: unset;
    max-height: 500px; /* 给一个足够大的值让内容撑开 */
    overflow: visible;
}

.card:last-child {
    margin-right: 0;
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片填满且不变形 */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* 遮罩占据下半部分 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%); /* 渐变黑 */
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 内容靠下对齐 */
}

.tag {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    color: rgba(255, 255, 255, 1);
}

.card-title {
    font-size: 22px;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 12px;
    white-space: normal;
}

.card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 1);
    white-space: initial;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
    transition: max-height 0.3s ease;
}

/* 业务范围 */
.ep-biz-section {
    padding: 93px 160px;
    background: rgba(255, 255, 255, 1);
    position: relative; /* 为绝对定位的按钮提供参考 */
}

.ep-container {

}

/* --- 标题区域 --- */
.ep-biz-header {
    margin-bottom: 40px;
}

.ep-main-title {
    font-size: 38px;
    font-weight: 700;
    color: rgba(18, 18, 18, 1);
}

.ep-sub-title {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    font-weight: 400;
}

.ep-biz-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

/* --- 单个卡片样式 --- */
.ep-biz-card {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(247, 247, 247, 1);
}

/* 图片区域 */
.ep-card-visual {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.ep-card-visual img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 保持图片比例填充 */
}

/* 文字内容区域 */
.ep-card-content {
    padding: 27px 40px;
}

.ep-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin-bottom: 24px;
}

.ep-list-grid {
    margin-top: 21px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 16px;
    column-gap: 10px;
    font-size: 18px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
}

.ep-list-grid li {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* --- 回到顶部按钮 --- */
.ep-back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #0056b3; /* 深蓝色背景 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0; /* 默认隐藏 */
    visibility: hidden;
}

.ep-back-top.show {
    opacity: 1;
    visibility: visible;
}

.ep-back-top:hover {
    background-color: #004494;
    transform: translateY(-3px);
}

.ep-back-top svg {
    stroke: #fff;
    width: 24px;
    height: 24px;
}


/* ============================================
   简介 & 组成 & 业务范围 - 移动端适配
   ============================================ */

/* ----- 1024px 以下 (平板) ----- */
@media screen and (max-width: 1024px) {
    /* 简介 */
    .company-intro {
        height: auto;
        padding: 60px 40px;
    }

    .company-name {
        font-size: 30px;
        line-height: 42px;
    }

    .intro-values {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .value-item {
        width: calc(50% - 8px);
        height: auto;
        min-height: 140px;
        padding: 25px 30px;
    }

    /* 组成 */
    .container-center {
        padding: 50px 20px 50px 40px;
    }

    .section-header span {
        font-size: 30px;
    }

    .card {
        width: 400px;
        height: 500px;
    }

    /* 业务范围 */
    .ep-biz-section {
        padding: 60px 40px;
    }

    .ep-main-title {
        font-size: 30px;
    }

    .ep-biz-grid {
        flex-direction: column;
        gap: 20px;
    }

    .ep-biz-card {
        width: 100%;
    }

    .ep-card-visual {
        height: auto;
    }

    .ep-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- 768px 以下 (手机) ----- */
@media screen and (max-width: 768px) {
    /* ===== 简介 ===== */
    .company-intro {
        padding: 40px 20px;
        height: auto;
    }

    .intro-header {
        gap: 0.8rem;
    }

    .company-name {
        font-size: 24px;
        line-height: 34px;
    }

    .intro-header > p {
        font-size: 14px;
        line-height: 26px;
    }

    .intro-values {
        flex-direction: column;
        gap: 14px;
        margin-top: 30px;

        display: flex;
    }

    .value-item {
        width: 100%;
        height: auto;
        min-height: 120px;
        padding: 20px 24px;
        background-size: cover;
    }

    .value-label {
        font-size: 20px;
    }

    .value-text {
        font-size: 16px;
        margin-top: 12px;
    }

    /* ===== 组成 (横向滚动卡片) ===== */
    .container-center {
        padding: 40px 0 40px 20px;
    }

    .section-header {
        margin-bottom: 24px;
        padding-right: 20px;
    }

    .section-header span {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
        margin-top: 8px;
    }

    .scroll-wrapper {
        padding-bottom: 12px;
        margin-bottom: -12px;
    }

    .card {
        width: 300px;
        height: 420px;
        margin-right: 16px;
        border-radius: 12px;
    }

    .card:last-child {
        margin-right: 20px;
    }

    .card-overlay {
        height: 55%;
        padding: 20px;
    }

    .tag {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .card-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    /* ===== 业务范围 ===== */
    .ep-biz-section {
        padding: 40px 20px;
    }

    .ep-biz-header {
        margin-bottom: 24px;
    }

    .ep-main-title {
        font-size: 24px;
    }

    .ep-sub-title {
        font-size: 14px;
        margin-top: 8px;
    }

    .ep-biz-grid {
        flex-direction: column;
        gap: 16px;
    }

    .ep-biz-card {
        width: 100%;
        border-radius: 12px;
    }

    .ep-card-visual {
        height: auto;
    }

    .ep-card-content {
        padding: 18px 20px 22px;
    }

    .ep-card-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .ep-list-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 10px;
        column-gap: 8px;
        margin-top: 12px;
    }

    .ep-list-grid li {
        font-size: 13px;
        line-height: 1.4;
    }

    /* ===== 回到顶部按钮 ===== */
    .ep-back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .ep-back-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ----- 480px 以下 (小屏手机) ----- */
@media screen and (max-width: 480px) {
    /* ===== 简介 ===== */
    .company-intro {
        padding: 30px 16px;
    }

    .company-name {
        font-size: 20px;
        line-height: 28px;
    }

    .intro-header > p {
        font-size: 13px;
        line-height: 24px;
    }

    .value-item {
        padding: 16px 18px;
        min-height: 100px;
    }

    .value-label {
        font-size: 17px;
    }

    .value-text {
        font-size: 14px;
        margin-top: 8px;
    }

    /* ===== 组成 ===== */
    .container-center {
        padding: 30px 0 30px 16px;
    }

    .section-header span {
        font-size: 20px;
    }

    .section-header p {
        font-size: 13px;
    }

    .card {
        width: 260px;
        height: 360px;
        margin-right: 12px;
        border-radius: 10px;
    }

    .card:last-child {
        margin-right: 16px;
    }

    .card-overlay {
        padding: 16px;
        height: 50%;
    }

    .tag {
        font-size: 12px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    /* ===== 业务范围 ===== */
    .ep-biz-section {
        padding: 30px 16px;
    }

    .ep-main-title {
        font-size: 20px;
    }

    .ep-sub-title {
        font-size: 13px;
    }

    .ep-card-visual {
        height: auto;
    }

    .ep-card-content {
        padding: 14px 16px 18px;
    }

    .ep-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .ep-list-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 8px;
        column-gap: 6px;
        font-size: 12px;
    }

    .ep-list-grid li {
        font-size: 12px;
    }

    /* ===== 回到顶部按钮 ===== */
    .ep-back-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .ep-back-top svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   额外优化 - 触摸友好
   ============================================ */
@media (max-width: 768px) {
    /* 卡片点击反馈 */
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .ep-biz-card:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }

    /* 列表项触摸优化 */
    .ep-list-grid li {
        padding: 4px 0;
        -webkit-tap-highlight-color: rgba(0, 45, 176, 0.05);
    }

    /* 值卡片触摸优化 */
    .value-item:active {
        opacity: 0.9;
        transition: opacity 0.15s ease;
    }
}

/* ============================================
   滚动提示 (可选) - 指示横向可滚动
   ============================================ */
@media (max-width: 768px) {
    .scroll-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #999;
        padding-right: 20px;
        margin-bottom: 12px;
        justify-content: flex-end;
        animation: pulse-hint 2s ease-in-out infinite;
    }

    .scroll-hint::after {
        content: '→';
        font-size: 16px;
        animation: slide-hint 1.5s ease-in-out infinite;
    }

    @keyframes pulse-hint {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }

    @keyframes slide-hint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(6px); }
    }
}

/* ============================================
   辅助类 - 移动端显示/隐藏
   ============================================ */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}