/* Import component styles */
@import url('components/top-navigation.css');
@import url('components/footer.css');
@import url('style.css');

:root {
    --fullwidthL-max: 1100px;
    /* Alibaba Travel Color System */
    --color-theme: #FF6B9D;
    --color-H2: #484848;
    --color-H3: #909090;
    --color-H4: #3b3b3b;
}

/* Alibaba Travel Typography Color Overrides */
h2 {
    color: var(--color-H2, #484848);
}

h3 {
    color: var(--color-H3, #909090);
}

h4 {
    color: var(--color-H4, #3b3b3b);
}

p {
    color: var(--color-Body, #1E1E1E);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #FFFEFC;
    color: var(--color-Body, #1E1E1E);
    font-size: var(--fonts-size-body, 16px);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Page Wrapper */
.page-wrapper {
    display: block;
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* Main Container */
.container {
    padding: 100px 6rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.head-title {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    box-sizing: border-box;
    gap: 0.3rem;
}

/* Header section */
.header {
    display: flex;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.summary-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin-right: 4rem;
    margin-top: 12px;
    margin-bottom: 36px;
}

.summary-row {
    display: flex;
}

.summary-label {
    color: var(--color-H4, #7D7B7B);
    font-size: var(--fonts-size-label, 13px);
    width: 60px;
    margin-right: 36px;
}

.summary-content {
    color: var(--color-Body, #1E1E1E);
    width: 120px;
    font-size: var(--fonts-size-label, 13px);
}

.context {
    grid-column: 7 / 13;
}

.context p {
    line-height: 1.5;
    margin-bottom: 6px;
}

/* My role section */
.my-role {
    margin-top: 20px;
}

/* Project impact section */
.project-impact {
    margin-top: 20px;
}

.project-impact ul {
    list-style-type: none;
    line-height: 1.5;
}

.project-impact li {
    margin-bottom: 2px;
    position: relative;
    padding-left: 20px;
}

.project-impact li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--color-H3, #968BA3);
    font-weight: bold;
}

/* Full Width Images */
.head-image {
    width: 100vw;
    height: 70vh;
    object-fit: cover;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.fullwidthL-image {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--fullwidthL-max), 100vw);
    max-width: var(--fullwidthL-max);
    height: auto;
    display: block;
    margin: 1rem 0;
}

.fullwidthM-image {
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.fullwidthS-image {
    width: 80%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.divider-image {
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
    pointer-events: none;
}

/* Spacing utilities */
.spacer-y {
    display: block;
    width: 100%;
    height: var(--space, 24px);
}

.spacer-x {
    display: inline-block;
    width: var(--space, 24px);
    height: 1px;
}

/* Spacing size presets */
.space-s {
    --space: 0.5rem;
}

.space-m {
    --space: 1rem;
}

.space-l {
    --space: 2rem;
}

.space-xl {
    --space: 4rem;
}

/* Card */
.cardwithborder {
    height: fit-content;
    padding: 32px;
    background-color: var(--card-bg, #FAEED4);
    border: 1px solid var(--color-H4, #7D7B7B);
    border-radius: 12px;
}

.cardwithborder p {
    margin: 0;
    line-height: 1.5;
}

.cardwithborder h3 {
    color: var(--color-Body);
}

.cardwithborder h4 {
    font-weight: 900;
}


/* Three cards layout - equal width and height */
.three-cards-layout {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin: 1.5rem 0;
}

.three-cards-layout .cardwithborder {
    flex: 1 1 0;
    min-width: 0;
}

/* Two cards with center arrow */
.cards-with-arrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 2rem;
}

.cards-with-arrow .cardwithborder {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-arrow-img {
    display: block;
    width: 40px;
    /* 调整箭头大小 */
    height: auto;
}

/* Image click-to-enlarge preview (overlay) */
#img-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#img-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 16px #000;
    border-radius: 8px;
}

/* Optional: mark images as zoomable */
.zoomable {
    cursor: zoom-in;
}

/* Background section */
.paragraph {
    padding: 1.5rem 0 0;
}

.paragraph>p {
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.paragraph h1 {
    margin-bottom: 10px;
}

.cardwithborder p {
    line-height: 1.5;
    margin-bottom: 0;
}

.cardwithborder ol {
    margin-top: 12px;
    margin-bottom: 20px;
    padding-left: 0;
    list-style-position: inside;
}

.cardwithborder ol li {
    margin-bottom: 4px;
    font-size: var(--fonts-size-body, 16px);
    text-indent: 0;
}

/* Issues list styling */
.issues-list {
    margin-top: 12px;
}

.issue-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 8px;
}

.issue-number {
    font-weight: bold;
    color: var(--color-Body, #1E1E1E);
    min-width: 24px;
    text-align: left;
    font-size: 16px;
}

.issue-text {
    flex: 1;
    line-height: 1.5;
}

.paragraphin1line {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.paragraphin1line>.paragraph {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.paragraphin1line .paragraph .paragraph-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Remove image margin only within paragraphin1line */
.paragraphin1line .fullwidthM-image {
    margin: 0;
}

.layout-55block {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.block-left {
    flex: 0 0 60%;
    min-width: 0;
}

.block-right {
    flex: 0 0 40%;
    min-width: 0;
    overflow: hidden;
}

.block-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Scroll-triggered fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media screen and (min-width: 962px) {
    .container {
        padding: 80px 8% 0;
    }
}

@media screen and (max-width: 962px) {
    .container {
        padding: 80px 8% 0;
    }

    .header {
        flex-direction: column;
    }

    .context {
        grid-column: 1 / 13;
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 80px 4rem 0;
    }

    .header {
        flex-direction: column;
    }

    .summary {
        margin-bottom: 20px;
    }

    .context {
        padding-left: 0;
    }

    .paragraphin1line {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cards-with-arrow {
        flex-direction: column;
        gap: 12px;
    }

    .card-arrow {
        display: none;
        /* mobile: stack without arrow */
    }

    .three-cards-layout {
        flex-direction: column;
        gap: 12px;
    }

    .three-cards-layout .cardwithborder {
        flex: none;
    }

    .layout-55block {
        flex-direction: column;
        gap: 2rem;
    }

    .block-left,
    .block-right {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 70px 2rem 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .summary-container {
        max-width: 100%;
        margin-right: 0;
        padding: 0;
    }

    .summary-row {
        width: 100%;
        flex-wrap: wrap;
    }

    .summary-label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .summary-label,
    .summary-content {
        width: 100%;
        margin-right: 0;
    }

    .context {
        width: 100%;
        padding: 0;
    }
}