/* Hero Section */
.hero {
    padding: 18% 4% 12% 4%;
    width: 80%;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
    max-width: 1440px;
    gap: 8rem;
}

/* Lottie Player Styles */
.hero lottie-player {
    width: 84%;
    background: transparent !important;
}

.path-text {
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    animation: fadeInText 0.5s ease-in-out forwards;
    animation-delay: 3s;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    width: 5.6875rem;
    height: 3.55069rem;
    pointer-events: auto;
}

.path-text.visible {
    pointer-events: auto;
}

.path-text svg {
    width: 100%;
    height: 100%;
}

.path-text path {
    fill: #1E1E1E;
    transition: all 0.3s ease;
}

.path-text:hover path {
    fill: #FF4B30;
    transform: translateX(1px);
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    font-family: 'Bitter', serif;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.hero-text .greeting {
    font-weight: 400;
}

.hero-text strong {
    color: #FF8512;
    font-weight: 600;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,
            #FF8512 0%,
            #FFB74D 25%,
            #FF8512 50%,
            #FFB74D 75%,
            #FF8512 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Main Layout Container */
.main-container {
    display: block;
    min-height: 100vh;
    max-width: 1340px;
    margin: 0 auto;
    position: relative;
}

/* Content Area */
.content-area {
    padding: 2rem 4rem;
    overflow-y: auto;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.project-info {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-number {
    font-size: 1.7rem;
    font-weight: 600;
    color: #532889;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1E1E1E;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    font-family: "DM Sans";
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #1E1E1E;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #1E1E1E;
    transition: all 0.3s ease;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #2E2231;
}

.project-image {
    width: 100%;
    height: 330px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #2E2231;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-card:hover .tag {
    background-color: #F6F6F6 !important;
    border-color: #1E1E1E;
}

@media (min-width: 962px) {
    .hero-text {
        margin-left: 220px;
    }

    .hero {
        display: block
    }

    .hero-visuals {
        margin-top: -100px;
        width: 820px;
        position: relative;
    }

    .hero lottie-player {
        width: 45rem;
    }

    .path-text {
        position: absolute;
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 962px) {
    body {
        overflow-x: hidden;
    }

    .hero {
        display: block
    }

    .hero-text {
        margin-left: 210px;
    }

    .hero-visuals {
        margin-top: -120px;
        width: 820px;
        position: relative;
    }

    .hero lottie-player {
        width: 45rem;
    }

    .path-text {
        display: none;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: auto;
        aspect-ratio: 16/9;
        max-width: 100%;
    }

    .project-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .project-info {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10rem 2rem 0;
        min-height: calc(100vh - 60px);
        display: flex;
        position: relative;
        overflow: hidden; /* 隐藏所有方向的溢出 */
        width: 100vw;
        margin-left: calc(-50vw + 50%); /* 让容器占满视窗宽度 */
    }

    .hero-text {
        font-size: 2rem;
        text-align: center;
        margin: 0 1rem 4rem 1rem;
        padding: 0 1rem;
    }

    .hero-visuals {
        margin-left: 30%;
        position: relative;
    }

    .hero lottie-player {
        width: 110%;
    }

    .path-text {
        display: none;
    }

    .main-container {
        padding: 0;
    }

    .content-area {
        padding: 2rem 1rem;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        order: -1;
        height: auto;
        aspect-ratio: 16/9;
    }

    .project-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .project-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .hero-visuals {
        margin-left: 20%;
        position: relative;
    }

    .hero lottie-player {
        width: 90%;
    }

    .hero {
        padding: 8rem 1rem 0rem;
        align-items: normal;
        position: relative;
        overflow: hidden; /* 隐藏所有方向的溢出 */
        width: 100vw;
        margin-left: calc(-50vw + 50%); /* 让容器占满视窗宽度 */
    }

    .hero-text {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .project-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .path-text {
        display: none;
    }
}