@font-face {
    font-family: AlibabaPuHui;
    src: url('/static/font/AlibabaPuHuiTi-3-55-Regular.ttf')
}

@font-face {
    font-family: HarmonyOSSansSCBold;
    src: url('/static/font/HarmonyOS_Sans_SC_Bold.ttf')
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: AlibabaPuHui;
}

:root {
    --primary: rgb(254, 197, 1);
    --secondary: #7ECEFD;
    --accent: #FFC36B;
    --dark: rgba(28, 28, 28, 0.95);
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --background-color: rgba(28, 28, 28, 0.7);
}

body {
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.2rem 5%;
    /*background-color:  var(--background-color) ;*/
    z-index: 1000;
    transition: all 0.3s ease;
    height: 6rem;
}

nav:hover {
    background-color: var(--background-color);
}

.nav-scrolled {
    padding: 0.8rem 5%;
    background-color: var(--background-color);
}

.logo {
    width: 7.344vw;
    height: 3.292vw;
    display: block;
    background: url(/static/image/logo.png) center;
    background-size: 100%;
    /*margin-left: -15.312vw;*/
    object-fit: cover;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.2rem;
}

.nav-links a {
    text-decoration: none;
    /*color: var(--light);*/
    /*font-weight: 550;*/
    /*font-size: 1rem;*/
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    font-size: 18px;
    letter-spacing: -1px;
    line-height: 17px;
    color: #feedef;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    /*background-color: var(--primary);*/
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-actions i {
    font-size: 1.4rem;
    margin-left: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-actions i:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
}

/* 轮播图样式 */
.carousel {
    /*margin-top: 80px;*/
    position: relative;
    /*height: 900px;*/
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #ff4d73;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 139, 0.4);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 品牌展示区域 */
.brand-showcase {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    justify-content: center;
}


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 280px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
}

/* 公司介绍 */
.about {
    padding: 7rem 5%;
    /*background-color: var(--gray);*/
    display: flex;
    align-items: center;

}

.about_a {
    animation: fadeInUp 1s ease-out forwards;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: HarmonyOSSansSCBold;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;

}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #000000;
    text-align: center;


}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
}


/*  跳转区域*/
.poster {
    width: 100%;
    margin: 5rem auto;
    background-color: rgb(146, 1, 1);
    padding: 5rem 5%;
}


.slogan-cn {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.poster .items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 8rem 200px;
}

.poster .items a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-decoration: none; /* 去掉下划线 */
}

.poster .item {
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.poster .item:hover {
    transform: translateY(-5px);
}

.poster .item-icon {
    margin-bottom: 15px;
    font-size: 3.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.poster .item:hover .item-icon {
    transform: scale(1.3);
}

.poster .item:hover {
    transform: scale(1.3);
}

.poster .item-title {
    font-size: 2rem;
    font-weight: 300;
    margin: 2rem auto 0;
    color: #ffdd00;
}

.poster .item-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 10px 60px;
    color: #ffdd00;
}

.more {
    text-align: center;
    font-size: 1rem;
    width: 10%;
    height: 2rem;
    background-color: #000000;
    margin: 5rem auto 0;
}

.more a {
    text-decoration: none;
    color: var(--light);

}

.more a:hover {
    color: var(--primary);

}

/* 响应式设计 */
@media (max-width: 768px) {
    .slogan-en {
        font-size: 2rem;
    }

    .slogan-cn {
        font-size: 1.6rem;
    }

    .items {
        grid-template-columns: 1fr;
    }

    .poster {
        padding: 25px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }

}

.poster .item {
    animation: fadeIn 0.6s ease forwards;
}

.poster .item:nth-child(1) {
    animation-delay: 0.1s;
}

.poster .item:nth-child(2) {
    animation-delay: 0.2s;
}

.poster .item:nth-child(3) {
    animation-delay: 0.3s;
}

.poster .item:nth-child(4) {
    animation-delay: 0.4s;
}


/*品牌*/
.IP_history {
    width: 100%;
    /*max-width: 1900px;*/
    overflow: hidden;
    margin: 5rem auto;
}

.IP_history .title {
    text-align: center;
    max-width: 800px;
    margin: 8rem auto 2rem;
    position: relative;

}

.IP_history .title h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.IP_history .title p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.IP_history .list {
    display: flex;
    overflow-x: auto;
    /*gap: 15px;*/
    padding: 20px 0;
    justify-content: center;
}

.IP_history .list::-webkit-scrollbar {
    height: 8px;
}

.IP_history .list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.IP_history .list::-webkit-scrollbar-thumb {
    background: #ff8a00;
    border-radius: 4px;
}

.IP_history .item {
    flex: 0 0 300px;
    height: 500px;
    width: 630px;
    background: rgba(0, 0, 0, 0.7);
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.IP_history .item:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.8);
}


.IP_history .icon {
    position: absolute;
    transform: translate(-50%, -50%);
    height: 600px;
    object-fit: contain;
    transition: all 0.5s ease 0.2s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    -webkit-transform: translateX(-50%) translateY(-1.823vw) scale(.8);
    z-index: 200
}

.IP_history .item.reverse .icon {
    -webkit-transform: translateX(0%) translateY(-1.823vw) scale(.8)
}

.IP_history .box {
    width: 0;
    height: 500px;
    position: absolute;
    overflow: hidden;
    object-fit: contain;
    z-index: 20
}

.IP_history .bac {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: width 0.6s ease;
}

/* 最后两个item从右向左展开 */
.IP_history .item.reverse .bac {
    left: auto;
    right: 0;
}


.IP_history .item.reverse .box {
    width: 0;
    height: 500px;
    position: absolute;
    overflow: hidden;
    object-fit: contain;
    z-index: 20;
    right: 0;

}

.IP_history .list .item:first-of-type {
    color: #d33339;
    background: url(/static/image/home/5-1-1.png) center / cover no-repeat;
    object-fit: contain;
}

.IP_history .list .item:nth-of-type(2) {
    color: #c6acd3;
    background: url(/static/image/home/5-2-1.png) center / cover no-repeat;
    object-fit: contain;
}

.IP_history .list .item:nth-of-type(3) {
    color: #e77b30;
    background: url(/static/image/home/5-3-1.png) center / cover no-repeat;
    object-fit: contain;
}

.IP_history .list .item:nth-of-type(4) {
    color: #add9d9;
    background: url(/static/image/home/5-4-1.png) center / cover no-repeat;
    object-fit: contain;
}


/*创作者心路*/
.Journey {
    width: 100%;
    /*max-width: 1900px;*/
    overflow: hidden;
    margin: 5rem auto 0;
    padding-bottom: 5rem;
    background-color: rgb(236, 236, 236);
    padding: 5rem 5%;
}

.Journey .title {
    text-align: center;
    max-width: 800px;
    margin: 8rem auto 2rem;
    position: relative;

}

.Journey .title h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.Journey .title p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.Journey .list {
    display: flex;
    overflow-x: auto;
    /*gap: 15px;*/
    padding: 20px 0;
    justify-content: center;
}

.Journey .list::-webkit-scrollbar {
    height: 8px;
}

.Journey .list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.Journey .list::-webkit-scrollbar-thumb {
    background: #ff8a00;
    border-radius: 4px;
}

.Journey .item {
    flex: 0 0 400px;
    height: 500px;
    width: 630px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.Journey .item:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.8);
}


.Journey .icon {
    position: absolute;
    transform: translate(-50%, -50%);
    height: 600px;
    object-fit: contain;
    transition: all 0.5s ease 0.2s;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
    -webkit-transform: translateX(-50%) translateY(-1.823vw) scale(.8);
    z-index: 200
}

.Journey .item.reverse .icon {
    -webkit-transform: translateX(0%) translateY(-1.823vw) scale(.8)
}

.Journey .box {
    width: 0;
    height: 500px;
    position: absolute;
    overflow: hidden;
    object-fit: contain;
    z-index: 20;

}

/* 动画效果 */
@keyframes move {
    0% {
        width: 700px;
    }
    100% {
        width: 900px;
    }

}

.Journey .bac {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: width 0.6s ease;
}

/* 最后两个item从右向左展开 */
.Journey .item.reverse .bac {
    transition: margin-left 2s;
    left: auto;
    right: 0;
}

/*.Journey .item.reverse:hover .bac {*/
/*    transition: margin-left 2s;*/
/*    margin-left: 100px;*/

/*}*/


.Journey .item.reverse .box {
    width: 0;
    height: 500px;
    position: absolute;
    overflow: hidden;
    object-fit: contain;
    z-index: 20;
    right: 0;

}

.Journey .list .item:first-of-type {
    color: #d33339;
    background-image: url(/static/image/home/6-1-1.png);
    object-fit: contain;
}

.Journey .list .item:nth-of-type(2) {
    color: #c6acd3;
    background-image: url(/static/image/home/6-2-1.png);
    object-fit: contain;
}

.Journey .list .item:nth-of-type(3) {
    color: #e77b30;
    background-image: url(/static/image/home/6-3-1.png);
    object-fit: contain;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .title h1 {
        font-size: 2.2rem;
    }

    .title p {
        font-size: 1rem;
    }

    .item {
        flex: 0 0 280px;
        height: 350px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*.item:nth-child(1) { animation-delay: 0.1s; }*/
/*.item:nth-child(2) { animation-delay: 0.2s; }*/
/*.item:nth-child(3) { animation-delay: 0.3s; }*/
/*.item:nth-child(4) { animation-delay: 0.4s; }*/


@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 保持原有的CSS样式不变，只修改视频相关部分 */
.video-section {
    padding: 5rem 5%;
}

.video-container {
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
}

/* 隐藏默认控件 */
video::-webkit-media-controls-enclosure {
    display: none;
}

video:hover::-webkit-media-controls-enclosure {
    position: absolute;
    display: block;
/ / 鼠标hover展示所有控件
}


/* 页脚 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column {
    padding: 0 2rem 0 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    padding-top: 4rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    margin-top: 3.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    text-align: center;
    color: #999;
}

.footer-column a {
    text-decoration: none;
    outline: none;
    color: var(--light)
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .carousel {
        height: 400px;
    }

    .carousel-content h2 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 300px;
    }

    .carousel-content {
        left: 5%;
    }

    .carousel-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }
}