/* 基础样式 */
:root {
    font-size: 16px;
    --page-base-pd: 18%
        /* 默认 1rem = 16px */
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
        /* 移动端适配 */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    background-color: #fff;
    position: relative;
}

/* 头部导航栏 */
.header {
    height: 60px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;

}

.navbar {
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px);
    position: relative;

}

.logo {
    width: auto;
    height: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex-grow: 1;

}

@media (max-width: 768px) {

    .nav-links {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: "PingFang SC", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    word-break: break-all;
    line-height: 1.5;
    letter-spacing: 0;
    color: #333;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.3s ease;
}

.nav-links a:hover {
    color: #ff3355;
    transform: scale(1.05);
}

.arrow-down {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    margin-left: .25rem;
}

.dropdown {
    position: relative;
}

.dropdown-toggle.active-arrow .arrow-down {
    transform: rotate(0);
}

.active-arrow.arrow-down {
    transform: rotate(0);

}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        gap: 2rem;
    }

    .dropdown-toggle {
        justify-content: start;

    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .card-container {
        display: none;
    }
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    list-style: none;
    z-index: 1000;
    text-align: left;
    /* 初始状态 */
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
}

.dropdown-menu.active {
    pointer-events: auto;
    /* 恢复交互 */
    margin-top: 1rem;
    max-height: 500px;
    /* 足够大的值，确保所有内容都能显示 */
    opacity: 1;
}

.dropdown-menu li {
    padding: .5rem;
    cursor: pointer;
    font-size: .75rem;
    text-indent: 1rem;
    transition: background-color 0.2s ease;
}


.feature-grid {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 4rem 2rem;
    overflow: hidden;
}

.feature-item {
    width: 11.5rem;
    height: 8.25rem;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #000;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 默认无边框 */
}

.feature-item.selected {
    width: 11.5rem;
    height: 8.25rem;
    box-sizing: border-box;
    border-radius: 1.5rem;
    background: rgba(255, 51, 85, 0.05);
    border: 1px solid rgba(255, 212, 219, 1)
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.service-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    box-sizing: border-box;
}
@media (max-width: 768px) { 
    .service-grid {
        grid-template-columns: 1fr; 
    }
}
.service-item {
    padding: 2rem 3rem;
    transition: transform 0.3s ease;
    min-height: 16rem;
    position: relative;
    color: #000;
    text-align: left;
    border-radius: 1.5rem;
}

.service-grid .service-item:nth-child(1) {
    background-color: #FFF8E2;
    /* IP文创 */
}

.service-grid .service-item:nth-child(2) {
    background-color: #FFF3F3;
    /* 私域流量 */
}

.service-grid .service-item:nth-child(3) {
    background-color: #F0F5F7;
    /* 品牌推广 */
}

.service-grid .service-item:nth-child(4) {
    background-color: #F0F7F2;
    /* 营销分析 */
}

.service-item-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 33%;
    max-height: 75%;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-logos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.section {
    text-align: center;
}

.common-section {
    padding: 10rem var(--page-base-pd);
}

.main-title {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 6.25rem;
    /* 100px / 16px = 6.25rem */
    line-height: 1.2;
    /* 对应 120% */
    letter-spacing: 0;
    margin: 0;
    padding-top: 12rem;
    color: #333;

}

.highlight {
    color: #ff3355;
}

.index-1 {
    width: 20rem;
    height: auto;
    margin-top: 4rem;
}

.content-box {
    box-sizing: border-box;
    text-align: left;
    box-sizing: border-box;
    padding: 2rem var(--page-base-pd);
    background-color: #ff3355;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.home-description {
    line-height: 1.6;
    font-size: 1rem;
    color: #fff;
}

.description {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: #fff;
    margin: 0;
}

/* 整体布局 */
.advantages-container {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: stretch;
}

.left-column,
.right-column {
    flex: 1 1 45%;
    min-width: 45%;
    word-break: break-word;
    box-sizing: border-box;

}

/* 左侧区域 */
.left-column {
    text-align: left;
    overflow: hidden;
    background: #FFF8E2;
    /* 浅黄色背景 */
    padding: 4rem 4rem 0 var(--page-base-pd);
    border-radius: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.screenshot {
    margin-top: 5rem;
    width: 100%;
}

/* 右侧区域 */
.right-column {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow: hidden;
}

.top-section {
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF3F3;
    position: relative;
    /* 浅粉色背景 */
    padding: 2rem;
    border-radius: 1px;
    flex-grow: 1;
}



.bottom-section {
    text-align: left;
    flex-grow: 1;
    position: relative;
    box-sizing: border-box;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F0F5F7;
    padding: 2rem;
    border-radius: 1px;
}

/* 文字样式 */


.section-header {
    padding-left: var(--page-base-pd);
    padding-top: 9rem;
    padding-bottom: 4rem;
    text-align: left;
}

.section-title {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.3;
    letter-spacing: 0;
    color: #333;
    text-align: left;
}

.sub-section-title {
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1.25rem;
    color: #000;
    margin-top: 2rem;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: left;

}


.section-title-desc {
    margin-top: .5rem;
    font-weight: 500;
    font-size: .75rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #7A7A7A;
    text-align: left;

}

.advantages-title {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    letter-spacing: 0;
    color: #000;
    margin: 0 0 0.5rem 0;
    /* 底部留白 */
    text-align: justify;
    /* 两端对齐 */
}

/* 描述样式 */
.advantages-description {
    font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    letter-spacing: 0;
    color: #5D5D5D;
    margin: 0;
}

.advantages-icon {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 33%;
    max-height: 75%;
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-details {
    margin-top: 4rem;
}

.feature-detail {
    display: flex;
    flex-direction: column;
    min-height: 35rem;
    border-radius: 8px;
    padding: 20px;
    display: none;
    background-color: #f7f7f7;
    border-radius: 2rem;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: left;

}

.feature-detail.active {
    display: flex;
}

.feature-detail-title {
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: left;
}

.feature-detail-subtitle {
    font-weight: 500;
    margin-top: 2rem;
}


.feature-detail h2 {
    margin-bottom: 10px;
}

.goods-feature-box {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-detail-cat {
    margin-top: auto;
    margin-bottom: 2rem;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: justify;
    color: #AFAFAF;
}

.goods-feature {
    min-width: 10rem;
    height: 4rem;
    border: 1px solid #C9C9C9;
    border-radius: .5rem;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #000;
    padding: .4rem;
}

.goods-feature::marker {
    display: none;
}

.goods-feature-title {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #686868;
    display: block;
}

.feature-detail ul,
.feature-detail ol {
    list-style: none;
}


/* 子标题样式 */
.policy-subtitle {
    font-family: "PingFang SC";
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #000;
    margin-top: 2rem;
    /* 每块之间的上下间距 */
    margin-bottom: 1rem;
    /* 标题与正文的间距 */
}

/* 正文内容样式 */
.policy-content {
    font-family: "PingFang SC";
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #5D5D5D;
}

/* 列表样式 */
.policy-list {
    font-family: "PingFang SC";
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    color: #5D5D5D;
    list-style-type: disc;
    padding-left: 20px;
}

.policy-section {
    background-color: #F5F5F7;
}

.policy-item-box {
    text-align: left;
}

.service-item-title {
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 150%;
    letter-spacing: 0%;
}

.service-item-desc {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    margin-top: 1.5rem;

}

.carousel-container {
    padding: 1rem 0;
    max-width: 100%;
    overflow: hidden;
    margin: 50px auto;
    text-align: center;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carousel-row {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: 14.5rem;
    height: 6.6rem;
    background-color: #fff;
    border-radius: 1.5rem;
    border: 1px solid rgba(201, 201, 201, 0.71)
}

.carousel-item img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
}

.carousel-item p {
    font-size: 1.5rem;
    color: #555;
}


.contact-section {
    box-sizing: border-box;
    background-color: #ff3355;
    padding: 5rem 0 10rem var(--page-base-pd);
    box-sizing: border-box;
}

.contact-section-title {
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 3rem;
    line-height: 130%;
    letter-spacing: 0%;
    color: #fff;

}

.contact-section-item {
    margin-top: 1.5rem;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 150%;
    letter-spacing: 0%;
    color: #fff;
}


.card-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
    top: calc(100% + 2rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(247, 247, 247, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    box-sizing: border-box;
    max-width: 90vw;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid #e9e9e9;
}

.card-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 使用 CSS Grid 布局：2 行 × 4 列 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    max-width: 90vw;
}

.card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    gap: .75rem;
}

.card:hover {
    background: rgba(0, 0, 0, 0.05);
}



.card h3 {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-right: 5rem;
}

.logo-box h2 {
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 1rem;
    line-height: 150%;
    letter-spacing: 0%;
    /* 渐变背景 */
    background: linear-gradient(90deg, #FF3355 0%, #FF7088 48.56%, #ED0028 100%);
    -webkit-background-clip: text;
    /* 关键：把背景裁剪成文字形状 */
    color: transparent;
    /* 文字设为透明，让背景显示出来 */
    background-clip: text
}

.contact-button {
    position: fixed;
    bottom: 20px;
    /* 距离页面底部 20px */
    right: 3rem;
    /* 距离页面右侧 20px */
    background-color: #fff;
    border: 1px solid #e3e3e3;
    /* 紫色边框 */
    border-radius: 20px;
    /* 圆角 */
    padding: 20px 10px;
    /* 内边距 */
    font-size: 16px;
    font-weight: 500;
    color: #000;
    /* 文字颜色 */
    cursor: pointer;
    /* 鼠标悬停时显示手型光标 */
    transition: background-color 0.3s ease;
    /* 添加过渡效果 */
    writing-mode: vertical-lr;
    text-orientation: mixed;
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.13);

}

.contact-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    /* 鼠标悬停时背景变浅 */
}