/* .about-page {
    padding: 50px 0;
} */

.banner {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    /* height: auto; */
    height: 400px;
    display: block;
    /* 确保图片作为块级元素显示 */
    object-fit: cover;
    /* 保持图片比例并填满容器 */
    object-position: center;
    /* 图片居中显示 */
    margin: 0;
    /* 移除所有边距 */
    padding: 0;
    /* 移除所有内边距 */
}

/* 如果需要确保整个页面内容占满屏幕，可以添加以下样式 */
.about-page {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.about-tabs {
    margin-bottom: 20px;
    padding: 10px 0;
    background: #efefef;

    .l1Name {
        margin-top: 7px;
        font-size: 20px;
        font-weight: 600;
        color: #940c11;
        margin-right: 10px;
        padding: 0 50px;
        border-right: 1px solid #646464;
        width: 205px;
        align-content: center;
    }
}

.tab-btn {
    padding: 10px 0;
    /*background-color: #f5f5f5;*/
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s;
}



.tab-btn.active,
.tab-btn:hover {
    /*background-color: #c00;*/
    color: #940c11;
}

.about-content {
    display: none;
    margin-top: 30px;
    /* 增加上边距 */
    text-align: left;
    /* 确保内容靠左对齐 */
}

.about-content.active {
    display: flex;
    gap: 30px;
    align-items: center;
    /* 垂直居中对齐 */
    flex-wrap: wrap;
    text-align: left;
    /* 确保内容靠左对齐 */
}

.container h2 {
    font-size: 30px;
    color: #940c11;
    text-align: center;
    margin-top: 30px;

}

/* 添加到about.css文件中 */
.remark-text {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    /* 允许长单词换行 */
    white-space: normal;
    /* 正常处理空白字符 */
    overflow-wrap: break-word;
    /* IE兼容性写法 */
    text-align: left;
    /* 左对齐 */
    max-width: 100%;
    /* 确保宽度不超过容器 */
}

.about-left {
    flex: 0 0 50%;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 文字垂直居中 */
}

.about-img {
    width: 100%;
    height: auto;
    /* border-radius: 8px; */
}

.about-content h2 {
    font-size: 24px;
    color: #940c11;
    margin-bottom: 15px;
    margin-top: 20px;
    /* 标题与上方内容的间距 */
    text-align: left;
    /* 标题靠左对齐 */
}

.about-content h6 {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 400;

}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    /* margin-bottom: 15px; */
    text-indent: 2em;
    /* 首行缩进两个字符 */
}


.honor-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    /* 增加上边距 */
}

.honor-cards img {
    width: calc(10% - 15px);
    height: auto;
    padding: 5px;

}

.honor-cards image {
    width: calc(4% - 15px);
    height: auto;
    padding: 5px;

}

.honor-text-item {
    margin: 10px 0;
    padding: 12px 16px;
    border-left: 4px solid #940c11;
    background: #fafafa;
    transition: .3s;
}

.honor-text-item.folded {
    max-height: 48px;
    /* 只显示一行 */
    overflow: hidden;
}

.honor-text-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #940c11;
}

.honor-text-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.honor-toggle {
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    color: #940c11;
    user-select: none;
}

.honor-toggle i {
    margin-left: 4px;
}

.video-container {
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    /* 增加上边距 */
}

/* 容器 */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
}

/* 两行：上3 | 下3 */
.timeline-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 中央竖线 */
.timeline-center {
    display: flex;
    justify-content: center;
}

.v-line {
    width: 2px;
    height: 40px;
    background: #940c11;
}

/* 单张卡片 */
.timeline-card {
    position: relative;
    padding: 16px;
    background: #f8f8f8;
    border-left: 4px solid #ccc;
    transition: all .3s;
    cursor: pointer;
}

.timeline-card:hover {
    background: #fff0f0;
    border-left-color: #940c11;
}

.timeline-card:hover .year,
.timeline-card:hover .dot {
    background: #940c11;
    color: #fff;
}

.timeline-card:hover h5 {
    color: #940c11;
}

/* 年份标签 */
.timeline-card .year {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: #ccc;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: all .3s;
}

.timeline-card h5 {
    margin: 4px 0;
    font-size: 15px;
    color: #333;
    transition: color .3s;
}

/* 描述区域（默认折叠） */
.remark-folded {
    margin-top: 8px;
    align-items: flex-start;
    gap: 6px;
}

/* 1. 仅当存在第6个及以上p标签时，才显示省略号 */
.remark-folded:has(p:nth-child(6))::after {
    content: "...";
    display: inline-block;
    color: #555;
    font-size: 13px;
    margin-top: 4px;
}

/* 2. 默认隐藏第7个及以后的p标签（仅当存在时） */
.remark-folded p:nth-child(n+6) {
    display: none;
}

/* 确保展开时强制显示所有p标签（覆盖可能的冲突样式） */
.timeline-card.expanded .remark-folded p:nth-child(n+6) {
    display: block !important;
    /* 强制显示 */
    visibility: visible !important;
    /* 防止被visibility隐藏 */
    opacity: 1 !important;
    /* 防止被透明度隐藏 */
}

/* 确保省略号在展开时隐藏 */
.timeline-card.expanded .remark-folded::after {
    display: none !important;
}


/* 4. 确保p标签默认样式正常 */
.remark-folded p {
    margin: 3px 0;
    padding: 0;
    font-size: 13px;
    color: #555;
}


.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform .3s;
}

.remark-text {
    margin: 0;
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all .3s;
}

/* 鼠标进入卡片时才展开 remark */
.timeline-card:hover .remark-text {
    -webkit-line-clamp: unset;
}

.timeline-card:hover .arrow-icon {
    transform: rotate(90deg);
}

/* 圆点 */
.timeline-card .dot {
    position: absolute;
    left: -9px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #ccc;
    transition: all .3s;
}

/* 标题行 = 标题 + 箭头 */
.title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-line h5 {
    margin: 0;
    font-size: 15px;
    color: #333;
    transition: color .3s;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform .3s;
}

/* 鼠标进入卡片才展开 remark + 旋转箭头 */
.timeline-card:hover .arrow-icon {
    transform: rotate(90deg);
}

.timeline-card:hover .remark-text {
    -webkit-line-clamp: unset;
}

.timeline-card:hover h5 {
    color: #940c11;
}

/* 右对齐容器 */
.timeline-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* 关键：整体靠右 */
    position: relative;
    margin: 20px 0;
}

/* 横线：只到箭头中心，右侧不露线头 */
.h-line-right {
    position: absolute;
    right: 12px;
    /* 箭头一半宽度 */
    left: 0;
    height: 2px;
    background: #940c11;
}

/* 箭头 */
.arrow-img {
    position: relative;
    width: 24px;
    height: 24px;
    transition: transform .3s;
}

/* 整个网格居中 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1.2fr);
    gap: 50px;
    /* margin: 20px auto 0; */
    /* 关键：水平居中 */
    max-width: 900px;
    /* 你想再宽就改大 */
    width: 100%;
}

/* 单个视频再大一点 */
.video-card video {
    width: 520px;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* 卡片悬停继续保留你的红色样式 */
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    background: #fff0f0;
    border-left: 4px solid #940c11;
}

/* 视频区域 */
.video-card video {
    width: 520px;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* 标题区域 */
.video-card h6 {
    margin: 0;
    padding: 12px 10px;
    font-size: 15px;
    color: #333;
    text-align: center;
    background: #fff;
    transition: color .3s;
}

.video-card:hover h6 {
    color: #940c11;
    /* 标题也变红 */
}



/* 移动端自适应样式 */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {

    /* 修复导航栏宽度问题 */
    .about-tabs .l1Name {
        width: auto !important;
        min-width: 150px;
        padding: 0 20px;
        font-size: 18px;
        border-right: 1px solid #646464;
        margin-top: 5px;
    }

    /* 调整tab按钮 */
    .tab-btn {
        min-width: 100%;
        text-align: center;
        padding: 10px 0;
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* 修复容器宽度 */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* 调整内容布局 */
    .about-content {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .about-left {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    /* 调整图片大小 */
    .banner-img {
        height: 300px;
    }

    .about-img {
        width: 100%;
        height: auto;
    }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {

    /* 进一步优化导航栏 */
    .about-tabs .l1Name {
        font-size: 16px;
        padding: 0 15px;
        min-width: 120px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 8px 0;
    }

    /* 调整文字大小 */
    .about-content h2 {
        font-size: 20px;
    }

    .about-content h6 {
        font-size: 15px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* 调整卡片布局 */
    .honor-cards img {
        width: calc(50% - 5px);
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-card video {
        width: 100%;
        height: 200px;
    }
}

/* 超小屏幕手机 (320px 及以下) */
@media (max-width: 320px) {
    .about-tabs .l1Name {
        font-size: 14px;
        padding: 0 10px;
        min-width: 100px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 6px 0;
    }

    .about-content h2 {
        font-size: 18px;
    }

    .about-content h6 {
        font-size: 14px;
    }

    .about-content p {
        font-size: 13px;
    }

    .video-card video {
        height: 180px;
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {

    /* 确保容器宽度自适应 */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* 优化触摸体验 */
    .tab-btn,
    .timeline-card,
    .video-card,
    .honor-text-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 防止文本自动缩放 */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 1. 标题独占一行 */
    .about-tabs .l1Name {
        width: 2% !important;
        border-right: none !important;
        margin: 0 0 10px 0 !important;
        text-align: center;
    }

    /* 2. 按钮容器：横排 一排两个 */
    .about-tabs .column.flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 10px;
    }

    /* 3. 每个按钮占一半宽度 */
    .about-tabs .tab-btn {
        flex: 0 0 calc(50% - 5px) !important;
        /* 一半宽 减去间隙 */
        min-width: auto !important;
        margin: 0 !important;
        text-align: center;
    }
}
