/* ======================================
   styles.home.css
   主页专用样式 - 文字滑块、背景视频/图片、Universe系列等
   ====================================== */

/* 背景视频 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* 主要内容 */
.main-content {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.content-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 文字滑块 */
.text-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide:not(.active) {
    pointer-events: none;
}

.slide * {
    will-change: transform, opacity;
}

/* 内容组定位与动画 */
.content-group {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30vh);
    width: 100%;
    text-align: center;
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.show-description .content-group {
    transform: translate(-50%, -50%) translateY(0);
}

.slide.show-background .content-group {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

/* 标题组 */
.title-group {
    text-align: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
}

.slide.show-description .title-group {
    transform: translateY(-50%);
}

.title-divider {
    width: 140px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 25px auto 55px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.show-description .title-divider {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.3s;
}

.main-title {
    font-family: 'Baskervville', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 0;
    letter-spacing: 0;
    text-align: center;
}

.desktop-break {
    display: block;
}

.mobile-break {
    display: none;
}

.sub-title {
    font-family: 'Baskervville', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 0;
    color: #e0e0e0;
    letter-spacing: 0;
}

/* 描述文字 */
.description {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    color: #d0d0d0;
    letter-spacing: 0;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.slide .description {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slide.show-description .description {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.description p {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.description p:empty {
    height: 20px;
    margin-bottom: 20px;
}

.slide.show-description .description p {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
    transition-delay: 0s;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scroll-dots {
    display: none;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.scroll-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.scroll-arrow {
    font-size: 16px;
    animation: bounce 2s infinite;
}

/* 背景图片容器 */
.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    background-color: #F5F5F7;
    z-index: -2;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transition: clip-path 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.background-image-container.show-background {
    clip-path: inset(0 0 0 0) !important;
    z-index: 1 !important;
    opacity: 1 !important;
}

.bg-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/images/background2.jpg") center top/cover no-repeat;
    background-position: center 0;
    filter: brightness(1.1) contrast(1.05);
}

/* 背景图片上的文字内容 */
.background-text-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 35vh;
    color: #444;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.background-text-content.show {
    opacity: 1;
}

.background-text-content p {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800 !important;
    line-height: 34px;
    letter-spacing: 0;
    text-align: center;
    margin: 0.2em 0;
}

.background-text-content .regular-text,
.background-text-content .dedicated-text {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0;
}

.background-text-content .description-text {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400 !important;
    line-height: 30px;
    letter-spacing: 0;
    color: #565656;
}

.font-baskerville {
    font-family: 'Baskervville', serif;
    font-weight: 600 !important;
    font-style: normal !important;
}

.form-italic {
    font-style: italic;
}

.font-baskerville .form-italic {
    font-weight: 700 !important;
    font-style: italic !important;
}

.highlight-text {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 34px;
    background: url('../assets/images/fond-bg.jpg');
    background-size: 400px 300px;
    background-repeat: no-repeat;
    background-position: -10px -260px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin: 0.2em 0;
}

/* 滚动解锁后的样式 */
body.scroll-unlocked {
    height: auto;
    overflow-y: auto;
}

body.scroll-unlocked .main-content {
    height: 100vh;
    position: relative;
    overflow: visible;
}

body.scroll-unlocked .video-background {
    position: absolute;
    z-index: -1;
}

body.scroll-unlocked .background-image-container.show-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    background-color: #F5F5F7 !important;
    z-index: 1 !important;
    opacity: 1 !important;
    clip-path: inset(0 0 0 0) !important;
}

body.scroll-unlocked .bg-image-wrapper {
    filter: brightness(1.1) contrast(1.05) !important;
}

/* 后续内容区域 */
.extra-content {
    background-color: #F5F5F7;
    padding: 0;
    color: #333;
    position: relative;
    z-index: 5;
    margin-top: 100vh;
}

.extra-content .content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.content-section {
    display: flex;
    align-items: center;
    gap: 140px;
    justify-content: space-between;
    margin-top: 80px;
}

.content-section:nth-child(even) {
    flex-direction: row-reverse;
}

.philosophy-image {
    width: clamp(100px, 18%, 240px);
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    object-position: center center;
    border-radius: 5px;
    align-self: center;
}

.section-text {
    width: 65%;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-text h2 {
    font-family: 'Baskervville', serif;
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    line-height: 110%;
    letter-spacing: 0%;
    margin-bottom: 30px;
    color: #000000;
}

.section-text p {
    font-family: 'Helvetica Now Display', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 110%;
    letter-spacing: 0%;
    color: #767676;
}

/* Universe Series Section */
.universe-series-section {
    width: 100%;
    margin: 80px 0;
    padding: 0;
}

.universe-banner {
    background-image: url('../assets/images/universal.png');
    background-size: cover;
    background-position: center;
    padding: 100px 60px;
    border-radius: 5px;
    color: #fff;
    text-align: left;
    position: relative;
}

.universe-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.universe-text-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.series-subtitle {
    font-family: 'Baskervville', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.9;
}

.series-title {
    font-family: 'Baskervville', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.series-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
}

.universe-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.gallery-item {
    flex-basis: calc(50% - 10px);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.caption {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #555;
}

/* Gleam Project Section */
.footer-gleam-project {
    position: relative;
}

/* 桌面端保持原有布局 - 只显示图片区域，包含所有内容 */
.gleam-image-section {
    position: relative;
    padding: 100px 80px;
    background: url('../assets/images/people.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: left;
}

.gleam-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.gleam-image-overlay {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
    height: 100%;
}

/* 桌面端隐藏手机端文字区域 */
.gleam-text-section {
    display: none;
}

/* 桌面端文字样式 */
.desktop-footer-text {
    display: block;
}

.footer-title {
    font-family: 'Yellowtail', cursive;
    font-size: 96px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 110%;
}

.footer-text p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.expiration-note {
    font-family: 'Baskervville', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 16px;
    line-height: 110%;
    color: #676767;
    opacity: 0.8;
    margin-top: 40px;
}

/* 桌面端 expiration-note 右下角定位 */
.gleam-image-section .expiration-note {
    position: absolute;
    bottom: 80px;
    right: 80px;
    margin-top: 0;
}
