/* 全屏视频部分 */
.fullscreen-video {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* 视频退出动画 */
.fullscreen-video.exiting {
    animation: videoSlideUp 0.8s ease forwards;
}

@keyframes videoSlideUp {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

.fullscreen-video video {
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scroll-arrow {
    font-size: 36px;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-text {
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.xiangx-icon {
    animation: upIconBounce 1.8s ease-in-out infinite;
}

@keyframes upIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 全屏图片轮播 */
.image-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    /* background-size: cover;
    background-position: center; */
    transition: opacity 0.3s ease;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide .pc {
    display: block;
}

.slide .m {
    display: none;
}

.slider-text {
    position: absolute;
    top: 82%;
    left: 50%;
    width: min(90%, 840px);
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 5;
}

.slider-text.slide-text {
    text-align: center;
}

.slide.active,
.slide.slide-leaving {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

.slide.entering,
.slide.entering-from-top {
    opacity: 1;
    z-index: 2;
}

.slide.initial-state {
    opacity: 0;
    transform: translateY(100%);
    z-index: 1;
}

.slide.entering {
    transform: translateY(100%);
    animation: slideUp 0.8s ease forwards;
}

.slide.entering-from-top {
    transform: translateY(-100%);
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 120px;
}

.slide-text {
    color: white;
    text-align: left;
}

.slide-text h2 {
    font-size: 52px;
    font-weight: 500;
    margin: 10px 0;
    letter-spacing: 5px;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); */
}

@media (max-width: 1640px) and (min-width: 1371px) {
    .slide-text h2 {
        font-size: 42px;
    }
}

@media (max-width: 1371px) and (min-width: 1025px) {
    .slide-text h2 {
        font-size: 38px;
    }
}

.slide-text p {
    font-size: 20px;
    letter-spacing: 4px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slider-text > div {
    font-size: 18px;
}

.slider-arrows {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.slider-arrow {
    width: 25px;
    height: 25px;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow img {
    width: 10px;
}

.slider-arrow:hover {
    background: white;
}

.slider-arrow:hover img {
    filter: invert(1);
}

/* 品牌视频部分 */
.brand-video {
    height: var(--viewport-minus-navbar);
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 0;
}

.brand-video video,
.brand-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 品牌介绍部分 */
.brand-intro {
    height: auto;
    min-height: 170px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 80px;
    margin-bottom: 0;
    text-align: center;
    background-color: white;
    box-sizing: border-box;
}

.brand-intro h2 {
    font-family: 500;
    font-size: 48px;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    letter-spacing: 1.5px;
    color: #4a4a4a;
}

.brand-intro p {
    font-size: 15px;
    line-height: 1.65;
    max-width: 980px;
    margin: 0 auto 6px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
    letter-spacing: 0.5px;
    color: #999;
}

.brand-intro.animated h2,
.brand-intro.animated p {
    opacity: 1;
    transform: translateY(0);
}

/* 四大系列部分 */
.series-section {
    /* padding-bottom: 18px; */
    background-color: white;
    margin-top: -2px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.series-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    letter-spacing: 1px;
}

.series-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #000;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0;
}

.series-card {
    position: relative;
    overflow: hidden;
    height: clamp(220px, calc((var(--viewport-minus-navbar) - 238px) / 2), 330px);
    cursor: pointer;
}

.series-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.series-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

.series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.5s ease;
    z-index: 1;
}

.series-card:hover .series-overlay {
    opacity: 0;
}

.series-name {
    font-size: 26px;
    /* font-weight: bold; */
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.series-english {
    font-size: 16px;
    /* margin-bottom: 40px; */
    opacity: 0.8;
    letter-spacing: 1.5px;
}

.series-button {
    font-size: 14px;
    color: white;
    cursor: pointer;
    letter-spacing: 1px;
    position: absolute;
    bottom: 40px;
    /* width: 104px; */
    text-align: center;
    /* left: calc(50% - 47px); */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.series-button::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.series-button::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.5s ease;
}

.series-button:hover::after {
    width: 0;
}

.series-button:hover::before {
    width: 100%;
}

.series-card:hover .series-button{
    opacity: 1;
}

/* 平板端响应式设计 */
@media (min-width: 769px) and (max-width: 1024px) {

    .slide-text h2 {
        font-size: 32px;
    }

    /* 视频和轮播图高度优化 */
    .fullscreen-video,
    .image-slider {
        height: 100vh;
    }

    /* 系列板块布局优化 */
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    /* 系列卡片高度优化 */
    .series-card {
        height: clamp(190px, calc((var(--viewport-minus-navbar) - 250px) / 2), 270px);
    }

    /* 系列标题内边距优化 */
    .series-section {
        padding: 0 30px 16px;
    }

    /* 品牌介绍内边距优化 */
    .brand-intro {
        min-height: 150px;
        padding: 24px 40px 18px;
    }

    /* 品牌介绍字体优化 */
    .brand-intro h2 {
        font-size: 34px;
        margin-bottom: 14px;
    }

    .brand-intro p {
        font-size: 15px;
        line-height: 1.55;
    }

    /* 系列名称字体优化 */
    .series-name {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .series-english {
        font-size: 14px;
    }

    /* 系列按钮位置优化 */
    .series-button {
        font-size: 13px;
        bottom: 35px;
        left: calc(50% - 45px);
    }

    /* 集团介绍内边距优化 */
    .group-intro {
        padding: 40px 40px;
    }

    .group-intro h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .group-intro p {
        font-size: 16px;
        line-height: 1.8;
    }

    /* 品牌新闻内边距优化 */
    .brand-news {
        padding: 40px 40px 10px;
    }

    .news-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    /* 新闻卡片字体优化 */
    .news-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .news-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* 新闻更多按钮字体优化 */
    .news-more {
        font-size: 13px;
    }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {

    /* 视频和轮播图优化 */
    .fullscreen-video,
    .image-slider {
        height: 100vh;
    }

    .slide .pc {
        display: none;
    }

    .slide .m {
        display: block;
    }

    /* 系列板块布局优化 */
    .series-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 0;
    }

    /* 品牌介绍样式优化 */
    .brand-intro {
        margin-bottom: 0;
        min-height: auto;
        padding: 18px 16px 14px;
    }

    .brand-intro h2 {
        font-size: 22px;
        margin-bottom: 10px;
        letter-spacing: 0.8px;
    }

    .brand-intro p {
        font-size: 13px;
        line-height: 1.45;
        letter-spacing: 0.2px;
        margin-bottom: 4px;
    }

    /* 系列卡片高度优化 */
    .series-card,
    .gef_xl .series-card {
        height: clamp(118px, calc((var(--viewport-minus-navbar) - 230px) / 2), 180px) !important;
    }

    /* 系列标题内边距优化 */
    .series-section {
        padding: 0 12px 12px;
    }

    .series-description {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.45;
    }


    /* 移动端系列名称优化 */
    .series-name {
        font-size: 15px;
        margin-bottom: 4px;
        letter-spacing: 0.6px;
    }

    .series-english {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    /* 系列按钮优化 */
    .series-button {
        font-size: 10px;
        bottom: 14px;
        left: 50%;
        padding: 3px 0;
    }

    /* 集团介绍优化 */
    .group-intro {
        padding: 30px 15px;
    }

    .group-intro h2 {
        font-size: 24px;
        margin-bottom: 18px;
        letter-spacing: 1px;
    }

    .group-intro p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 品牌新闻优化 */
    .brand-news {
        padding: 30px 15px 10px;
    }

    .news-title {
        font-size: 24px;
        margin-bottom: 25px;
        letter-spacing: 0.8px;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin: 0 auto 40px !important;
    }

    .news-card img {
        height: 160px;
    }

    .news-card h3 {
        font-size: 15px;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .news-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    .news-more {
        font-size: 11px;
        padding: 4px 0;
    }

    /* 滑动文字优化 */
    .slider-text {
        top: 80%;
        left: 50%;
        right: auto;
        width: 86%;
        transform: translate(-50%, -50%);
    }

    /* 轮播图箭头位置优化 */
    .slider-arrows {
        left: 15px;
        bottom: 30px;
    }

    .slide-text h2 {
        font-size: 24px;
        margin: 6px 0;
        letter-spacing: 2px;
    }

    .slide-text div {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    /* 城市景观图优化 */
    .city-view {
        height: 44vh;
    }

    /* 集团介绍文字优化 */
    .group-intro .group-note {
        font-size: 13px;
        line-height: 1.45;
    }

    /* 轮播图按钮大小优化 */
    .slider-arrow {
        width: 20px;
        height: 20px;
    }

    .slider-arrow img {
        width: 8px;
    }

    /* 品牌视频优化 */
    .brand-video {
        height: 50vh;
    }
}

/* 城市景观图 */
.city-view {
    position: relative;
    width: 100%;
    height: 68vh;
    overflow: hidden;
}

.city-view .city-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-view .scroll-indicator {
    position: absolute;
    bottom: 0;
    /* bottom: 40px; */
    left: 50%;
    transform: translateX(-50%);
    /* padding: 15px 0; */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* 集团介绍 */
.group-intro {
    padding: 26px 100px;
    text-align: center;
    background-color: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.group-intro h2 {
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 2px;
    color: #000;
}

.group-intro p,
.group-intro .group-note {
    font-size: 16px;
    line-height: 1.6;
    color: #999;
    max-width: 1000px;
    margin: 0 auto;
}

.group-intro .group-note {
    /* margin-bottom: 60px; */
}

/* 品牌新闻 */
.brand-news {
    padding: 50px 60px 10px;
    background-color: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 38px;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1px;
    color: #333;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    /* max-width: 1400px; */
    margin: 0 auto 100px;
}

.news-grid.pinpai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* max-width: 1400px; */
    margin: 0 auto 100px;
}

.news-card {
    /* text-align: center; */
    transition: transform 0.3s ease;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.news-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.news-more {
    display: block;
    text-align: center;
    /* margin: 0 auto 30px; */
    margin: 0 auto;
    padding: 6px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    width: fit-content;
}

.news-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
}

.news-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.5s ease;
}

.news-more:hover {
    transform: translateY(-3px);
}

.news-more:hover::after {
    width: 0;
}

.news-more:hover::before {
    width: 100%;
}

/* 响应式设计 */
@media (min-width: 769px) and (max-width: 1024px) {

    /* 城市景观图 */
    .city-view {
        height: 56vh;
    }

    /* 集团介绍 */
    .group-intro {
        padding: 30px 40px 28px;
    }

    .group-intro h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    /* 品牌新闻 */
    .brand-news {
        padding: 60px 40px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-grid.pinpai-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }

    .news-card img {
        height: 250px;
    }

}

@media (max-width: 768px) {

    /* 城市景观图 */
    .city-view {
        height: 44vh;
    }

    /* 集团介绍 */
    .group-intro {
        padding: 22px 18px 20px;
    }

    .group-intro h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .group-intro p,
    .group-intro .group-note {
        font-size: 13px;
        line-height: 1.45;
    }

    /* 品牌新闻 */
    .brand-news {
        padding: 40px 25px;
    }

    .news-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card img {
        height: 200px;
    }

}
