@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')
}

@font-face {
    font-family: AlibabaPuHuiHeavy;
    src: url('/static/font/AlibabaPuHuiTi-3-105-Heavy.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;
    /*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 h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.header-image img {
    width: 100%;
    display: block;
}


.main-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* 推广案例部分 */
.proapp-cases {
    padding: 6rem 0 0 0;
    text-align: center;
}

.section-title {
    margin-top: 2rem;
    font-size: 40.786px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    /*color: var(--primary);*/
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    line-height: 0.834;
    font-family: HarmonyOSSansSCBold;
}

.section-title2 {
    font-size: x-large;
    line-height: 1rem;
    font-weight: 500;
    margin-bottom: 3rem;
    /*color: var(--primary);*/
    position: relative;
}


.case-container {
    text-align: left;
    margin: 0 auto;
}

/* 烟台红了快闪活动 */
.yantai-event {
    max-width: 100%;
    background: rgb(18, 79, 71);
    /*border-radius: 20px;*/
    overflow: hidden;
    /*margin: 3rem auto;*/
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    justify-content:center;
    /*grid-template-columns: 1fr 1fr;*/
}

.event-image {
    position: relative;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-image:hover img {
    transform: scale(1.05);
}

.event-content {
    padding: 5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-img {
    margin-left: 9rem;
    margin-bottom: 1rem;
}

.event-desc {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1;
    text-align: center;
}

.event-stats {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 2rem;
}

.stat-item {
    text-align: center;
    background: rgb(221, 30, 1);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3.5rem;
    /*font-weight: bold;*/
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.event-btn {
    display: inline-block;
    padding:  clamp(0.6rem, 2vw, 0.8rem) clamp(1.5rem, 5vw, 2rem);
    background: rgb(253, 254, 218);
    font-size: clamp(0.5rem, 2vw + 0.5rem, 1.2rem);
    font-weight: 400;
    cursor: pointer;
    /*transition: all 0.3s;*/
    text-align: center;
    text-decoration: none;
    color: #000000;
    margin: auto;
    width: 90%; /* 百分比宽度，适应父容器 */
    max-width: 13rem; /* 最大宽度限制 */
    box-sizing: border-box; /* 包含padding在宽度内 */
}


/* 名称征集部分 */
.name-collection {
    background: rgb(131, 235, 229);
    padding: 0 8rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    align-content: center;

}
.name-collection1{
    background: rgb(131, 235, 229);
    padding: 0 8rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*align-content: center;*/
}

.name-img {
    position: relative;
    left: 4rem;
    text-align: left;
}

.collection-content {
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.collection-content1{
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.collection-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.collection-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.forum-quotes {
    padding: 1.5rem;
    width: 50%;
}

.quote {
    padding: 1rem;
    margin-bottom: 1rem;
    color: #000000;
}

.quote h2 {
    font-size: 5rem;
    line-height: 6rem;
    font-family: AlibabaPuHuiHeavy;
}

.quote h3 {
    font-size: 3rem;
    font-weight: 400;
    font-family: AlibabaPuHuiHeavy;
}

.quote:last-child {
    margin-bottom: 0;
}

.quote-text {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: AlibabaPuHuiHeavy;
}

.quote-size {
    font-size: 2rem;
}

.botton1 {
    margin: 0.5rem 0;
}

.x {
    font-size: 0.8rem;
}


.collection-btn {
    display: inline-block;
    padding:  clamp(0.6rem, 2vw, 0.8rem) clamp(1.5rem, 5vw, 2rem);
    background: rgb(221, 30, 1);
    font-size: clamp(0.5rem, 2vw + 0.5rem, 1.2rem);
    font-weight: 400;
    cursor: pointer;
    /*transition: all 0.3s;*/
    text-align: center;
    text-decoration: none;
    color: var(--light);
    margin: auto;
    width: 120%; /* 百分比宽度，适应父容器 */
    max-width: 30rem; /* 最大宽度限制 */
    box-sizing: border-box; /* 包含padding在宽度内 */
}

@media (max-width: 480px) {
        .event-btn {
            font-size: clamp(0.85rem, 3.5vw, 0.9rem);
            padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(1rem, 4vw, 1.5rem);
            width: 95%;
        }
    .collection-btn {
            font-size: clamp(0.85rem, 3.5vw, 0.9rem);
            padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(1rem, 4vw, 1.5rem);
            width: 95%;
        }
    }

.collection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.announcement-collection {
    background: rgb(255, 192, 0);

}

.an-collection {
    padding: 0 0;

}

/* 页脚 */
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-column a {
    text-decoration: none;
    outline: none;
    color: var(--light)
}

/* 响应式设计 */
@media (max-width: 992px) {
    .yantai-event,
    .name-collection,
    .debut-announcement {
        grid-template-columns: 1fr;
    }

    .event-image,
    .collection-image,
    .announcement-image {
        order: -1;
        height: 300px;
    }
}

@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;
    }

    .event-title,
    .collection-title,
    .announcement-title {
        font-size: 2rem;
    }

    .event-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .event-content,
    .collection-content,
    .announcement-content {
        padding: 2rem;
    }

    .event-title,
    .collection-title,
    .announcement-title {
        font-size: 1.8rem;
    }

    .event-stats {
        grid-template-columns: 1fr;
    }
}

/* 新增动画关键帧 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 动画类 */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in {
    animation: slideInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* 为活动块添加初始状态 */
.yantai-event,
.name-collection,
.debut-announcement {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* 可见状态 */
.yantai-event.animated,
.name-collection.animated,
.debut-announcement.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 内容元素的初始状态 */
.event-tag,
.event-title,
.event-desc,
.event-stats,
.event-btn,
.collection-tag,
.collection-title,
.collection-desc,
.forum-quotes,
.collection-btn,
.announcement-tag,
.announcement-title,
.announcement-desc,
.qr-code,
.announcement-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* 内容元素的可见状态 */
.animated .event-tag,
.animated .event-title,
.animated .event-desc,
.animated .event-stats,
.animated .event-btn,
.animated .collection-tag,
.animated .collection-title,
.animated .collection-desc,
.animated .forum-quotes,
.animated .collection-btn,
.animated .announcement-tag,
.animated .announcement-title,
.animated .announcement-desc,
.animated .qr-code,
.animated .announcement-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 设置不同的延迟时间，实现错开动画效果 */
.animated .event-tag {
    transition-delay: 0.1s;
}

.animated .event-title {
    transition-delay: 0.2s;
}

.animated .event-desc {
    transition-delay: 0.3s;
}

.animated .event-stats {
    transition-delay: 0.4s;
}

.animated .event-btn {
    transition-delay: 0.5s;
}

.animated .collection-tag {
    transition-delay: 0.1s;
}

.animated .collection-title {
    transition-delay: 0.2s;
}

.animated .collection-desc {
    transition-delay: 0.3s;
}

.animated .forum-quotes {
    transition-delay: 0.4s;
}

.animated .collection-btn {
    transition-delay: 0.5s;
}

.animated .announcement-tag {
    transition-delay: 0.1s;
}

.animated .announcement-title {
    transition-delay: 0.2s;
}

.animated .announcement-desc {
    transition-delay: 0.3s;
}

.animated .qr-code {
    transition-delay: 0.4s;
}

.animated .announcement-btn {
    transition-delay: 0.5s;
}

/* 图片动画 */
.event-image,
.collection-image,
.announcement-image {
    overflow: hidden;
}

.event-image img,
.collection-image img,
.announcement-image img {
    transition: transform 0.8s ease;
}

.animated .event-image img,
.animated .collection-image img,
.animated .announcement-image img {
    transform: scale(1.05);
}