/* =========================================================================
 * about.css — 集团简介栏目页样式（对齐原站 catid=8 视觉）
 *
 * cache-buster：引用时须带 ?v=20260805u，改样式请递增尾字母（a→b→c…u）。
 * 依赖：inner.css（公共容器/基础），本文件仅覆盖本页专属样式。
 * ========================================================================= */

/* ---------- 1. 英雄横幅 ---------- */
/* 宽度自适应：用 <img> 撑高度（width:100% height:auto 等比不裁切），
   标题层绝对定位叠在图上，位置用百分比随图高自适应 */
.about-hero {
    position: relative;
    background: #fff;
    color: #fff;
    text-align: left;
    padding: 0;                 /* 旧版靠 200/450 padding 撑高度，改由图片撑开 */
}
.about-hero__bg {
    display: block;
    width: 100%;                /* 宽度铺满容器 */
    height: auto;               /* 高度按原图 1920x640 比例自适应，不裁切不变形 */
}
.about-hero__inner {
    position: absolute;
    top: 31%;                   /* 原标题距顶 200px / 图高 640px ≈ 31% */
    left: 0;
    right: 0;
    z-index: 2;
}
#et-main-area .about-hero__title {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    position: relative; /* 建立层叠上下文，保证子元素 z-index 在 hero 背景之上 */
}
/* 标题文字包一层，z-index 高于斜杠块 → 文字恒在上层 */
.about-hero__title-text {
    position: relative;
    z-index: 2;
}
/* 红色平行四边形斜杠块（替代原 "/" 字符）：尺寸用 em 随标题字号自适应；
   z-index:1 在背景之上、文字之下；margin-right 负值把文字回拉，块右半压入文字下方 */
.about-hero__slash {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 0.95em;
    height: 1.25em;
    background: #e8262a;
    transform: skewX(-18deg);
    margin-right: -0.45em;
    vertical-align: -0.1em;
}

/* ---------- 2. 面包屑 + 大标题 ---------- */
.about-titlebar {
    background: #fff;
    padding: 18px 0 22px;
    width: 1110px;
    margin: 0 auto;
    margin-top: -150px;
}
.about-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.about-breadcrumb a { color: #888; text-decoration: none; }
.about-breadcrumb a:hover { color: #dc291e; }
.about-breadcrumb .sep { margin: 0 6px; color: #ccc; }
.about-breadcrumb .cur { color: #333; }

/* ---------- 通用区块 ---------- */
.about-section { padding: 40px 0; }
.about-section:nth-of-type(even) { background: #f7f7f9; }
.about-section-head h2 {
    font-size: 24px;
    color: #222;
    margin: 0 0 22px;
    padding-bottom: 12px;
}
/* 区块标题前的红色平行四边形斜杠（同 banner 区样式：实心红块 + skew 切斜；
   加宽加高，并用 z-index 分层让标题文字压住块的右半部分） */
.about-slash {
    display: inline-block;
    width: 0.9em;
    height: 1.3em;
    background: #e8262a;
    transform: skewX(-18deg);
    margin-right: 0.25em;
    vertical-align: -0.12em;
    position: relative;
    z-index: 1;
}
/* 标题文字层：位于红块之上，负 margin 左移压住块的右半 */
.about-slash-text {
    position: relative;
    z-index: 2;
    margin-left: -0.62em;
}
/* 发展历程 / 荣誉证书 标题居中，并建立层叠上下文 */
#aboutTimelineSection .about-section-head h2,
#aboutAwards .about-section-head h2 {
    text-align: center;
    position: relative;
}
.about-empty { color: #999; font-style: italic; }

/* ---------- 3. 集团发展史 ---------- */
/* 集团发展史：去掉偶数区块灰底（覆盖 .about-section:nth-of-type(even)） */
#aboutHistory { background: transparent; }
/* 集团发展史：标题下方短粗红色横线（仅作用于本区块，不贯穿整行） */
#aboutHistory .about-section-head h2 {
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
}
#aboutHistory .about-section-head h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 14px;
    background: #dc291e;
}
.about-history__body p {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin: 0 0 14px;
    text-align: justify;
}
/* 历史 logo 图墙：底部 5 张 logo 并排成一行（覆盖数据库内联 style）
 * 数据库内容中 <img> 带内联 style="max-width:100%;height:auto;margin:6px;"，
 * 内联样式优先级最高，故此处用更高特异性（#id 前缀）配合 !important 覆盖，
 * 使 5 张等宽单行排列、垂直居中、不变形。 */
#aboutHistory .about-history__body img {
    display: inline-block !important;
    width: 18.5% !important;
    max-width: 18.5% !important;
    height: 70px !important;
    margin: 0 0.4% 14px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ---------- 4. CEO 区 ---------- */
.about-ceo { background: #f2f2f4 !important; }
.about-ceo__grid {
    display: flex;
    align-items: center;
    gap: 40px;
}
.about-ceo__text { flex: 1 1 60%; }
.about-ceo__quote {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
    font-style: italic;
    margin: 0 0 18px;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
}
.about-ceo__quote p { margin: 0 0 12px; }
.about-ceo__quote p:last-child { margin-bottom: 0; }
.about-ceo__name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0 0 18px;
}
.about-ceo__position {
    font-size: 14px;
    color: #dc291e;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}
.about-ceo__links { display: flex; gap: 10px; }
.about-btn {
    display: inline-block;
    padding: 9px 24px;
    color: #fff;
    background: #dc291e;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0;
    transform: skewX(-18deg);
    transition: background 0.2s;
}
.about-btn span {
    display: inline-block;
    transform: skewX(18deg);
}
.about-btn:hover { background: #b51f16; }
/* 荣誉证书区块下方「相关资质」按钮：居中 */
.about-awards-cta {
    text-align: center;
    margin-top: 40px;
}
.about-ceo__photo { flex: 1 1 40%; text-align: right; }
.about-ceo__photo img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}
.about-ceo__photo-empty {
    display: block;
    width: 100%;
    min-height: 260px;
    background: #ddd;
    border-radius: 0;
}

/* ---------- 5/6. 使命 / 愿景（1:1 对齐原站 .seco-mv） ---------- */
#aboutMissionVision { background: transparent; padding-top: 100px; }

.about-mv {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.about-mv__item {
    flex: 1 1 50%;
    background-image: url(/static/cms/images/about/grupa_12.png);
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    padding: 3rem 1rem 3rem 7rem;
    font-size: 14px;
}

.about-mv__text h1 {
    font-size: 26px;
    color: #222;
    font-weight: 700;
    margin: 0 0 2rem;
}
.about-mv__text h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: #dc291e;
    margin-top: 16px;
}

.about-mv__text {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}
.about-mv__text p { margin: 0; }

/* ---------- 7. 发展历程（横向年份轴 + 卡片轨道，timeline.js 交互） ----------
 * DOM 契约见 docs/DESIGN_timeline_rebuild.md §A3.5；命名统一 tl- 前缀，
 * 与旧 .about-timeline .item 手风琴样式已彻底解耦（旧样式已移除）。
 * 主色 #dc291e：年份文字 / 下划线 / 选中刻度 / 箭头（红色长方形常显）。
 * 箭头位于 .tl-slider 内、卡片轨道 .tl-track 两侧；卡片仅展示（点击展开已移除）。
 * 全站横向滚动风险隔离：仅 .tl-track / .tl-axis-track 使用 overflow-x。 */
.about-timeline {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    outline: none;
}

/* ---- 年份轴 ---- */
.tl-axis {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #ececec;
    padding-bottom: 12px;
    margin-bottom: 26px;
}
.tl-axis-track {
    flex: 1 1 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #dc291e transparent;
    -webkit-overflow-scrolling: touch;
}
.tl-axis-track::-webkit-scrollbar { height: 4px; }
.tl-axis-track::-webkit-scrollbar-thumb { background: #dc291e; border-radius: 2px; }
.tl-axis-track::-webkit-scrollbar-track { background: transparent; }

.tl-tick {
    flex: 0 0 auto;
    position: relative;
    border: none;
    background: transparent;
    color: #777;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}
.tl-tick:hover { color: #dc291e; }
.tl-tick.is-active { color: #dc291e; }
.tl-tick.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -14px;
    height: 3px;
    background: #dc291e;
    border-radius: 2px;
}

/* ---- 滑块容器：左箭头 + 卡片轨道 + 右箭头（横向滚动隔离于内部 .tl-track） ---- */
.tl-slider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

/* ---- 左右箭头（红色长方形，常显白色箭头，贴卡片轨道两侧） ---- */
.tl-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 56px;
    padding: 0;
    border: 1px solid #dc291e;
    background: #dc291e;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: filter 0.2s;
}
.tl-arrow:hover { filter: brightness(1.08); }
.tl-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
.tl-arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.tl-arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* ---- 卡片横向轨道（在 .tl-slider 中占满中间，仅此处 overflow-x） ---- */
.tl-track {
    flex: 1 1 auto;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
    -webkit-overflow-scrolling: touch;
}
.tl-track::-webkit-scrollbar { height: 6px; }
.tl-track::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 3px; }
.tl-track::-webkit-scrollbar-thumb:hover { background: #dc291e; }
.tl-track::-webkit-scrollbar-track { background: transparent; }

/* ---- 年份卡片（层级：图 → 年 → 描述；无边框 + 浅灰底，仅展示不可点击） ---- */
.tl-card {
    flex: 0 0 240px;
    width: 240px;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    cursor: default;
    scroll-snap-align: center;
}

.tl-card__img {
    width: 100%;
    height: 160px;
    background: #f5f5f5;
    overflow: hidden;
    flex: none;
}
.tl-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tl-card__year {
    color: #dc291e;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 16px 6px;
    text-align: center;            /* 年份居中 */
}
.tl-card__year::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: #dc291e;
    margin: 8px auto 0;            /* 红色横线居中 */
}
.tl-card__date {
    font-size: 12px;
    color: #999;
    padding: 2px 16px 0;
}
.tl-card__desc {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding: 8px 16px 16px;
}

/* ---------- 8. 企业文化 / 我们的价值观（对齐原站 .et_pb_section_5：左文 55% + 右图 40%） ---------- */
.about-culture__grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.about-culture__text {
    flex: 1 1 55%;
    max-width: 55%;
}
.about-culture__text p {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin: 0 0 18px;
    text-align: justify;
}
/* 原站以 <p style="font-size:18px"><b>…</b></p> 承担子标题，这里统一提升为块级小标题 */
.about-culture__text b,
.about-culture__text strong {
    display: block;
    font-size: 18px;
    color: #222;
    margin: 0 0 10px;
}
.about-culture__image {
    flex: 0 0 40%;
    max-width: 40%;
}
.about-culture__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- 9. 荣誉证书（横向年份轴 + 卡片轮播，awards.js 交互） ----------
 * DOM 契约见 docs/DESIGN_awards_rebuild.md §A3.6；容器 #awardsCarousel。
 * 通用组件 .tl-axis / .tl-axis-track / .tl-tick / .tl-slider / .tl-arrow / .tl-track
 * 与发展历程共用（见上方第 7 段），此处仅定义荣誉专属的 .award-card 系列，
 * 不重复定义 .tl-* 规则，避免样式冲突。
 * 主色 #dc291e：年份文字 / 图片红底边 / 「详细信息」链接 / 箭头。
 * 一屏 4~5 张卡片：容器 1180px - 2×44 箭头 - 2×12 间距 ≈ 1068px，
 * 卡片 200px + gap 20px → 每屏约 4.9 张（对齐原站视觉密度）。
 * 旧 .about-awards__grid 图墙样式已随后台化改造移除。 */
.about-awards {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    outline: none;
}

/* ---- 荣誉卡片（层级：图 → 年 → 标题 → 描述 → 详细信息） ---- */
.award-card {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    scroll-snap-align: center;
}

/* 证书图片：白底 contain（证书比例不一），底部红色实边对齐原站视觉 */
.award-card__img {
    width: 100%;
    height: 150px;
    background: #fff;
    border-bottom: 3px solid #dc291e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
}
.award-card__img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.award-card__year {
    color: #dc291e;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 4px 6px;
    text-align: center;            /* 年份居中 */
}
.award-card__year::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background: #dc291e;
    margin: 8px auto 0;            /* 红色横线居中 */
}

.award-card__title {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
    padding: 8px 4px 0;
}
.award-card__desc {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    padding: 6px 4px 0;
}

/* 「详细信息」：红字 + 右箭头，跳转 /awards/{id} 独立详情页 */
.award-card__detail {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
    color: #dc291e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 4px 16px;
    transition: opacity 0.2s;
}
.award-card__detail::after {
    content: " \00BB";
}
.award-card__detail:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ---------- 9b. 荣誉证书详情页（/awards/{id} → show_award.html） ---------- */
.award-detail-page {
    padding: 40px 0 60px;
}
.award-detail__grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.award-detail__figure {
    flex: 0 0 42%;
    max-width: 42%;
    background: #fff;
    border: 1px solid #ececec;
    border-bottom: 4px solid #dc291e;
    border-radius: 4px;
    padding: 18px;
    text-align: center;
}
.award-detail__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.award-detail__figure-empty {
    display: block;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}
.award-detail__meta {
    flex: 1 1 auto;
}
.award-detail__year {
    color: #dc291e;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}
.award-detail__year::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #dc291e;
    margin-top: 10px;
}
.award-detail__title {
    font-size: 22px;
    line-height: 1.5;
    color: #222;
    margin: 18px 0 0;
}
.award-detail__desc {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin: 14px 0 0;
}
.award-detail__link {
    margin: 16px 0 0;
}
.award-detail__link a {
    color: #dc291e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.award-detail__link a:hover { text-decoration: underline; }

.award-detail__body {
    margin-top: 36px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}
.award-detail__body img { max-width: 100%; height: auto; }

.award-detail__nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ececec;
}
.award-detail__nav-item {
    flex: 1 1 48%;
    max-width: 48%;
    text-decoration: none;
    color: #444;
}
.award-detail__nav-item--next { text-align: right; }
.award-detail__nav-item.is-disabled { color: #bbb; }
.award-detail__nav-label {
    display: block;
    font-size: 12px;
    color: #dc291e;
    margin-bottom: 4px;
}
.award-detail__nav-item.is-disabled .award-detail__nav-label { color: #bbb; }
.award-detail__nav-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.award-detail__nav-item:hover .award-detail__nav-text { color: #dc291e; }

.award-detail__back {
    margin-top: 30px;
}
.award-detail__back a {
    display: inline-block;
    padding: 10px 26px;
    background: #dc291e;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: filter 0.2s;
}
.award-detail__back a:hover { filter: brightness(1.08); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    /* banner 高度由图片自适应撑开，无需 padding 撑高 */
    .about-hero { padding: 0; }
    /* 窄屏 banner 变矮，白色标题栏不再上移压盖，避免遮住标题 */
    .about-titlebar { margin-top: 0; width: 100%; }
    #et-main-area .about-hero__title { font-size: 26px; }
    .about-ceo__grid { flex-direction: column; }
    .about-ceo__photo { order: -1; }
    /* 使命愿景区：移动端改为纵向堆叠，与原站 980 断点行为一致 */
    .about-mv { flex-direction: column; align-items: normal; }
    .about-mv__item { padding: 2rem 1rem 2rem 5rem; }
    /* 发展历程：小屏卡片可横滑（宽度收窄露出下一张），年份轴刻度可滚动，箭头触控可用 */
    .about-timeline { max-width: 100%; }
    .tl-axis { gap: 8px; }
    .tl-tick { font-size: 14px; padding: 6px 10px; }
    .tl-slider { gap: 8px; }
    .tl-arrow { width: 36px; height: 48px; }
    .tl-track { gap: 14px; }
    .tl-card { flex-basis: 78%; width: 78%; }
    .tl-card__img { height: 150px; }
    .tl-card__year { font-size: 20px; }
    /* 企业文化：移动端左文右图改为纵向堆叠，各占满宽 */
    .about-culture__grid { flex-direction: column; gap: 24px; }
    .about-culture__text { max-width: 100%; }
    .about-culture__image { max-width: 100%; }
    /* 荣誉证书：小屏卡片可横滑（宽度收窄露出下一张），复用 .tl-* 的移动端规则 */
    .about-awards { max-width: 100%; }
    .award-card { flex-basis: 70%; width: 70%; }
    .award-card__img { height: 150px; }
    .award-card__year { font-size: 18px; }
    /* 荣誉详情页：左图右文改为纵向堆叠 */
    .award-detail__grid { flex-direction: column; gap: 24px; }
    .award-detail__figure { max-width: 100%; flex-basis: auto; }
    .award-detail__year { font-size: 26px; }
    .award-detail__title { font-size: 19px; }
    .award-detail__nav { flex-direction: column; gap: 14px; }
    .award-detail__nav-item { max-width: 100%; }
    .award-detail__nav-item--next { text-align: left; }
    /* 历史 logo：移动端改为 3 列换行（2~3 列） */
    #aboutHistory .about-history__body img {
        width: 30% !important;
        max-width: 30% !important;
        height: 56px !important;
        margin: 0 1.5% 10px !important;
    }
}

/* 超窄屏（原站 425 断点）：去掉左内边距，让文字占满宽度 */
@media (max-width: 425px) {
    .about-mv__item { padding-left: 1rem; }
    /* 发展历程：极窄屏卡片占近满宽，仅露一点下一张作滑动提示 */
    .tl-card { flex-basis: 86%; width: 86%; }
    .tl-card__img { height: 140px; }
    /* 荣誉证书：极窄屏同理 */
    .award-card { flex-basis: 82%; width: 82%; }
    .award-card__img { height: 140px; }
}
