/* ==========================================================================
   ABOUT PAGE (detail_about.html)
   依赖：style.css（变量、头部、页脚）、partner.css（page-hero / page-breadcrumb）
   内容区最大宽度 1520px 居中，断点：1520 / 1200 / 992 / 768 / 576
   ========================================================================== */

/* ---------- hero ---------- */
.about-hero { height: 420px; }

/* ---------- 同级页签（About Us / Certifications / Team & Exhibitions / Contact Us） ---------- */
.about-tabs {
    background: #F2F2F2;
    border-bottom: 1px solid #eceef1;
}
.about-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 45px;
}
.about-tab {
    display: inline-block;
    padding: 20px 0;
    font-size: var(--fs-body);
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}
.about-tab:hover { color: var(--red); }
.about-tab.is-active {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ---------- 通用标题 ---------- */
.about-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
}

/* ---------- 公司简介（文案 + 图片 + 关键数据 + 车间实景） ---------- */
.about-intro { padding: 70px 0 70px; }
.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 620px;
    gap: 45px;
    align-items: stretch;
}
.about-intro-text {
    display: flex;
    flex-direction: column;
}
.about-copy {
    margin-top: 24px;
    font-size: var(--fs-body);
}
.about-copy,
.about-copy p {
    color: #14191f;
}
.about-intro-photo {
    align-self: start;
    overflow: hidden;
    background: #e9ebee;
}
/* 图片高度按设计稿固定，避免被左栏文案高度拉伸 */
.about-intro-photo img {
    width: 100%;
    height: 672px;
    object-fit: cover;
}
.about-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* 统计行贴近图片底部，与设计稿位置一致 */
    margin-top: 90px;
}
.about-stats li { position: relative; }
/* 第 2~4 项左侧各一条竖线；--sep-offset 由脚本按实际间隔计算，确保落在间隔正中 */
.about-stats li + li::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: calc(-1 * var(--sep-offset, 24px));
    width: 1px;
    background: #e3e5e8;
}
.about-stats strong {
    display: block;
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}
.about-stats span {
    display: block;
    margin-top: 6px;
    font-size: var(--fs-lead);
    color: #14191f;
}
.about-copy--full { margin-top: 55px; }

/* ---------- 公司简介富文本（后台 richText1 输出） ---------- */
.about-rich {
    margin-top: 24px;
    font-size: var(--fs-body);
    line-height: 1.78;
    color: #14191f;
    overflow-wrap: break-word;
}
/* 富文本内连续块级元素统一间距，避免段落贴合 */
.about-rich > * + * { margin-top: 18px; }
.about-rich h3 {
    margin-top: 32px;
    font-size: var(--fs-h3);
    font-weight: 800;
    color: var(--ink);
}
.about-rich h4 {
    margin-top: 26px;
    font-size: var(--fs-h5);
    font-weight: 700;
    color: var(--ink);
}
/* 富文本列表样式（零特异性，避免影响内部已有结构的列表） */
.about-rich :where(ul, ol) { padding-left: 22px; }
.about-rich :where(ul) { list-style: disc; }
.about-rich :where(ol) { list-style: decimal; }
/* richText1 中沿用的结构化列表（关键数据、车间图）保持无项目符号 */
.about-rich .about-stats,
.about-rich .about-works { padding-left: 0; list-style: none; }
.about-rich a { color: var(--red); }
/* 富文本图片自适应（零特异性，避免覆盖内部结构化区块的固定高度） */
.about-rich :where(img) {
    max-width: 100%;
    height: auto;
}
/* 富文本表格在小屏可横向滚动，避免撑破容器 */
.about-rich table {
    width: 100%;
    border-collapse: collapse;
}
.about-rich th,
.about-rich td {
    padding: 8px 12px;
    border: 1px solid #e3e5e8;
    text-align: left;
}

/* 车间实景：四列 */
.about-works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.about-works img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9ebee;
}

/* ---------- 发展历程（浅灰底 + 时间线 + 进度条） ---------- */
.about-timeline {
    background: #F6F7F9;
    padding: 70px 0 85px;
}
.about-timeline-viewport { margin-top: 40px; }
.about-timeline-track {
    display: grid;
    /* 每屏展示 3 条，年份数量超过 3 条时横向滚动（由左右按钮控制） */
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 120px) / 3);
    gap: 0 60px;
    overflow-x: auto;
    scrollbar-width: none;
}
.about-timeline-track::-webkit-scrollbar { display: none; }
.about-year h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--red);
}
.about-year ul { margin-top: 22px; }
.about-year li {
    position: relative;
    padding-left: 25px;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #14191f;
}
.about-year li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #14191f;
}
.about-year li + li { margin-top: 20px; }

.about-timeline-nav { margin-top: 62px; }
.about-progress {
    position: relative;
    display: block;
    height: 2px;
    background: #e3e5e8;
}
.about-progress i {
    position: absolute;
    left: 0;
    top: 0;
    /* 初始为 0，随左右切换按滚动进度向右延伸（由页面 JS 计算） */
    width: 0;
    height: 2px;
    background: var(--red);
}
.about-nav-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.about-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    transition: opacity .25s ease;
}
/* 箭头按钮改用设计稿图片，图片自带圆形边框 */
.about-nav-btn img { width: 44px; height: 44px; object-fit: contain; }
.about-nav-btn:hover { opacity: .8; }
.about-nav-btn:disabled { opacity: .35; cursor: default; }

/* ---------- 制造实力（深色大图 + 白色三列卡片） ---------- */
.about-mfg {
    position: relative;
    padding: 0px 0 70px;
    color: #fff;
    background-color: #F6F7F9;
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
}
.about-mfg > .container {
    position: relative;
    z-index: 2;
}
.about-mfg-head{
    padding-top: 65px;
}
.about-mfg-head h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.about-mfg-head p {
    margin-top: 10px;
    font-size: var(--fs-h3);
    color: rgba(255, 255, 255, .92);
}
.about-mfg-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 85px;
    background: #fff;
    color: var(--ink);
}
.about-mfg-card {
    position: relative;
    padding: 75px 45px;
    border-left: 1px solid #eceef1;
}
.about-mfg-card:first-child { border-left: 0; }
.about-icon {
    width: 44px;
    height: 44px;
    color: #14191f;
}
.about-mfg-card h3 {
    margin-top: 15px;
    font-size: var(--fs-h4);
    font-weight: 700;
}
.about-link {
    display: inline-block;
    margin-top: 8px;
    font-size: var(--fs-body);
    color: #14191f;
}
.about-link:hover { color: var(--red); }
.about-mfg-card p {
    margin-top: 30px;
    margin-bottom: 140px;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #4b5055;
}
.about-card-num {
    font-size: var(--fs-body);
    color: #b9bdc2;
    letter-spacing: 4px;
}
.about-card-num em {
    font-style: normal;
    font-size: var(--fs-h3);
    color: var(--red);
}

/* ---------- 工厂图库（大图轨道 + 缩略图） ---------- */
.about-gallery { padding: 70px 0 66px; }
.about-gallery-stage { position: relative; }
/* 视口隐藏溢出，轨道横向滚动，切换时平滑滑到对应大图 */
.about-gallery-view {
    overflow: hidden;
    scroll-behavior: smooth;
    margin-bottom: 16px;
}
.about-gallery-track {
    display: flex;
    gap: 16px;
}
/* 每屏展示约 1.4 张，露出下一张的一部分，提示可继续滑动 */
.about-gallery-slide {
    flex: 0 0 71.428%;
    height: 485px;
    overflow: hidden;
    background: #e9ebee;
}
.about-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
    transition: opacity .25s ease, transform .25s ease;
}
.about-gallery-nav img { display: block; width: auto; height: 80px; object-fit: contain; }
.about-gallery-nav.is-prev { left: 14px; }
.about-gallery-nav.is-next { right: 14px; }
.about-gallery-nav:hover { opacity: .8; }
.about-gallery-nav:active { transform: translateY(-50%) scale(.94); }

.about-thumbs {
    display: grid;
    /* 列数按实际图集数量自适应：auto-fit 会把空列收掉，缩略图自动铺满整行 */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 34px;
}
.about-thumb {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
}
.about-thumb img {
    display: block;
    width: 100%;
    height: 122px;
    object-fit: cover;
}
/* 下划线：不再贴在图片下沿，而是距离图片 14px（122px 图高 + 14px） */
.about-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 136px;
    height: 2px;
    transition: background-color .25s ease;
}
.about-thumb span {
    display: block;
    /* 下划线下方再留 10px，避免文字压线 */
    margin-top: 26px;
    font-size: var(--fs-h4);
    color: #14191f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .25s ease;
}
.about-thumb:hover::after { background: rgba(200, 16, 46, .45); }
.about-thumb.is-active::after { background: var(--red); }
.about-thumb.is-active span { color: var(--ink); }

/* ---------- 研发与生产基地（左图右文 + 数据卡片） ---------- */
.about-rd { 
    background-image: url('/assets/addons/ldcms/en/images/111.jpg');
    background-repeat: no-repeat;
    background-position: left 75px;
    background-size: 55% auto;
    background-color: #F6F7F9; 
    padding: 75px 0 60px; 
}
.about-rd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 670px;
    align-items: start;
    padding-top: 190px;
}
.about-rd-photo { overflow: hidden; background: #e9ebee; }
.about-rd-photo img {
    width: 100%;
    height: 740px;
    object-fit: cover;
}
.about-rd-text {
    padding: 0px 15px 155px 45px;
    box-sizing: border-box;
}
.about-rd-sub {
    margin-top: 14px;
    font-size: var(--fs-lead);
    color: var(--ink);
}
.about-rd-cards-wrap {
    background: var(--gray-bg);
}
.about-rd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
    border: 1px solid #E2E4E8;
    border-right: none;
}
.about-rd-card {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 225px;
    padding: 36px 40px;
    background: #fff;
    border-right: 1px solid #E2E4E8;
}
.about-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 126px;
    height: 126px;
    border: 1px solid #eceef1;
    border-radius: 50%;
    overflow: hidden;
    color: #14191f;
}
/* 奖章图标改用设计稿图片（126×126 方形，圆形裁剪避免白底外露） */
.about-medal img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-rd-card strong {
    display: block;
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
}
.about-rd-card sup {
    position: relative;
    top: -.5em;
    font-size: var(--fs-h3);
    color: var(--red);
}
.about-rd-card span {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-h4);
    color: #14191f;
}
.about-dash {
    display: block;
    width: 18px;
    height: 2px;
    margin-top: 40px;
    background: var(--red);
}

/* ---------- 企业新闻（四宫格，其中一格为深色图片卡） ---------- */
.about-news { padding: 70px 0 70px; }
.about-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    border-right: 1px solid #eceef1;
    border-bottom: 1px solid #eceef1;
}
.about-news-card {
    position: relative;
    overflow: hidden;
    min-height: 205px;
    padding: 45px 30px 75px;
    background: #fff;
    /* border: 1px solid #eceef1; */
    border-top: 1px solid #eceef1;
    border-left: 1px solid #eceef1;
    /* 文字与边框颜色同步过渡，避免悬停时突变 */
    transition: color .35s ease, border-color .35s ease;
}
/* 悬停背景层：图片以伪元素淡入 + 轻微缩放，切换比直接换 background 更顺滑 */
.about-news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(/assets/addons/ldcms/en/images/112.jpg) center / cover no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .45s ease, transform .6s ease;
}
.about-news-card:hover::before {
    opacity: 1;
    transform: scale(1);
}
.about-news-card:hover {
    border-color: transparent;
    color: #fff;
}
.about-news-card h3,
.about-news-card p { transition: color .35s ease; }
.about-news-card:hover h3,
.about-news-card:hover p { color: #fff; }
.about-news-card > * { position: relative; z-index: 1; }
/* 立方体图标改用设计稿图片（50×50，红色立方体） */
.about-cube {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.about-news-card h3 {
    margin-top: 20px;
    font-size: var(--fs-h3);
    font-weight: 700;
}
.about-news-card p {
    margin-top: 12px;
    max-width: 520px;
    font-size: var(--fs-body);
    line-height: 1.65;
}
.about-news-card--dark {
    border-color: transparent;
    color: #fff;
    background-color: var(--dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.about-news-card--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 22, .66);
}
.about-news-card--dark p { color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .about-intro-grid { grid-template-columns: minmax(0, 1fr) 500px; gap: 40px; }
    .about-intro-photo img { height: 560px; }
    .about-title { font-size: 34px; }
    .about-mfg-card { padding: 36px 30px 30px; min-height: 360px; }
    .about-card-num { left: 30px; }
    /* R&D 区块：1199px 以下右侧文字列会与左侧 55% 装饰背景图重叠，
       改为单列堆叠并移除装饰背景图（照片本身提供视觉），彻底避免文字压图 */
    .about-rd { background-image: none; }
    .about-rd-grid { grid-template-columns: 1fr; padding-top: 0; }
    .about-rd-photo img { height: 420px; }
    .about-rd-text { max-width: none; padding: 40px 15px 50px; }
    .about-rd-card { min-height: 0; padding: 30px 24px; }
}

@media (max-width: 991px) {
    .about-hero { height: 340px; }
    .about-hero .page-breadcrumb { font-size: 14px; }

    /* 页签在中小屏改为横向滚动，避免换行挤压 */
    .about-tabs .container { padding-left: 0; padding-right: 0; }
    .about-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0 30px;
        padding: 0 15px;
        scrollbar-width: none;
    }
    .about-tab-list::-webkit-scrollbar { display: none; }
    .about-tab { white-space: nowrap; }

    .about-intro { padding: 56px 0 56px; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-intro-photo img { min-height: 0; max-height: none; height: 380px; }
    .about-works { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .about-copy--full { margin-top: 34px; }

    .about-timeline { padding: 60px 0 52px; }
    .about-mfg { padding: 60px 0 0; }
    .about-mfg-head h2 { font-size: 32px; }
    .about-mfg-panel { grid-template-columns: 1fr; margin-top: 32px; }
    .about-mfg-card {
        min-height: 0;
        padding: 32px 30px 64px;
        border-left: 0;
        border-top: 1px solid #eceef1;
    }
    .about-mfg-card:first-child { border-top: 0; }
    /* 单列卡片：收紧内容间距，段落底部不再保留桌面端为编号预留的 140px */
    .about-mfg-card p { margin-top: 16px; margin-bottom: 0; }
    .about-card-num { position: absolute; left: 30px; bottom: 24px; }

    .about-gallery { padding: 56px 0; }
    /* 平板：大图占满视口宽度，高度适当降低 */
    .about-gallery-slide { flex: 0 0 100%; height: 380px; }
    .about-thumbs { grid-template-columns: repeat(3, 1fr); gap: 14px; }

    .about-rd-grid { grid-template-columns: 1fr; }
    .about-rd-photo img { height: 380px; }
    .about-rd-text { max-width: none; padding: 40px 15px 44px; }
    .about-rd-card { min-height: 0; padding: 30px 24px; }
    .about-news { padding: 48px 0 64px; }
}

@media (max-width: 767px) {
    .about-hero { height: 300px; }
    .about-hero h1 { font-size: 30px; }

    .about-title { font-size: 26px; }
    .about-copy { font-size: 15px; }
    .about-rich { font-size: 15px; line-height: 1.7; }
    .about-rich h3 { font-size: 22px; }
    .about-rich h4 { font-size: 18px; }
    .about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; margin-top: 26px; }
    .about-stats strong { font-size: 24px; }
    .about-stats span { font-size: 14px; }
    /* 移动端两列布局，隐藏竖线避免错位 */
    .about-stats li + li::before { display: none; }

    .about-works { gap: 12px; margin-top: 28px; }

    /* 时间线：卡片横向滚动，左右按钮可操作 */
    .about-timeline-track {
        display: flex;
        gap: 0 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .about-year {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
    .about-year h3 { font-size: 20px; }
    .about-year li { font-size: 15px; }
    .about-timeline-nav { margin-top: 34px; }

    .about-mfg { padding: 52px 0 0; }
    .about-mfg-head h2 { font-size: 26px; }
    .about-mfg-head p { font-size: 16px; }
    .about-mfg-card { padding: 28px 20px 56px; }
    .about-card-num { left: 20px; bottom: 20px; }
    .about-mfg-card h3 { font-size: 18px; }

    .about-gallery { padding: 44px 0; }
    /* 手机：单张大图占满视口，箭头缩小并贴近边缘 */
    .about-gallery-slide { flex: 0 0 100%; height: 240px; }
    .about-gallery-nav { width: 36px; height: 36px; }
    .about-gallery-nav img { width: auto; height: 56px; }
    .about-gallery-nav.is-prev { left: 8px; }
    .about-gallery-nav.is-next { right: 8px; }
    .about-thumbs { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-top: 24px; }
    .about-thumb img { height: 84px; }
    /* 小屏图高 84px，下划线相应下移到 84 + 14 = 98px */
    .about-thumb::after { top: 98px; }
    .about-thumb span { margin-top: 26px; font-size: 12px; }

    .about-rd-photo img { height: 260px; }
    .about-rd-text { padding: 32px 15px 36px; }
    .about-rd-sub { font-size: 16px; }
    .about-rd-cards { grid-template-columns: 1fr; }
    .about-rd-card { padding: 24px 20px; min-height: 0; gap: 18px; }
    .about-medal { width: 54px; height: 54px; }
    .about-rd-card strong { font-size: 26px; }
    .about-rd-card span { font-size: 15px; }

    .about-news { padding: 40px 0 56px; }
    .about-news-grid { grid-template-columns: 1fr; gap: 2px; }
    .about-news-card { min-height: 0; padding: 28px 20px; }
    .about-news-card h3 { font-size: 20px; margin-top: 18px; }
    .about-news-card p { font-size: 14px; }
}
