/* ============================================
   About Page Styles - 关于我们页面样式
   根据 Figma 设计 1:1 还原
   ============================================ */

.about-main-content {
    width: 100%;
    position: relative;
    background-color: #FCFBFB;
    margin: 0;
    padding: 0;
}

/* Banner Section - 1920px × 620px, 位置: (0, 140) */
.about-banner {
    width: 100%;
    height: 620px;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 0 175px;
}

/* Company Intro Section - 位置: (455, 940), 宽度: 1010px */
.company-intro-section {
    width: 100%;
    padding: 0;
    margin-top: 180px;
    position: relative;
}

.company-intro-section .container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container .section-title-large.intro-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.06em;
    color: #C69D7A;
    text-align: center;
    margin-bottom: 26px;
    height: 59px;
}

.intro-subtitle {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4em;
    color: #384963;
    text-align: center;
    margin-bottom: 27px;
    height: 25px;
}

.intro-description {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6em;
    letter-spacing: 0.04em;
    color: #384963;
    text-align: center;
    width: 1010px;
    min-height: 94px;
}

/* Work Principles Section */
.work-principles-section {
    width: 100%;
    padding: 0;
    margin-top: 160px;
    margin-bottom: 240px;
    position: relative;
}

.work-principles-section .container {
    margin: 0 auto;
    padding: 0 clamp(20px, 11.46vw, 220px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container .section-title-large.principles-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.06em;
    color: #C69D7A;
    text-align: center;
    margin-bottom: 61px;
    height: 100px;
}

.principles-grid {
    width: 100%;
    height: clamp(562px, calc(900px * 100vw / 1920px), 900px);
    position: relative;
    margin: 0 auto;
    --design-width: 1920px;
    --scale-factor: calc(100vw / var(--design-width));
}

/* Principle Images - 每个图片 320px × 450px */
.principle-image {
    width: clamp(100px, 16.67vw, 320px);
    height: clamp(181px, 23.44vw, 450px);
    position: absolute;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.principle-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* 默认：PC 显示，隐藏 H5 图 */
.principle-image .principle-image-h5 {
    display: none;
}

/* 移动端：只显示 H5 图 */
@media screen and (max-width: 768px) {
    .principle-image .principle-image-pc {
        display: none;
    }
    .principle-image .principle-image-h5 {
        display: block;
    }
}

.principle-image-1 {
    left: clamp(0px, calc(0px * 100vw / 1920px), 0px);
    top: 0px;
}

.principle-image-2 {
    left: clamp(0px, calc(780px * 100vw / 1920px), 780px);
    top: 0px;
}

.principle-image-3 {
    left: clamp(0px, calc(380px * 100vw / 1920px), 380px);
    top: clamp(281px, calc(450px * 100vw / 1920px), 450px);
}

.principle-image-4 {
    left: clamp(0px, calc(1160px * 100vw / 1920px), 1160px);
    top: clamp(281px, calc(450px * 100vw / 1920px), 450px);
}

/* Principle Item Base Styles */
.principle-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.principle-content {
    width: 100%;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle-header {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4em;
    color: #B29786;
    text-align: left;
    width: 100%;
}

.principle-text {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6em;
    letter-spacing: 0.04em;
    color: #384963;
    text-align: left;
    width: 100%;
}

/* Principle 1 Content - 位置: (395, 110), 宽度: 305px */
.principle-item-1 {
    left: clamp(0px, calc(395px * 100vw / 1920px), 395px);
    top: clamp(69px, calc(110px * 100vw / 1920px), 110px);
    width: clamp(191px, calc(305px * 100vw / 1920px), 305px);
}

.principle-item-1 .principle-content {
    width: clamp(191px, calc(305px * 100vw / 1920px), 305px);
}

/* Principle 2 Content - 位置: (1175, 110), 宽度: 294px */
.principle-item-2 {
    left: clamp(0px, calc(1175px * 100vw / 1920px), 1175px);
    top: clamp(69px, calc(110px * 100vw / 1920px), 110px);
    width: clamp(184px, calc(294px * 100vw / 1920px), 294px);
}

/* English & Japanese: 让原则 1 和 2 在纵向对齐到顶部（top 为 0） */
.lang-en .principle-item-1,
.lang-en .principle-item-2,
.lang-ja .principle-item-1,
.lang-ja .principle-item-2 {
    top: 0;
}

.principle-item-2 .principle-content {
    width: clamp(184px, calc(294px * 100vw / 1920px), 294px);
}

/* Principle 3 Content - 位置: (0, 550), 宽度: 310px */
.principle-item-3 {
    left: clamp(0px, calc(0px * 100vw / 1920px), 0px);
    top: clamp(344px, calc(550px * 100vw / 1920px), 550px);
    width: clamp(194px, calc(310px * 100vw / 1920px), 310px);
}

.principle-item-3 .principle-content {
    width: clamp(194px, calc(310px * 100vw / 1920px), 310px);
}

/* Principle 4 Content - 位置: (780, 550), 宽度: 306px */
.principle-item-4 {
    left: clamp(0px, calc(780px * 100vw / 1920px), 780px);
    top: clamp(344px, calc(550px * 100vw / 1920px), 550px);
    width: clamp(191px, calc(306px * 100vw / 1920px), 306px);
}

.principle-item-4 .principle-content {
    width: clamp(191px, calc(306px * 100vw / 1920px), 306px);
}

/* 响应式适配 - 1440px以内 */
@media screen and (max-width: 1440px) {
 
    .principle-item-1,
    .principle-item-2 {
        top: 0;
    }
    .principle-content{
        padding: 0 ;
    }
}

/* Japanese language: remove padding when width is less than 1700px */
@media screen and (max-width: 1700px) {
    .lang-ja .principle-content {
        padding: 0;
    }
}

/* 小于1280px时，principle-text的letter-spacing为0 */
@media screen and (max-width: 1280px) {
    .work-principles-section .principle-text {
        letter-spacing: 0;
    }
    
    /* 英语和日语：line-height 为 1.4 */
    .lang-en .work-principles-section .principle-text,
    .lang-ja .work-principles-section .principle-text {
        line-height: 1.4;
    }
}

@media screen and (max-width: 768px) {
    /* about-main-content 内部所有使用绝对定位的元素改为相对定位 */
    .about-main-content section > * {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
    
    /* 保持某些元素的特殊定位（不在main-content内） */
    #header-container {
        position: relative;
    }
    
    /* 移动端导航弹窗必须保持 fixed 定位 */
    .mobile-nav-overlay {
        position: fixed !important;
    }
    
    /* 移动端多语言弹窗打开时，header-container 变为 fixed */
    #header-container.lang-dropdown-open {
        position: fixed;
    }
    
    #footer-container {
        position: absolute;
    }
    
    .mobile-nav-footer {
        position: absolute;
    }
    
    /* 容器元素保持相对定位 */
    .container,
    .about-main-content {
        position: relative;
    }
    
    .about-main-content .about-banner {
        height: auto;
    }
    
    .about-main-content .company-intro-section {
        margin-top: 80px;
    }
    
    .about-main-content .company-intro-section .container {
        padding: 0;
    }
    
    .work-principles-section {
        margin-top: 80px;
    }
    .work-principles-section .container > .section-title-large.principles-title{
        margin-bottom: 40px;
    }
    section.work-principles-section .container {
        padding: 0 30px;
        .principle-content{
            padding-top: 30px;
            p.principle-text{
                padding: 0;
            }
        }
    }
    
    .work-principles-section .principles-grid {
        height: auto;
        display: grid;
        grid-template-columns: 158px 1fr;
        gap: 16px 12px;
        align-items: start;
        row-gap: 80px;
    }
    
    .work-principles-section .principle-image {
        width: 100%;
        height: auto;
        position: relative;
        left: auto;
        top: auto;
        margin-bottom: 0;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .work-principles-section .principle-image img {
        width: 158px;
        height: auto;
    }
    
    .work-principles-section .principle-item {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-bottom: 0;
    }
    
    .work-principles-section .principle-item .principle-content {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .work-principles-section .principle-item .principle-header {
        font-size: 16px;
        line-height: 1.5em;
        margin-bottom: 0;
        padding: 0;
    }
    
    .work-principles-section .principle-item .principle-text {
        font-size: 14px;
        line-height: 1.6em;
        letter-spacing: 0.02em;
    }
    
    /* 使用 grid-row 和 order 属性让图片和内容配对横向显示 */
    /* 第一对：image1 和 item1 */
    .work-principles-section .principle-image-1 {
        order: 1;
        grid-row: 1;
        grid-column: 1;
    }
    .work-principles-section .principle-item-1 {
        order: 2;
        grid-row: 1;
        grid-column: 2;
    }
    
    /* 第二对：image2 和 item2 */
    .work-principles-section .principle-image-2 {
        order: 3;
        grid-row: 3;
        grid-column: 1;
    }
    .work-principles-section .principle-item-2 {
        order: 4;
        grid-row: 3;
        grid-column: 2;
    }
    
    /* 第三对：image3 和 item3 */
    .work-principles-section .principle-image-3 {
        order: 5;
        grid-row: 2;
        grid-column: 2;
    }
    .work-principles-section .principle-item-3 {
        order: 6;
        grid-row: 2;
        grid-column: 1;
    }
    
    /* 第四对：image4 和 item4 */
    .work-principles-section .principle-image-4 {
        order: 7;
        grid-row: 4;
        grid-column: 2;
    }
    .work-principles-section .principle-item-4 {
        order: 8;
        grid-row: 4;
        grid-column: 1;
    }
    
    /* 为各个section内部元素添加间距占位 */
    .about-main-content > section > * {
        margin-bottom: calc(20px * 100vw / 390px);
    }
    
    .about-main-content > section > *:last-child {
        margin-bottom: 0;
    }
    .about-main-content{
        min-height: auto;
        padding-bottom: 160px;
    }
}

