@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;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: #feedef;
    font-size: 18px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    letter-spacing: -1px;
    line-height: 17px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.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, .nav-links a.active::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;
}

/* 页面标题 */
.page-header {
    /*margin: 80px auto;*/
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--gray);
    /*width: 95%;*/
    /*height: 866px;*/
    /*border-radius: 16px;*/
    /*box-shadow: 0 20px 40px rgba(0,0,0,0.25);*/
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.page-header .carousel-content {
    bottom: 20%;
    left: 15%;
    position: absolute;
    font-size: 3.5rem;
    color: #ffffff;
    z-index: 20;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.header-image {
    /*max-width: 1500px;*/
    margin: 0 auto;
    /*border-radius: 20px;*/
    overflow: hidden;
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
    position: relative;
    z-index: 1;
}

.header-image img {
    width: 100%;
    height: 100%;
    /*display: block;*/
    object-fit: cover;
}

.main-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.main-image:hover img {
    transform: scale(1.02);
}

/* 设计理念部分 */
.design-concept {
    padding: 6rem 5%;
    background-color: var(--gray);
}

.concept-container {
    margin: 0 auto;
}

.section-title {
    font-size: 60.786px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.834;
    position: relative;
    font-family: HarmonyOSSansSCBold;
}

.section-title2 {
    font-weight: 500;
    /*color: var(--primary);*/
    position: relative;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: xx-large;
}


.concept-content {
    text-align: center;
    margin: 0 auto 4rem;
    width: 70%;
}

.concept-content img {
    width: 100%;
}

.concept-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: #555;
}

.concept-image {
    max-width: 1000px;
    margin: 0 auto;
    /*border-radius: 16px;*/
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.concept-image img {
    width: 100%;
    display: block;
}

/* 名称设计部分 */
/* 名称设计部分 - 优化后的样式 */
.name-design {
    padding: 6rem 5%;
    background: var(--light)
}


.name-design h2 {
    font-size: 60.786px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.834;
    position: relative;
}

.name-design h3 {
    font-weight: 500;
    position: relative;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: xx-large;
}

.name-design-container {
    max-width: 80%;
    margin: 0 auto;
}

.name-design-block {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    background-color: var(--gray);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.name-design-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.name-design-image {
    flex: 0 0 40%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.name-design-image img {
    max-width: 100%;
    height: auto;
}

.name-design-separator {
    width: 2px;
    height: 15rem;
    border: dashed 1px rgb(149, 149, 149);
    margin: 0 2rem;
    margin-left: 3rem;
}

.name-design-content {
    flex: 1;
    padding: 3rem 4rem 3rem 2rem;
}

.name-design-content h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 28px;
}

.name-design-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.name-design-content p b {
    font-weight: 600;
    color: #000000;
}

.name-design-top {
    /*border-radius: 16px;*/
    /*overflow: hidden;*/
    /*box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);*/
}

.name-design-top img {
    margin: 3rem;
    width: 500px;
    display: block;
    object-fit: cover;
    /*border-radius: 16px;*/
}

.name-design-bottom img {
    margin: 3rem;
    width: 500px;
    display: block;
    object-fit: cover;
    /*border-radius: 16px;*/
    font-size: x-large;
}

.poster {
    width: 100%;
    background-color: var(--gray);
    padding: 5rem 5%;
}

.slogan-en {
    font-weight: bold;
    font-size: 60.786px;
    text-transform: uppercase;
    line-height: 0.834;
    text-align: center;
    margin-bottom: 10px;
    font-family: HarmonyOSSansSCBold;
}


.slogan-cn {
    font-size: xx-large;
    text-align: center;
    margin-bottom: 50px;
}

.poster .items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: auto 100px;
}

.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;
    justify-content: flex-end;
}

.poster .item:hover {
    transform: translateY(-5px);
}

.poster .item-icon {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.poster .item-icon :hover {
    transform: scale(1.1);
}

.item-icon img{
            width: 100%;
    object-fit: cover;
    height: 100%;
}

.poster .item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem auto;
    color: var(--light);
    background-color: #000000;
    width: 70%;
}

.poster .item-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 20px 60px
}

/* 响应式设计 */
@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);
    }
}

.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;
}

/* 设计咖色部分 */
.design-colors {
    padding: 6rem 5%;
    background-color: var(--gray);
    text-align: center;
}

.colors-container {
    max-width: 1500px;
    margin: 0 auto;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.color-item {
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.color-item:hover {
    transform: translateY(-5px);
}

.color-swatch {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.color-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.color-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 设计灵感部分 */
.design-inspiration {
    padding: 6rem 5%;
}

.inspiration-container {
    max-width: 1500px;
    margin: 0 auto;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.inspiration-item {
    text-align: center;
    transition: transform 0.3s;
}

.inspiration-item:hover {
    transform: translateY(-5px);
}

.inspiration-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.inspiration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.inspiration-item:hover .inspiration-image img {
    transform: scale(1.1);
}

.inspiration-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.inspiration-content p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
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: 1.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) {
    .name-design-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .color-palette {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .inspiration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .color-palette {
        grid-template-columns: 1fr;
    }

    .color-swatch {
        height: 100px;
    }

    .inspiration-image {
        height: 200px;
    }
}

/* 新增动画相关样式 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* 页面标题动画 */
.page-header .carousel-content h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.page-header .carousel-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.page-header.animated .carousel-content h1,
.page-header.animated .carousel-content p {
    opacity: 1;
    transform: translateY(0);
}

/* 标题下划线动画 */
.section-title::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease 0.5s;
}

.section-title.animated::after {
    transform: scaleX(1);
}

/* 产品系列项动画 */
.poster .item {
    opacity: 0;
    transform: translateY(30px) rotateY(30deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.poster .item.animated {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}