@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);
    --b: rgb(242, 242, 242);
}

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-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;
}

/* 页面标题 - 修改后包含主视觉图片 */
.page-header {
    /*margin: 80px auto;*/
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--b);
    /*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;
    opacity: 1;
}

.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;
}

/* 品牌故乡部分 - 修改为居中 */
.brand-hometown {
    padding: 4rem 5%;
    background-color: var(--b);
    text-align: center;
}

.hometown-container {
    max-width: 90%;
    margin: 0 auto;
}

.hometown-content h2 {
    margin-top: 2rem;
    font-size: 60.786px;
    margin-bottom: 2rem;
    font-weight: bold;
    /*color: var(--primary);*/
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    line-height: 0.834;
    font-family: HarmonyOSSansSCBold;
}


.hometown-content h3 {
    font-size: xx-large;
    line-height: 0.3;
    font-weight: 500;
    margin-bottom: 3rem;
    /*color: var(--primary);*/
    position: relative;
}

.brand-tab {
    margin: 7rem auto 2rem;
}


/* 可切换的内容部分 */
.tab-container {
    max-width: 90%;
    margin: 3rem auto 0;
    position: relative;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.tab-btn {
    width: 13rem;
    padding: 0.5rem 1rem;
    margin: 0 1.8rem;
    background: #000000;
    border: none;
    letter-spacing: 1px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: rgb(174, 0, 0);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-item {
    width: 70%;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.tab-item.reverse {
    direction: rtl;
}

.tab-item.reverse > * {
    direction: ltr;
}

.tab-image {
    /*border-radius: 16px;*/
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tab-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}


.tab-text {
    padding: 1rem;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    text-align: left;
}

.tab-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* IP性格部分 */
.ip-personality {
    padding: 4rem 5%;
    background-color: var(--gray);
    height: 800px;
}

.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;
}


/* IP文化部分 */
.ip-culture {
    padding: 4rem 5%;
    background-color: var(--b);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 86%;
    margin: 0 auto;
}

.culture-card {
    /*background: var(--gray);*/
    /*border-radius: 16px;*/
    /*padding: 2.5rem;*/
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.culture-icon {
    width: 100%;
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.culture-icon img {
    width: 100%;
    object-fit: cover;
}

.culture-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    position: absolute;
    z-index: 2;
    transition: all 0.3s ease;
    text-transform: uppercase;
    padding: 2rem 0;
    height: 6rem;
    width: -webkit-fill-available;
    background-color: white;
    bottom: 0;
}

.culture-description {
    color: #ffffff;
    line-height: 1.6;
    position: absolute;
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    /*width: 80%;*/
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-align: left;
    height: 100%;
}

.culture-description img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


.culture-card:hover::before {
    opacity: 0.9;
}

.culture-card:hover .culture-icon,
.culture-card:hover h3 {
    color: white;
    /*transform: translateY(-20px);*/
    opacity: 0.1;

}

.culture-card:hover .culture-description {
    opacity: 1;
    /*transform: translate(-50%, -50%);*/
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: red;
}

/* 页脚 */
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) {
    .tab-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tab-item.reverse {
        direction: ltr;
    }
}

@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;
    }

    .personality-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-btn {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .personality-card,
    .culture-card {
        padding: 2rem 1.5rem;
        height: 250px;
    }

    .personality-icon,
    .culture-icon {
        font-size: 2.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* 添加动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 动画类 */
.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

/* 初始状态隐藏需要动画的元素 */
.fade-element {
    opacity: 0;
}

/* 延迟类 */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}



