/* Base Settings */
html,
body {
    width: 100%;
    height: 100%;
}

html {
    font-size: 16px;
    min-height: 40rem;
    /* 640px */
    min-width: 80rem;
    /* 1280px */
}

body {
    margin: 0;
    padding: 0;
    background-color: #020202;
    background-image: url('/images/homepage/background.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 80rem auto;
    /* 1440px * 800px */
    font-feature-settings: 'liga' off, 'clig' off;
    /* font-family: AILAB; */
    font-family: "Inter,system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, SF Pro SC, SF Pro Display, SF Pro Icons, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif";
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-width: 1280px;
    min-height: 640px;
}

.homepage-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.homepage-header {
    width: 100%;
    height: 4rem;
    /* 64px */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homepage-header-content {
    width: 100%;
    /* 1440px */
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.homepage-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 0.23rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    /* font-size: 1.5rem; */
    /* font-weight: 600; */
    color: #ffffff;
    width: 3.875rem;
    height: 1.75rem;
    line-height: 1.75rem;
}

.homepage-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
}

.nav-link {
    color: #ffffff;
    font-feature-settings: 'liga' off, 'clig' off;

    /* 正文/常规text-1-regular */
    font-family: "PingFang SC";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3125rem;
    /* 150% */
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-github {
    color: #ffffff;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.nav-github:hover {
    opacity: 0.8;
}

.btn-get-start {
    font-size: 0.875rem;
    font-weight: 400;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "PingFang SC";
    line-height: 1.5rem;
    padding: 0.25rem 1rem;
    border: 1px solid #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 3.125rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-get-start:hover {
    border: 1px solid #46FFE9;
    background: linear-gradient(0deg, rgba(121, 107, 255, 0.20) 0%, rgba(215, 255, 250, 0.06) 50%, rgba(70, 255, 233, 0.20) 100%);
    backdrop-filter: blur(10px);
}

/* Main Content Styles */
.homepage-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 576px;
    height: calc(100vh - 4rem);
    /* padding: 2rem 0; */
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* padding: 0 2rem; */
}

.main-content-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-title {
    color: #FFF;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Alimama FangYuanTi VF";
    font-size: 2.75rem;
    font-style: normal;
    font-weight: 300;
    line-height: 2.75rem;
    /* 100% */
    margin-bottom: 1.5rem;
}

.main-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 1rem;
    color: #ffffff;
}

.main-features p {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "PingFang SC";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 300;
    margin: 0;
    /* opacity: 0.5; */
    line-height: 1.3125rem;
    /* 150% */
}

.btn-get-start-large {
    width: 11.25rem;
    height: 3rem;
    padding: 0.75rem 0.5rem;

    border-radius: 3.125rem;
    border: 1px solid #46FFE9;
    background: linear-gradient(0deg, rgba(121, 107, 255, 0.10) 0%, rgba(215, 255, 250, 0.03) 50%, rgba(70, 255, 233, 0.10) 100%);
    backdrop-filter: blur(10px);

    color: #FFF;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: AILAB;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 70;
    line-height: 1.5rem;

    cursor: pointer;
    /* transition: all 0.3s; */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    justify-items: center;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;

    .arrow-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-bottom: 0.25rem;
        /* padding: 0.25rem 0.125rem; */
        flex-shrink: 0;
        /* border: 1px solid transparent; */
    }
}

.btn-get-start-large:hover {
    border-radius: 3.125rem;
    border: 1px solid #46FFE9;
    background: linear-gradient(0deg, rgba(121, 107, 255, 0.20) 0%, rgba(215, 255, 250, 0.06) 50%, rgba(70, 255, 233, 0.20) 100%);
    backdrop-filter: blur(10px);
}

.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Carousel Styles */
.homepage-carousel {
    width: 75rem;
    height:14.625rem;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.homepage-carousel-container {
    width: 100%;
    padding: 0 2.5rem;
    overflow: hidden;
    position: relative;
}

#homepageCarouselWrapper {
    width: calc(100% - 5rem);
    margin: auto;
    overflow: hidden;
}

.homepage-carousel .swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* overflow: hidden; */
    /* Swiper 会自动处理内部布局，不需要 flex */

}

.homepage-carousel .swiper-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    /* 让 Swiper 正常控制 wrapper 的移动和间距 */
    /* 间距由 Swiper 的 spaceBetween 参数控制，不使用 CSS gap */
}

.homepage-carousel .swiper-slide {
    position: relative;
    flex-shrink: 0;
    width: 17rem !important;
    height: 9.5625rem;
    border-radius: 0.5rem;
    overflow: hidden;
    opacity: 0.5;
    transition: transform 0.8s ease, width 0.8s ease, height 0.8s ease, opacity 0.8s ease;
    cursor: pointer;
}

/* 克隆的幻灯片也应该有相同的样式 */
.homepage-carousel .swiper-slide-duplicate {
    width: 17rem !important;
    height: 9.5625rem;
    opacity: 0.5;
}

/* Active item in the middle - 激活项放大显示 */
.homepage-carousel .swiper-slide-active,
.homepage-carousel .swiper-slide.active,
.homepage-carousel .swiper-slide-duplicate-active {
    opacity: 1;
    width: 26rem !important;
    height: 14.625rem;
    /* transform: scale(1); */
}

.homepage-carousel .carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    cursor: pointer;
}

.homepage-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    cursor: pointer;
}

/* Swiper carousel control buttons */
.homepage-carousel .carousel-control-prev,
.homepage-carousel .carousel-control-next {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    outline: none;
    color: rgba(255, 255, 255, 0.40);
    cursor: pointer;
}

.homepage-carousel .carousel-control-prev:hover,
.homepage-carousel .carousel-control-next:hover {
    color: #ffffff;
    border-color: #ffffff;
    opacity: 1;
}

.homepage-carousel .carousel-control-prev:active,
.homepage-carousel .carousel-control-next:active {
    transform: translateY(-50%) scale(0.95);
}

.homepage-carousel .carousel-control-prev {
    left: 0;
}

.homepage-carousel .carousel-control-next {
    right: 0;
}

/* Hide Swiper default navigation buttons if using custom ones */
.homepage-carousel .swiper-button-next,
.homepage-carousel .swiper-button-prev {
    display: none;
}

/* Hide Swiper pagination if needed */
.homepage-carousel .swiper-pagination {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    /* html {
        font-size: 1.111vh;
    } */
}

@media (max-width: 1280px) {
    /* html {
        font-size: 1px;
    } */
}