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

.top-divider {
    margin-bottom: 20px;
}

.bottom-divider {
    margin-top: 20px;
}

/* 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-logo {
        margin-bottom: 20px;
        line-height: 1.4;
    }

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

    .slogan-main-title {
        margin: 20px 0;
        line-height: 1.7;
    }
}



.slogan-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hasiiBG.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;
}

.back-text { 
    font-size: 1.2rem;
    color: var(--text-hover);
}

/* 宽屏幕下标题调整 */
@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;
    }

    .back-button {
        height: 36px;
        padding: 6px 10px;
        margin-top: 10px;
    }

    .back-text {
        font-size: 16px;
        margin-left: 2px;
    }
}

/* 竖屏幕下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-background-overlay .header-content {
        text-align: center;
    }

    .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;
        line-height: 1.6;
        margin-bottom: 0.75rem; /* 减少margin：1.5rem → 0.75rem */
    }

    .back-button {
        height: 32px;
        padding: 4px 8px;
        margin-top: 3px;
    }

    .back-icon {
        width: 16px;
        height: 16px;
    }

    .back-text {
        font-size: 14px;
        margin-left: 2px;
    }
}


/* 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;
    }
}

.scenario-header {
    text-align: center;
    margin-bottom: 60px;
}

.scenario-header h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.scenario-header p {
    font-size: 1rem;
    line-height: 1.6;
}



.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;
}

.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;
}

.scenario-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-color);
    transition: filter 0.3s ease, 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;
}

/* Video hover effects for direct interaction */
.video-container:not(.playing)::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.video-container:not(.playing):hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--text-hover);
}

.video-container.playing::before {
    display: none;
}

/* 宽屏幕下scenario section样式补充 */
@media (min-aspect-ratio: 4/3) {
    .scenario-header h2 {
        font-size: 2rem;
    }

    .scenario-header p {
        font-size: 1rem;
    }

    .video-container:not(.playing)::before {
        font-size: 2.2rem;
    }
}

/* 竖屏幕下scenario section样式补充 - 减少padding至一半 */
@media (max-aspect-ratio: 4/3) {
    .scenario-section {
        padding: 30px 0 2px; /* 减少padding：60px→30px, 3px→2px */
    }

    .scenario-header h2 {
        font-size: 1.5rem;
    }

    .scenario-header p {
        font-size: 0.9rem;
    }

    .video-container:not(.playing)::before {
        font-size: 2rem;
    }
}

/* Contact Section Styles */
.contact-section {
    background: var(--bg-color);
    padding: 60px 0;
    margin-top: 10px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.contact-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-qr-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contact-qr-image {
    width: 120px;
    height: 120px;
    border: 2px solid #FACD66;
    border-radius: 0;
    object-fit: cover;
}

.contact-qr-text {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    text-align: center;
}

.contact-qr-text:first-of-type {
    font-weight: 500;
}

/* 宽屏幕下contact section样式 */
@media (min-aspect-ratio: 4/3) {
    .contact-section {
        padding: 60px 0;
        margin-top: 80px;
        z-index: 2;
        position: relative;
    }

    .contact-content {
        width: 70%;
        max-width: none;
        margin-left: 30%;
        padding-right: 3px;
        box-sizing: border-box;
    }
  .contact-header h2 {
        font-size: 1.8rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .contact-qr-container {
        flex-direction: row;
        gap: 3rem;
    }

    .contact-qr-image {
        width: 120px;
        height: 120px;
    }

    .contact-qr-text {
        font-size: 0.9rem;
    }
}

/* 竖屏幕下contact section样式 - 减少padding至一半 */
@media (max-aspect-ratio: 4/3) {
    .contact-section {
        padding: 20px 10px; /* 减少padding：40px→20px, 20px→10px */
        margin-top: 30px; /* 减少margin：60px→30px */
    }

    .contact-header h2 {
        font-size: 1.4rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .contact-qr-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-qr-image {
        width: 100px;
        height: 100px;
        border-radius: 0;
    }

    .contact-qr-text {
        font-size: 0.8rem;
    }
}

/* Home返回按钮样式 - 与slogan-controls保持一致 */
.back-button {
    order: 3;
    align-self: center;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 6px 10px;
    gap: 5px;
    margin-top: 0;
    backdrop-filter: blur(5px);
    height: 36px;
    box-sizing: border-box;
}

.back-button:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.6);
}

.back-icon {
    width: 20px;
    height: 20px;
    fill: var(--icon-color);
    transition: fill 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    opacity: 0.65;
}

.back-button:hover .back-icon {
    fill: var(--icon-color-hover);
    opacity: 0.85;
}

.back-text {
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
    color: var(--text-color);
    margin-left: 2px;
}

.back-button:hover .back-text {
    color: var(--text-hover);
}

