/* 轮播横幅 */
.royal-banner {
    background: #333;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.royal-banner-swiper {
    width: 100%;
    height: 100%;
}

.royal-banner-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 背景缩放动画 */
.royal-banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: imageZoom 10s infinite ease-in-out;
    z-index: 1;
}

/* 渐变遮罩 */
.royal-banner-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.royal-banner-info {
    position: relative;
    text-align: center;
    z-index: 3;
    width: 100%;
    text-shadow: 0.2rem 0.4rem 1rem rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.royal-banner-info h1 {
    font-size: 6.4rem;
    text-transform: uppercase;
    font-weight: bold;
    background: linear-gradient(90deg, #fff8e7 0%, #f7b700 20%, #ffd700 40%, #ffe093 60%, #f7b700 80%, #fff8e7 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: simpleGoldFlow 5s linear infinite;
}

@keyframes simpleGoldFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.royal-banner-info h2 {
    color: #fff;
    font-size: 4.8rem;
}

.royal-banner-info p {
    font-size: 4rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #f7b700;
    animation: gradientFlow 8s ease infinite;
}

/* 通用区块头部 */
.royal-title {
    margin-bottom: 6rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.royal-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 0.6rem;
    background-color: #f7b700;
    border-radius: 0.3rem;
}

.royal-title h3 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.royal-title h2 {
    font-size: 4rem;
    font-family: serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #d6d6d6;
}

.royal-title a {
    position: absolute;
    bottom: 0;
    right: 0;
    text-transform: capitalize;
}

/* 产品展示 */
.royal-iproducts-section {
    padding: 8rem 0;
    overflow: hidden;
    background: #f3f3f3;
}

.royal-iproducts-section .royal-title a {
    bottom: 3rem;
}

.royal-iproduct-card {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.03);
    background-color: #fff;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* .swiper-slide-active .royal-iproduct-card, */
.royal-iproduct-card:hover {
    transform: translateY(-1.2rem);
    box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.1);
    background: #f7b700;
}

/* .swiper-slide-active .royal-iproduct-card .royal-iproduct-info, */
.royal-iproduct-card:hover .royal-iproduct-info,
/* .swiper-slide-active .royal-iproduct-card .royal-iproduct-desc, */
.royal-iproduct-card:hover .royal-iproduct-desc {
    color: #fff;
}

.swiper-slide-active .royal-iproduct-card .btn,
.royal-iproduct-card:hover .btn {
    background-color: #fff;
    color: #f7b700;
}

.royal-iproduct-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.royal-iproduct-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #f3f3f3;
    overflow: hidden;
    border-radius: 0.6rem;
}

.royal-iproduct-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.royal-iproduct-card:hover .royal-iproduct-img {
    transform: scale(1.1);
}

.royal-iproduct-info {
    padding: 3rem 0;
    text-align: center;
    overflow: hidden;
}

.royal-iproduct-name {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.royal-iproduct-desc {
    line-height: 1.6;
    color: #999;
    margin: 0 0 3rem;
}

.royal-iproducts-prev {
    top: 10.5rem;
    right: 14.5rem;
    left: auto;
}

.royal-iproducts-next {
    top: 10.5rem;
    right: 9rem;
    left: auto;
}

/* 品牌视频 */
.royal-ibrand-section {
    padding: 8rem 0;
    background-image: url(/uploads/images/brand-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.royal-ibrand-content {
    display: flex;
}

.royal-ibrand-video {
    position: relative;
    height: 45rem;
    width: 50%;
    padding-left: 3rem;
}

.royal-ibrand-video-card {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0.3rem 0.6rem 1.2rem rgba(0, 0, 0, 0.03);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.royal-ibrand-video-card:hover .video-cover {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6.4rem;
    height: 6.4rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.5s ease;
}

.royal-ibrand-video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) rotate(360deg);
}

.video-play-btn i {
    color: #f7b700;
    font-size: 2rem;
    margin-left: 0.5rem;
}

.royal-ibrand-info {
    width: 50%;
    padding-right: 3rem;
}

.royal-ibrand-txt {
    line-height: 1.8;
    font-size: 1.6rem;
    margin-bottom: 6rem;
}

/* 新闻动态 */
.royal-inews-section {
    padding: 8rem 0;
    overflow: hidden;
}

.royal-inews-content {
    display: flex;
}

.royal-iheadlines-news {
    width: 60%;
    padding-right: 3rem;
}

.royal-iheadlines-news-card {
    display: flex;
    overflow: hidden;
    height: 100%;
    background: #e6e6e6;
    border-radius: 1rem;
    padding: 3rem;
}

.royal-iheadlines-news-info {
    width: 40%;
    padding-right: 3rem;
    overflow: hidden;
    height: 100%;
}

.royal-iheadlines-news-info .btn {
    margin-top: auto;
    align-self: flex-start;
}

.royal-iheadlines-news-date {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.royal-iheadlines-news-date i {
    margin-right: 0.5rem;
}

.royal-iheadlines-news-title {
    font-size: 2rem;
    margin: 3rem 0;
}

.royal-iheadlines-news-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 6rem;
}

.royal-iheadlines-news-img {
    width: 60%;
    overflow: hidden;
    border-radius: 0.6rem;
}

.royal-iheadlines-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.royal-iheadlines-news-card:hover .royal-iheadlines-news-img img {
    transform: scale(1.05);
}

.royal-ipopular-news {
    width: 40%;
}

.royal-ipopular-news-card {
    border-bottom: 0.1rem solid #e6e6e6;
}

.royal-ipopular-news-card:last-child {
    border-bottom: none;
}

.royal-ipopular-news a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-indent: 1em;
}

.royal-ipopular-news a::before {
    position: absolute;
    content: '';
    background: #666;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 100%;
    left: 0;
    top: 50%;
    margin-top: -0.25rem;
}

.royal-ipopular-news a:hover {
    padding-left: 1rem;
}

.royal-ipopular-news-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.royal-ipopular-news-date {
    color: #999;
    white-space: nowrap;
    margin-left: 2rem;
}

/* 合作伙伴 */
.royal-ipartner-section {
    padding: 8rem 0;
    background: #fff;
}

.royal-ipartner-content {
    display: flex;
    flex-wrap: wrap;
    margin: -1.5rem;
}

.royal-ipartner-item {
    width: 25%;
    padding: 1.5rem;
    overflow: hidden;
}

.royal-ipartner-card {
    background: #f3f3f3;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.royal-ipartner-card img {
    width: 12rem;
    transition: transform 0.3s ease;
}

.royal-ipartner-card:hover img {
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 992px) {
    .royal-banner {
        margin-top: 5.1rem;
        height: 50vh;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .royal-banner-info {
        text-align: center;
    }

    .royal-banner-info h1 {
        font-size: 4rem;
    }

    .royal-banner-info h2 {
        font-size: 2.4rem;
    }

    .royal-banner-info p {
        font-size: 2.4rem;
    }

    /* 区块头部响应式 */
    .royal-title {
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .royal-title::after {
        height: 0.3rem;
        width: 4.8rem;
    }

    .royal-title h3 {
        font-size: 2rem;
        margin: 0;
    }

    .royal-title h2 {
        font-size: 2rem;
        margin: 0 0 1rem;
    }

    .royal-title a {
        font-size: 1.2rem;
    }

    /* 产品区域 */
    .royal-iproducts-section .swiper-wrapper {
        padding: 1.5rem 0 0;
    }

    .royal-iproducts-section {
        padding: 3rem 0;
    }

    .royal-iproducts-prev,
    .royal-iproducts-next {
        display: none;
    }

    .royal-iproduct-card {
        padding: 2rem;
    }

    /* 新闻区域 */
    .royal-inews-section {
        padding: 3rem 0;
    }

    .royal-inews-content {
        display: block;
        padding-top: 1rem;
    }

    .royal-iheadlines-news {
        width: 100%;
        padding: 0;
    }

    .royal-iheadlines-news-card {
        display: block;
        height: auto;
        padding: 2rem;
    }

    .royal-iheadlines-news-info {
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .royal-iheadlines-news-title {
        margin: 0 0 1.5rem;
        font-size: 1.8rem;
    }

    .royal-iheadlines-news-info .btn {
        display: none;
    }

    .royal-iheadlines-news-desc {
        margin: 0;
        font-size: 1.4rem;
    }

    .royal-iheadlines-news-img {
        width: 100%;
        height: 20rem;
    }

    .royal-ipopular-news {
        width: 100%;
    }

    /* 品牌视频区域 */
    .royal-ibrand-section {
        padding: 3rem 0;
    }

    .royal-ibrand-content {
        display: block;
    }

    .royal-ibrand-info {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }

    .royal-ibrand-txt {
        margin-bottom: 1.5rem;
        font-size: 1.4rem;
    }

    .royal-ibrand-video {
        width: 100%;
        padding: 0;
        height: 20rem;
        margin-top: 1.5rem;
    }

    .video-play-btn {
        width: 6rem;
        height: 6rem;
    }

    /* 合作伙伴区域 */
    .royal-ipartner-section {
        padding: 3rem 0;
    }

    .royal-ipartner-item {
        padding: 0.75rem;
    }

    .royal-ipartner-content {
        margin: -0.75rem;
    }

    .royal-ipartner-card {
        padding: 0.75rem;
    }

    .royal-ipartner-card img {
        width: 8rem;
    }
}