/* ==========================================================================
   1. 基础布局
   ========================================================================== */
.about-section {
    background-color: #eff7f8;
    overflow: hidden;
    scroll-margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(60px, 8vh, 140px) 0;
}

.about-geometric-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 90%;
    margin: 0 auto;
}

.about-visual {
    position: relative;
    width: 100%;
    perspective: 2000px;
    display: flex;
    align-items: stretch;
}

/* ==========================================================================
   2. 图片容器
   ========================================================================== */
.main-image-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate3d(50px, 40px, -100px) rotateY(10deg);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #05191b;
    border-radius: 4px;
    overflow: hidden;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

.geo-backdrop {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: #063f44;
    border-radius: 4px;
    z-index: 1;
    opacity: 0;
    transform: translate3d(-50px, -40px, 0) rotate(-6deg);
    transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#about-media-container img {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#about-media-container.loaded img {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   3. 激活态动画
   ========================================================================== */
.about-section.is-visible .main-image-container {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg);
}

.about-section.is-visible .geo-backdrop {
    opacity: 0.1;
    transform: translate3d(0, 0, 0) rotate(-3deg);
    transition-delay: 0.1s;
}

/* ==========================================================================
   4. 右侧内容区
   ========================================================================== */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(20px, 4vh, 60px);
}

.about-heading {
    font-size: clamp(1.8em, 3.5vw, 3.8em);
    line-height: 1.2;
    font-weight: 300;
    color: #063f44;
    margin-bottom: 0.2em;
    min-height: 1.2em;
}

.about-heading span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-section.is-visible .about-heading span {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==========================================================================
   5. 段落文字
   ========================================================================== */
.about-p {
    font-size: clamp(0.95rem, 0.9vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-30px);
    will-change: transform, opacity;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-section.is-visible .about-p {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.about-text-wrapper .anim-box:nth-child(1) .about-p {
    transition-delay: 0.4s;
}

.about-text-wrapper .anim-box:nth-child(2) .about-p {
    transition-delay: 0.6s;
}

.about-text-wrapper .anim-box:nth-child(3) .about-p {
    transition-delay: 0.8s;
}

/* 修复冒号前文字偏小：强制所有子元素继承段落字号 */
.about-p * {
    font-size: inherit !important;
}

/* 中文专属优化 */
:lang(zh) .about-heading {
    margin-bottom: 0.5em;
    letter-spacing: 0.03em;
}

:lang(zh) .about-p {
    line-height: 2.0 !important;
    margin-bottom: 2.2rem !important;
    letter-spacing: 0.03em;
}

:lang(zh) .about-content {
    justify-content: center;
}

/* ==========================================================================
   6. 图片渐变蒙层
   ========================================================================== */
#about-media-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease;
}

#about-media-container.loaded::after {
    opacity: 0;
}

/* ==========================================================================
   7. 分辨率适配 - 标准分辨率档位（桌面双列布局）
   ========================================================================== */

/* --- A. 小桌面 / 过渡区 (1025px - 1200px) --- */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .about-geometric-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(30px, 4vw, 50px);
        max-width: 1100px;
        width: 92%;
    }

    .about-visual {
        min-height: 350px;
    }

    .about-content {
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(1.8em, 3vw, 2.6em) !important;
    }

    .about-p {
        font-size: clamp(0.9rem, 0.8vw, 1rem) !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }

    :lang(zh) .about-p {
        line-height: 1.9 !important;
        margin-bottom: 2rem !important;
    }
}

/* --- B. 720P (宽度 1201px - 1599px) --- */
@media screen and (min-width: 1201px) and (max-width: 1599px) {
    .about-geometric-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(30px, 4vw, 50px);
        max-width: 1200px;
        width: 92%;
    }

    .about-visual {
        min-height: 380px;
    }

    .about-content {
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(1.6em, 2.8vw, 2.4em) !important;
        margin-bottom: 0.3em;
    }

    .about-p {
        font-size: clamp(0.9rem, 0.8vw, 0.95rem) !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }

    :lang(zh) .about-p {
        line-height: 1.9 !important;
        margin-bottom: 2rem !important;
    }
}

/* --- C. 1080P (宽度 1600px - 2239px) --- 基准档位 */
@media screen and (min-width: 1600px) and (max-width: 2239px) {
    .about-geometric-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(40px, 6vw, 80px);
        max-width: clamp(1100px, 85vw, 1600px);
        width: 90%;
    }

    .about-visual {
        min-height: 450px;
    }

    .about-content {
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(2em, 3.2vw, 3.2em) !important;
    }

    .about-p {
        font-size: clamp(0.95rem, 0.85vw, 1.05rem) !important;
        line-height: 1.8 !important;
        margin-bottom: 1.5rem !important;
    }

    :lang(zh) .about-p {
        line-height: 2.0 !important;
        margin-bottom: 2.2rem !important;
    }

    .main-image-container {
        border-radius: 5px;
    }

    .geo-backdrop {
        border-radius: 5px;
    }
}

/* --- D. 1440P (宽度 2240px - 3199px) --- 按 1.22x 等比放大 */
@media screen and (min-width: 2240px) and (max-width: 3199px) {
    .about-geometric-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(60px, 8vw, 120px);
        max-width: clamp(1400px, 80vw, 2200px);
        width: 88%;
    }

    .about-visual {
        min-height: 550px;
    }

    .about-content {
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(2.4em, 3.5vw, 4em) !important;
        margin-bottom: 0.4em;
    }

    .about-p {
        font-size: clamp(1.15rem, 0.95vw, 1.3rem) !important;
        line-height: 1.85 !important;
        margin-bottom: 1.8rem !important;
    }

    :lang(zh) .about-p {
        line-height: 2.1 !important;
        margin-bottom: 2.7rem !important;
    }

    .main-image-container {
        border-radius: 6px;
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.12));
    }

    .geo-backdrop {
        top: -25px;
        left: -25px;
        border-radius: 6px;
    }
}

/* --- E. 2160P (宽度 3200px+) --- 按 1.44x 等比放大 */
@media screen and (min-width: 3200px) {
    .about-geometric-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(60px, 6vw, 140px);
        max-width: clamp(1600px, 70vw, 2400px);
        width: 85%;
    }

    .about-visual {
        min-height: 650px;
    }

    .about-content {
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(3em, 4.5vw, 5em) !important;
        margin-bottom: 0.5em;
    }

    .about-p {
        font-size: clamp(1.4rem, 1.2vw, 1.6rem) !important;
        line-height: 2.0 !important;
        margin-bottom: 2.2rem !important;
    }

    :lang(zh) .about-p {
        line-height: 2.3 !important;
        margin-bottom: 3.2rem !important;
    }

    .main-image-container {
        border-radius: 8px;
        filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.12));
    }

    .geo-backdrop {
        top: -30px;
        left: -30px;
        border-radius: 8px;
    }
}

/* ==========================================================================
   8. 平板 & 移动端适配（纵向单列布局）
   ========================================================================== */

/* --- 平板及以下 (1024px 以下) --- */
@media (max-width: 1024px) {
    .about-geometric-layout {
        flex-direction: column !important;
        align-items: center;
        width: 92%;
        gap: 25px;
    }

    .about-visual {
        width: 100% !important;
        max-width: 600px;
        margin: 0 auto;
        min-height: auto;
    }

    .main-image-container {
        width: 100% !important;
        min-height: 280px;
        max-height: 420px;
    }

    .about-content {
        width: 100%;
        text-align: left;
        padding-top: 0 !important;
    }

    .about-heading {
        font-size: clamp(1.6em, 5vw, 2.8em) !important;
        margin-bottom: 0.6rem;
        margin-top: 0;
        min-height: auto;
    }

    .about-p {
        font-size: clamp(0.9rem, 1.5vw, 1.05rem) !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }

    :lang(zh) .about-p {
        line-height: 1.9 !important;
        margin-bottom: 2rem !important;
    }
}

/* --- 手机竖屏 (480px 以下) --- */
@media (max-width: 480px) {
    .about-section {
        padding: clamp(40px, 5vh, 80px) 0;
        min-height: auto;
    }

    .about-geometric-layout {
        width: 94%;
        gap: 18px;
    }

    .about-visual {
        max-width: 100%;
    }

    .main-image-container {
        min-height: 200px;
        max-height: 300px;
    }

    .about-heading {
        font-size: 1.4em !important;
        margin-bottom: 0.4rem;
    }

    .about-p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }

    :lang(zh) .about-p {
        line-height: 1.8 !important;
        margin-bottom: 1.8rem !important;
    }
}

/* --- 手机横屏 / 小平板 (481px - 767px) --- */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .about-geometric-layout {
        width: 90%;
        gap: 20px;
    }

    .main-image-container {
        min-height: 240px;
        max-height: 350px;
    }

    .about-heading {
        font-size: clamp(1.6em, 4vw, 2.2em) !important;
    }

    .about-p {
        font-size: clamp(0.9rem, 1.2vw, 0.95rem) !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }

    :lang(zh) .about-p {
        line-height: 1.9 !important;
        margin-bottom: 2rem !important;
    }
}

@media screen and (min-width: 2880px) and (max-width: 3199px) {
    .about-p {
        font-size: clamp(1.2rem, 1vw, 1.35rem) !important;
        line-height: 1.9 !important;
        margin-bottom: 2rem !important;
    }

    :lang(zh) .about-p {
        line-height: 2.2 !important;
        margin-bottom: 3rem !important;
    }
}