
/* Body background to match footer */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
}

/* Slogan Section */
.slogan-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

/* Header Section Styles - Separate from Slogan Section */
.header-background-overlay {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 1;
    border-radius: 0;
    padding: 10px 10px;
}

.header-background-overlay .header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.header-logo {
    margin-bottom: 30px;
    text-align: center;
}

.header-logo img {
    width: 300px;
    height: 300px;
    opacity: 0.45;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.header-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* 宽屏幕布局：页面宽度，4:3比例 */
@media (min-aspect-ratio: 4/3) {
     .slogan-section {
        width: 100vw;
        height: 75vw; /* 4:3比例，基于视窗宽度 */
        padding-right: 0;
        justify-content: center;
    }

    .slogan-title {
        margin-bottom: 20px;
        line-height: 1.5;
    }
}



.slogan-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/default/default_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.slogan-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 10px;
    margin: 0 auto;
    opacity: 0.65;
    font-family: var(--font-family);
}


.slogan-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

/* 宽屏幕下标题调整 */
@media (min-aspect-ratio: 4/3) {
    .slogan-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

/* 竖屏幕下标题调整 */
@media (max-aspect-ratio: 4/3) {
    .slogan-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

.slogan-texts {
    height: 100px;
    position: relative;
}

/* 宽屏幕下slogan-texts调整 */
@media (min-aspect-ratio: 4/3) {
    .slogan-texts {
        height: 80px;
    }
}

/* 竖屏幕下slogan-texts调整 */
@media (max-aspect-ratio: 4/3) {
    .slogan-texts {
        height: 60px;
    }
}

.slogan-text {
    font-size: 2rem;
    margin: 0;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* 宽屏幕下slogan-text调整 */
@media (min-aspect-ratio: 4/3) {
    .slogan-text {
        font-size: 1.5rem;
    }
}

/* 竖屏幕下slogan-text调整 */
@media (max-aspect-ratio: 4/3) {
    .slogan-text {
        font-size: 1.2rem;
    }
}

.slogan-text.active {
    opacity: 1;
    transform: translateY(0);
}

.slogan-text.previous {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header - Unified Layout */
.page-header {
    width: 100%;
    max-width: calc(100% - 80px);
    margin: 0 auto;
    padding: 40px 20px 40px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: flex-start;
    align-items: center;
}

.page-header-content {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}


.text-module {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    order: 2;
    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
}

.text-module p {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.text-module p:last-child {
    margin-bottom: 0;
}


/* 宽屏幕下page-header样式 */
@media (min-aspect-ratio: 4/3) {
    .page-header {
        max-width: 1200px;
        padding: 30px 40px 60px 40px;
        gap: 60px;
    }

    .header-background-overlay {
        padding: 10px 40px 30px 40px;
    }

    .header-logo img {
        width: 320px;
        height: 320px;
    }

    .header-logo {
        margin-bottom: 40px;
    }

    .text-module {
        max-width: 900px;
        padding: 0 40px;
    }

    .header-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .header-subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

/* 竖屏幕下page-header样式 - 减少边距至一半 */
@media (max-aspect-ratio: 4/3) {
    .page-header {
        max-width: calc(100% - 20px); /* 减少边距：40px → 20px */
        padding: 15px 10px 25px 10px; /* 减少padding：30px→15px, 20px→10px, 50px→25px */
        gap: 18px; /* 减少gap：35px → 18px */
    }

    .header-background-overlay {
        padding: 15px 10px; /* 减少padding：30px→15px, 20px→10px */
    }

    .header-logo {
        margin-bottom: 10px; /* 减少margin：20px → 10px */
    }

    .header-logo img {
        width: 200px;
        height: 200px;
    }

    .text-module {
        padding: 0 5px; /* 进一步减少padding：10px → 5px */
        max-width: 100%;
    }

    .header-title {
        font-size: 20px;
        margin-bottom: 8px; /* 减少margin：16px → 8px */
    }

    .header-subtitle {
        font-size: 16px;
        margin-bottom: 8px; /* 减少margin：16px → 8px */
    }

    .text-module p {
        font-size: 16px;
        margin-bottom: 0.75rem; /* 减少margin：1.5rem → 0.75rem */
    }
}


/* Scenario Section */
.scenario-section {
    padding: 80px 0 3px;
    width: 100%;
}

.scenario-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.scenario-block {
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
}

/* 宽屏幕下scenario-block边距 */
@media (min-aspect-ratio: 4/3) {
    .scenario-block {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 竖屏幕下scenario-block边距 */
@media (max-aspect-ratio: 4/3) {
    .scenario-block {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.scenario-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

/* 宽屏幕下：左文右视频布局，文字悬浮在视频左侧 */
@media (min-aspect-ratio: 4/3) {
    .scenario-section {
        z-index: 2;
        position: relative;
    }

    .scenario-content {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .scenario-item {
        position: absolute;
        left: 15px;
        bottom: 15px;
        width: 35%;
        padding: 0;
        box-sizing: border-box;
        text-align: left;
        z-index: 3;
    }

    .scenario-item h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .scenario-item p {
        font-size: 0.8rem;
        line-height: 1.5;
        text-align: left;
    }

    .scenario-video-section {
        width: 100%;
        margin-left: 0;
        padding: 0;
        box-sizing: border-box;
    }
}

/* 竖屏幕下：上面视频，下面文字，横向填充 */
@media (max-aspect-ratio: 4/3) {
    .scenario-content {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .scenario-item {
        width: 100%;
        order: 2;
        text-align: left;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .scenario-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .scenario-item p {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: left;
    }

    .scenario-video-section {
        width: 100%;
        order: 1;
        padding: 0;
        box-sizing: border-box;
    }
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.scenario-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-color);
    transition: filter 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.video-container:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.video-container:hover .scenario-video {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.video-container.playing .scenario-video {
    filter: brightness(1.0);
}

.video-container:not(.playing) .scenario-video {
    filter: brightness(0.8);
}

/* Video controls are hidden for cleaner appearance */
.scenario-video::-webkit-media-controls {
    display: none !important;
}

.scenario-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.scenario-video::-webkit-media-controls-panel {
    display: none !important;
}

/* Hide controls in Firefox */
.scenario-video::-moz-media-controls {
    display: none !important;
}

/* Hide controls in all browsers */
.scenario-video[controls] {
    -webkit-appearance: none;
    appearance: none;
}

.scenario-video[controls]::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* ========== 缩略图容器 ========== */
.thumbnail-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* 缩略图 - 填充满容器 */
.scenario-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ========== 播放/暂停按钮 ========== */
.play-button,
.pause-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.play-button svg,
.pause-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* 悬停效果 */
.thumbnail-wrapper:hover .play-button,
.thumbnail-wrapper:hover .pause-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 点击效果 */
.play-button:active,
.pause-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* ========== 加载动画 ========== */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 11;
}

/* 旋转圆环 */
.loading-spinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 加载文字 */
.loading-spinner .loading-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========== 响应式调整 ========== */
@media (min-aspect-ratio: 4/3) {
    .play-button,
    .pause-button {
        width: 56px;
        height: 56px;
    }

    .loading-spinner .spinner {
        width: 42px;
        height: 42px;
    }
}

@media (max-aspect-ratio: 4/3) {
    .scenario-section {
        padding: 30px 0 2px;
    }

    .play-button,
    .pause-button {
        width: 52px;
        height: 52px;
    }

    .loading-spinner .spinner {
        width: 40px;
        height: 40px;
    }

    .loading-spinner .loading-text {
        font-size: 12px;
    }
}


