/* 容器 */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.about-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #676767;
}

.about-breadcrumb a {
    color: #676767;
    text-decoration: none;
}

.about-breadcrumb a:hover {
    color: #c7141e;
}

.about-breadcrumb-sep {
    margin: 0 8px;
}

.about-breadcrumb-current {
    color: #c7141e;
}

/* ========== Hero 横幅区域 ========== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    padding: 60px 40px;
    max-width: 800px;
    color: white;
}

.about-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.95;
}

/* ========== 媒体与文字区块 ========== */
.media-with-text {
    margin: 40px 0;
}

.media-with-text-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.media-with-text-grid-reverse {
    flex-direction: row-reverse;
}

.media-with-text-media-item {
    flex: 1;
    min-width: 280px;
}

.media-with-text-media {
    width: 100%;
}

.aspect-ratio {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aspect-ratio img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-with-text-text-item {
    flex: 1;
    min-width: 280px;
}

.media-with-text-content {
    padding: 20px;
}

.media-with-text-heading {
    font-size: 32px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
}

.media-with-text-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.media-with-text-text p {
    margin-bottom: 16px;
}

.media-with-text-text p:last-child {
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #c7141e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #232323;
    transform: translateY(-2px);
}

/* 灰色边框区块 */
.gray-border-section {
    border: 1px solid #e0e0e0;
    padding: 40px;
    margin: 40px 0;
}

.gray-border-section .media-with-text {
    margin: 0;
}

/* ========== 标签页区域 - 按钮无间隙居中排列 ========== */
.tabbed-section {
    margin: 60px 0;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-buttons-wrapper {
    display: inline-flex;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #676767;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ffffff;
    border-right: 1px solid #d0d0d0;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background-color: #f5f5f5;
    color: #c7141e;
}

.tab-btn.active {
    background-color: #c7141e;
    color: #ffffff;
}

/* Tab 内容区域 - 文字部分有边框，图片部分无边框，文字垂直居中 */
.tab-content-wrapper {
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 媒体与文字布局 - 图片和文字并排，只给文字部分加边框，并垂直居中 */
.tab-content .media-with-text {
    margin: 0;
}

.tab-content .media-with-text-grid {
    align-items: stretch;
}

.tab-content .media-with-text-text-item {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

.tab-content .media-with-text-media-item {
    border: none;
    display: flex;
    align-items: center;
}

.tab-content .media-with-text-content {
    padding: 30px;
    width: 100%;
}

/* 橙色背景区块 */
.orange-section {
    background-color: #e86a10;
    padding: 60px 0;
    margin: 60px 0;
}

.orange-section .media-with-text-text {
    color: white;
}

.orange-section .media-with-text-heading {
    color: white;
}

.orange-section .btn {
    background-color: #000000;
}

.orange-section .btn:hover {
    background-color: #333;
}

/* 响应式 - 手机端优化 */
@media (max-width: 768px) {
    .about-hero-content {
        padding: 40px 20px;
    }

    .about-hero-title {
        font-size: 32px;
    }

    .about-hero-subtitle {
        font-size: 16px;
    }

    .media-with-text-grid {
        gap: 30px;
        flex-direction: column;
    }

    .media-with-text-grid-reverse {
        flex-direction: column;
    }

    .media-with-text-heading {
        font-size: 26px;
    }

    .gray-border-section {
        padding: 24px;
    }

    .tab-content .media-with-text-content {
        padding: 24px;
    }

    /* 手机端tab按钮样式优化 - 自适应换行，按钮等宽 */
    .tab-navigation {
        width: 100%;
    }

    .tab-buttons-wrapper {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #d0d0d0;
    }

    .tab-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 2px);
        text-align: center;
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 奇数个按钮时，最后一个按钮占满整行 */
    .tab-btn:nth-last-child(1):nth-child(odd) {
        flex-basis: 100%;
    }

    /* 移除所有右边框，在手机端用底边框区分 */
    .tab-btn {
        border-right: none;
    }

    /* 最后一行的按钮无底边框 */
    .tab-btn:last-child,
    .tab-btn:nth-last-child(2):nth-child(odd):last-child {
        border-bottom: none;
    }

    /* 移动端图片和文字上下排列，文字边框正常显示，垂直居中依然有效 */
    .tab-content .media-with-text-grid {
        flex-direction: column;
    }

    .tab-content .media-with-text-text-item {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .tab-content .media-with-text-media-item {
        width: 100%;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 26px;
    }

    .media-with-text-heading {
        font-size: 22px;
    }

    .media-with-text-text {
        font-size: 14px;
    }

    .gray-border-section {
        padding: 16px;
    }

    .tab-content .media-with-text-content {
        padding: 20px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: calc(50% - 2px);
    }
}