/* Index Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: #fff;
    background-color: #505050;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Top header row */
.top-header {
    background-color: #505050;
    padding: 10px 0;
    color: #fff;
    width: 100%;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.company-name {
    text-align: center;
    flex: 1;
}

.company-contact {
    display: flex;
    justify-content: flex-end;
}

.company-contact span {
    margin-left: 20px;
}

/* Main header row */
.main-header {
    background-color: #000;
    padding: 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin: 5px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 5px;
}

.nav-menu li {
    margin-left: 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.nav-menu li span {
    font-size: 13px;
}

.nav-menu a {
    font-size: 13px;
    position: relative;
    color: #fff;
    padding-bottom: 0px;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

/* Banner Video Section */
.banner-news {
    position: initial;
    margin-top: 93px;
    padding-top: 0;
    width: 100%;
}

.slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.video-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.video-wrapper {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-content {
    position: absolute;
    bottom: 100px;
    left: 80px;
    color: #fff;
    z-index: 10;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.video-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-content p {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Section titles */
.section-title-container {
    padding: 0;
    margin: 0;
    background-color: #505050;
    width: 100%;
    height: 60px; /* Fixed height for all title containers */
    position: relative; /* For absolute positioning of h2 */
    display: flex;
    align-items: flex-end; /* Bottom align content */
}

.seasonal-title {
    width: 100%;
    text-align: left;
    padding: 0 0 15px 0; /* Padding only at bottom */
    background-color: #505050;
    color: #fff;
    font-size: 19px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Feature Records Section */
.feature-records {
    background-color: #000;
    padding: 0;
    margin-top: 0; /* Ensure consistent spacing after title */
    width: 100%;
}

.feature-item {
    display: flex;
    position: relative;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    width: 100%;
    padding: 30px 0;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: 300px;
    z-index: 2;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content-background-image {
    position: absolute;
    width: 40%;
    height: 85%;
    right: 5%;
    top: 10%;
    z-index: 1;
    overflow: hidden;
}

.feature-content-background-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item .feature-content-background-image {
    right: 5%;
    width: 40%;
}

.feature-item .feature-image {
    margin-right: -20%;
}

.feature-item.reverse .feature-content-background-image {
    left: 5%;
    right: auto;
}

.feature-item.reverse .feature-image {
    margin-left: -20%;
    margin-right: 0;
}

.feature-content {
    flex: 0 0 30%;
    position: relative;
    z-index: 3;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: left;
    align-self: flex-end;
    margin-bottom: 20px;
}

/* Image Gallery Layout */
.image-gallery {
    width: 100%;
    overflow: hidden;
}

.gallery-layout {
    display: flex;
    width: 100%;
    height: 300px; /* Match feature-image height */
}

.gallery-main-image {
    flex: 0 0 60%; /* Main image takes 60% of width */
    height: 100%;
    padding-right: 2.5px; /* Half of the 5px gap */
}

.gallery-side-images {
    flex: 0 0 40%; /* Side images take 40% of width */
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 2.5px; /* Half of the 5px gap */
}

.gallery-side-top {
    height: calc(70% - 18px); /* 70% minus half of the gap */
    overflow: hidden;
    min-height: 0; /* Prevent content from overflowing */
}

.gallery-side-bottom {
    height: calc(30% - 4px); /* 30% minus half of the gap */
    overflow: hidden;
    min-height: 0; /* Prevent content from overflowing */
    flex-shrink: 1; /* Allow element to shrink if needed */
}

.gallery-main-image img,
.gallery-side-top img,
.gallery-side-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments for gallery layout */
@media (max-width: 768px) {
    .gallery-layout {
        flex-direction: column;
        height: auto;
    }

    .gallery-main-image,
    .gallery-side-images {
        flex: 0 0 100%;
        padding: 0;
    }

    .gallery-main-image {
        height: 250px;
        margin-bottom: 5px;
    }

    .gallery-side-images {
        height: 200px;
    }

    .gallery-side-top,
    .gallery-side-bottom {
        height: 50%;
    }
}

.feature-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-content p {
    color: #ccc;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-section {
    padding: 0;
    margin-top: 0; /* Ensure no extra top margin */
    background-color: #000;
    width: 100%;
}

.gallery-row {
    display: flex;
    gap: 20px;
    margin: 0 auto 20px; /* Remove top margin of first row */
    max-width: 1200px;
    height: 300px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 100%;
    flex: 0 0 auto;
    min-width: 200px;
}

.gallery-row:nth-child(odd) .gallery-item:nth-child(1) {
    flex: 0 0 250px;
}

.gallery-row:nth-child(odd) .gallery-item:nth-child(2) {
    flex: 1;
    min-width: 400px;
}

.gallery-row:nth-child(odd) .gallery-item:nth-child(3) {
    flex: 0 0 250px;
}

.gallery-row:nth-child(even) .gallery-item:nth-child(1) {
    flex: 0 0 250px;
}

.gallery-row:nth-child(even) .gallery-item:nth-child(2) {
    flex: 0 0 250px;
}

.gallery-row:nth-child(even) .gallery-item:nth-child(3) {
    flex: 1;
    min-width: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    color: #ccc;
}

/* Section divider */
.section-divider-line {
    height: 50px;
    background-color: #505050;
    margin: 0;
    width: 100%;
}

/* Footer */
footer {
    background-color: #505050;
    color: white;
    padding: 0;
    width: 100%;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #fff;
}

.footer-column ul li a:hover {
    color: #ddd;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ddd;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 1240px) {
    .gallery-row {
        width: 95%;
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .company-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .company-name {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .company-contact {
        justify-content: center;
    }

    .company-contact span {
        margin-left: 0;
        margin-right: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .feature-item .feature-image,
    .feature-item.reverse .feature-image {
        margin-right: 0;
        margin-left: 0;
    }

    .feature-content-background-image {
        display: none;
    }

    .gallery-row {
        width: 90%;
        height: 250px;
    }

    .video-wrapper {
        height: 450px;
    }

    .video-content {
        bottom: 60px;
        left: 40px;
    }

    .video-content h2 {
        font-size: 36px;
    }

    .video-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .banner-news {
        margin-top: 60px;
    }

    .video-wrapper {
        height: 350px;
    }

    .video-content {
        bottom: 40px;
        left: 30px;
        max-width: 80%;
    }

    .video-content h2 {
        font-size: 28px;
    }

    .video-content p {
        font-size: 16px;
    }

    .feature-image {
        width: 100%;
        flex: 0 0 100%;
        height: auto;
        min-height: 250px;
    }

    .feature-content {
        width: 100%;
        flex: 0 0 100%;
    }

    .gallery-row {
        flex-direction: column;
        height: auto;
        gap: 15px;
        width: 95%;
        margin: 15px auto;
    }

    .gallery-item {
        height: auto;
        min-height: 200px;
        width: 100%;
        max-width: 100%;
    }

    .gallery-item .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .video-wrapper {
        height: 250px;
    }

    .video-content h2 {
        font-size: 20px;
    }

    .video-content p {
        display: none;
    }

    .feature-content h3 {
        font-size: 20px;
    }

    .seasonal-title {
        font-size: 16px;
        padding: 10px 15px;
    }

    .gallery-item {
        height: 180px;
    }

    .gallery-row {
        width: 100%;
        padding: 0 15px;
    }
}

/* Video play button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
}