/* 公司介绍页样式 */

html, body {
    min-height: 100vh;
    height: auto;
    background-color: #000;
    color: #333;
}

/* 移动端确保body可以滚动 */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }
}

.about-content {
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
    overflow-y: auto;
}

/* 顶部导航 */
/* 顶导样式统一使用 styles.css 中的全局样式 */

/* 主要内容区域 */
.about-main {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    overflow: hidden;
    position: relative;
}

/* 背景图部分（占上半个屏幕） */
.about-hero {
    width: 100%;
    height: 33.33vh; /* 背景图高度 */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 80px; /* 导航栏高度，使背景图显示在导航栏下方 */
}

/* PC模式下背景图显示在导航栏下方 */
@media (min-width: 769px) {
    .about-hero {
        margin-top: 80px; /* 导航栏高度 */
    }
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://oss-pai-qtn3yq5bgadm2iubd2-cn-shenzhen.oss-cn-shenzhen.aliyuncs.com/index/jieshao.png');
    background-size: cover;
    background-position: center; /* 从顶部开始显示，保持图片比例 */
    background-repeat: no-repeat;
}

/* Tab头部部分（背景图下面） */
.about-tabs-header {
    width: 100%;
    padding: 20px 0;
    background-color: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    padding-bottom: 0px;
}

/* Tab内容部分（占下半个屏幕） */
.about-content {
    width: 100%;
    height: 50vh;
    padding: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
}

.about-content .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0px;
    box-sizing: border-box;
}

.tabs-container {
    width: 100%;
}

/* Tab头部 */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: none;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tab-button {
    padding: 15px 0;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.tab-button:hover {
    color: rgba(0, 0, 0, 0.9);
}

.tab-button.active {
    color: #333;
}

.tab-button.active::after {
    background-color: #4A90E2;
}

/* Tab内容 */
.tabs-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    min-height: 0;
    overflow: visible;
    margin-top: -10px;
    flex-direction: column;
}

/* PC模式下tabs-content的margin-top调高 */
@media (min-width: 769px) {
    .tabs-content {
        margin-top: 0px;
    }
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
    width: 100%;
    text-align: center;
    min-height: 200px;
}

/* 公司使命tab-panel激活时，内容居中对齐 */
.tab-panel[data-tab-id="mission"].active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 公司愿景tab-panel激活时，内容居中对齐 */
.tab-panel[data-tab-id="vision"].active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 公司价值观tab-panel占据剩余空间，高度自适应内容，不允许滚动 */
.tab-panel[data-tab-id="values"].active {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    max-height: none;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

/* 公司价值观tab-panel占据剩余空间 */
.tab-panel[data-tab-id="values"].active {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    min-height:200px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab内容项布局 - 居中显示单个大标题 */
.tab-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 85%;
    margin: 0 auto;
}

/* 多个item时的布局（公司价值观） */
.tab-items-multiple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
    width: 80%;
    justify-items: center;
}

.tab-items-multiple .tab-item {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.tab-items-multiple .tab-item-title-zh {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 0px;
}

.tab-items-multiple .tab-item-title-en {
    font-size: 18px;
}

/* Tab内容项 - 大标题样式 */
.tab-item {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: none;
    box-shadow: none;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tab-item:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

.tab-item-title-zh {
    font-size: 42px;
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

/* 公司使命和公司愿景tab标题文字居中对齐 */
.tab-panel[data-tab-id="mission"] .tab-item-title-zh,
.tab-panel[data-tab-id="vision"] .tab-item-title-zh {
    text-align: center;
}

.tab-panel[data-tab-id="mission"] .tab-item-title-en,
.tab-panel[data-tab-id="vision"] .tab-item-title-en {
    text-align: center;
}

/* 公司愿景tab字体调小 */
.tab-panel[data-tab-id="vision"] .tab-item-title-zh {
    font-size: 42px;
}

.tab-item-title-en {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
    font-family: Helvetica, Arial, sans-serif;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-align: center;
}

/* 公司愿景tab英文字体调小 */
.tab-panel[data-tab-id="vision"] .tab-item-title-en {
    font-size: 18px;
}

/* 底部信息 */
.site-footer {
    width: 100%;
    margin-top: auto;
    position: relative;
    background-color: #000;
}

.site-footer .footer-overlay {
    position: relative;
    bottom: auto;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 移动端顶导样式统一使用 styles.css 中的全局样式 */

    .about-main {
        margin-top: 0;
        min-height: 100vh; /* 使用min-height而不是height，允许内容超出 */
        height: auto;
        overflow: visible;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Tab内容项 - 大标题样式 */
    .tab-item {
        margin-bottom: 88px;
    }

    .about-hero {
        height: 25vh; /* 1/4屏幕高度 */
        min-height: 200px;
        margin-top: 60px; /* 导航栏高度，使背景图显示在导航栏下方 */
        flex-shrink: 0;
    }
    
    .about-hero-bg {
        background-position: center top; /* 移动端也从顶部开始显示，保持图片比例 */
    }

    .about-tabs-header {
        padding: 15px 0;
        padding-bottom: 0px;
    }

    .about-content {
        flex: 1;
        min-height: 0;
        padding: 20px 0;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
    }

    /* 公司价值观tab时，允许内容超出屏幕 */
    .tab-panel[data-tab-id="values"] {
        min-height: auto;
    }

    .site-footer {
        flex-shrink: 0;
        height: auto;
        /* footer在about-main下方，初始时不在视口内，滚动后可见 */
    }

    .about-content .container {
        padding: 0 20px;
        max-width: 85%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .tabs-header {
        gap: 20px;
        margin-bottom: 40px;
    }

    .tab-button {
        padding: 12px 0;
        font-size: 16px;
    }

    .tab-items-multiple {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* 公司价值观tab下的tab-items离tabs-header更近 */
    .tab-panel[data-tab-id="values"] {
        min-height: calc(100% + 20px);
    }

    .tab-panel[data-tab-id="values"] .tab-items-multiple {
        margin-top: 0px;
        margin-bottom: 20px;
    }

    .tab-items-multiple .tab-item-title-zh {
        font-size: 28px;
    }

    .tab-item-title-zh {
        font-size: 32px;
        margin-bottom: 15px;
    }

    /* 公司愿景tab移动端字体调小 */
    .tab-panel[data-tab-id="vision"] .tab-item-title-zh {
        font-size: 26px;
    }

    .tab-item-title-en {
        font-size: 16px;
    }

    /* 公司愿景tab移动端英文字体调小 */
    .tab-panel[data-tab-id="vision"] .tab-item-title-en {
        font-size: 14px;
    }
}

