/* ============================================================
   about.css —— 仅 about.html 使用（页面级样式）
   ============================================================ */
/* ---------- 入场动效（首屏加载即播放） ----------
   背景 Ken Burns 缓推 → 遮罩左扫淡入 → 标题蒙版揭示+模糊上浮 → 描述左滑淡入 */

/* ============================================================
   第1屏：About Hero（1920 x 500，1rem = 100px）
   背景图 + 左侧黑色渐变遮罩；标题 left 260 / top 137 / 宽 729
   描述 left 260 / top 304 / 宽 520；顶部预留导航栏 80
   ============================================================ */
.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 5rem;
    /* 500px */
    margin: 0.8rem auto 0;
    /* 顶部空出导航栏 80px */
    box-sizing: border-box;
    overflow: hidden;
    padding: 1.37rem 0 0 2.6rem;
}

/* 背景图层独立成层，便于 Ken Burns 缓推入场 */
.first::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../assets/images/product/first-img.webp") no-repeat center / cover;
}


.first__inner {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* 标题：40px / 600 / #FFF，left 260 / top 137 / 宽 729 */
.first__title {
    width: 7.29rem;
    margin: 0;
    overflow: hidden;
    padding-bottom: 0.05rem;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: capitalize;
    z-index: 10;
    position: relative;
    margin-bottom: 0.1rem;
}

.first__title span {
    display: inline-block;
}

/* 描述：16px / 400 / #FFF，left 260 / top 304 / 宽 520 */
.first__desc {
    width: 5.2rem;
    margin: 0;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 24px */
    text-transform: capitalize;
    z-index: 10;
    position: relative;
}

.first__download {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0.3rem;
    height: 0.5rem;
    padding: 0 0.26rem;
    border-radius: 0.1rem;
    background: #EA5404;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-weight: 500;
    text-decoration: none;
    /* 与标题/描述同套入场：描述之后接续浮现 */
    opacity: 0;
    animation: first-desc-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
    transition: background 0.3s ease, color 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.first__download:hover {
    transform: translateY(-0.03rem);
}

.first__download:active {
    transform: none;
}

.first__download-icon {
    width: 0.2rem;
    height: 0.2rem;
}

.first::before {
    transform: scale(1.15);
    animation: first-bg-in 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.first__title {
    opacity: 0;
    animation: first-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.first__desc {
    opacity: 0;
    animation: first-desc-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

@keyframes first-bg-in {
    from {
        transform: scale(1.15);
    }

    to {
        transform: scale(1);
    }
}

/* 遮罩：从左向右展开淡入 */
@keyframes first-shade-in {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* 标题：模糊上浮揭示 */
@keyframes first-title-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 描述：轻微左滑淡入 */
@keyframes first-desc-in {
    from {
        opacity: 0;
        transform: translateX(-0.3rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .first {
    height: auto;
    margin-top: 0.8rem;
    /* H5 重新定义内边距，覆盖 PC 的 1.37rem / 2.6rem，避免标题溢出 */
    padding: 0.7rem 0.3rem 0.5rem;
}

html[data-mode="h5"] .first__title {
    left: auto;
    top: auto;
    width: 100%;
    font-size: 0.36rem;
}

html[data-mode="h5"] .first__desc {
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
}

html[data-mode="h5"] .first__download {
    height: 0.6rem;
    padding: 0 0.3rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .first__download-icon {
    width: 0.26rem;
    height: 0.26rem;
}

/* 系统开启"减少动态效果"时：直接显示，不做隐藏与动画 */
@media (prefers-reduced-motion: reduce) {
    .first::before {
        animation: none;
        transform: none;
    }

    .first__title,
    .first__desc {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
    }
}

/* ============================================================
   面包屑导航（1920 设计稿，1920x60，bg #F5F5F5，padding-left 160）
   滚动时吸附在固定导航栏（0.8rem）下方
   入场动效由 about.js 的 IntersectionObserver 添加 .is-in-view 触发
   ============================================================ */
.breadcrumb {
    position: sticky;
    top: 0.8rem;
    /* 吸附于 80px 高的导航栏下方 */
    z-index: 90;
    box-sizing: border-box;
    width: 100%;
    max-width: 19.2rem;
    height: 0.6rem;
    /* 60px */
    margin: 0 auto;
    padding-left: 2.6rem;
    /* 160px */
    background: #F2F3ED;
    display: flex;
    align-items: center;
}

.breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    /* 12px */
}

/* 面包屑项：14px / 400 / 行高 24px */
.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    color: #333;
    font-family: "Montserrat", sans-serif;
    /* Gabarito */
    font-size: 0.14rem;
    /* 14px */
    font-style: normal;
    font-weight: 400;
    line-height: 0.24rem;
    /* 24px */
    text-decoration: none;
    cursor: pointer;
}

a.breadcrumb__item {
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a.breadcrumb__item:hover {
    color: #1078D8;
    transform: translateX(0.03rem);
}

/* 当前页：不可点击，弱化为 #999 */
.breadcrumb__item.is-current {
    color: #999;
    cursor: default;
}

/* 分隔符 */
.breadcrumb__sep {
    color: #999;
    font-size: 0.14rem;
    line-height: 0.24rem;
    user-select: none;
}

/* Home 图标：24px，悬浮轻旋 */
.breadcrumb__icon {
    display: block;
    width: 0.24rem;
    /* 24px */
    height: 0.24rem;
    /* 24px */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breadcrumb__item--home:hover .breadcrumb__icon {
    transform: rotate(-14deg) scale(1.12);
}

/* ---------- 入场动效：整条自导航栏下方滑落展开，内容错峰淡入 ----------
   隐藏初始态统一限定在 html.js 下：JS 失效（含缓存空脚本）时内容直接显示 */

html.js .breadcrumb.is-in-view {
    clip-path: inset(0 0 -20% 0);
    transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* 内容项：错峰自左滑入 */
html.js .breadcrumb__item,
html.js .breadcrumb__sep {
    opacity: 0;
    transform: translateX(-0.2rem);
}

.breadcrumb.is-in-view .breadcrumb__item,
.breadcrumb.is-in-view .breadcrumb__sep {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.breadcrumb.is-in-view .breadcrumb__item--home {
    transition-delay: 0.25s;
}

.breadcrumb.is-in-view .breadcrumb__sep:nth-of-type(1) {
    transition-delay: 0.32s;
}

.breadcrumb.is-in-view .breadcrumb__item:nth-of-type(2) {
    transition-delay: 0.38s;
}

.breadcrumb.is-in-view .breadcrumb__sep:nth-of-type(2) {
    transition-delay: 0.44s;
}

.breadcrumb.is-in-view .breadcrumb__item.is-current {
    transition-delay: 0.5s;
}

/* Home 图标：弹性缩放弹入 */
html.js .breadcrumb__icon {
    opacity: 0;
    scale: 0.3;
}

.breadcrumb.is-in-view .breadcrumb__icon {
    opacity: 1;
    scale: 1;
    transition: opacity 0.4s ease 0.25s,
        scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.breadcrumb.is-in-view .breadcrumb__item--home:hover .breadcrumb__icon {
    transform: rotate(-14deg) scale(1.12);
}

/* ---------- H5 适配（750 设计稿基准） ---------- */
html[data-mode="h5"] .breadcrumb {
    padding-left: 0.3rem;
}

html[data-mode="h5"] .breadcrumb__item {
    font-size: 0.13rem;
}

/* ---------- 动效减弱（无障碍） ---------- */
@media (prefers-reduced-motion: reduce) {

    .breadcrumb,
    .breadcrumb__item,
    .breadcrumb__sep,
    .breadcrumb__icon {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        scale: none !important;
    }
}

/* ============================================================
   第4屏：Ready to Start Your Project? CTA 横幅（复制 about.html 第十屏）
   ============================================================ */
.fourth {
    position: relative;
    height: 5.2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景：入场时 Ken Burns 缩放回正 */
.fourth__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.fourth.is-in-view .fourth__bg {
    transform: scale(1);
}

/* 压暗遮罩，保证文字可读性 */
.fourth__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(2, 18, 38, 0.55) 0%,
            rgba(2, 18, 38, 0.15) 45%,
            rgba(2, 18, 38, 0.5) 100%);
}

.fourth__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.fourth__desc {
    color: #E6E6E6;
    font-family: Montserrat;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.5;
}

/* 标题：overflow 裁切 + 上移入场的蒙版揭示效果 */
.fourth__title {
    margin-top: 0.14rem;
    overflow: hidden;
    padding-bottom: 0.06rem;
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

.fourth__title span {
    display: inline-block;
}

/* ---------- CTA 圆形按钮 ---------- */
.fourth__cta {
    position: relative;
    display: block;
    width: 1.97rem;
    height: 1.97rem;
    margin: 0.22rem auto 0;
}

.fourth__cta-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.46rem;
    height: 1.46rem;
    margin: -0.73rem 0 0 -0.73rem;
    background: #EA5404;
    border-radius: 50%;
    transition: transform 0.35s ease;
}

/* ---------- 环形文字：沿圆内侧排布（设计稿 "Share Your Ideas ..."） ---------- */
.fourth__cta-ring-text {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.46rem;
    height: 1.46rem;
    margin: -0.73rem 0 0 -0.73rem;
    transform: rotate(-45deg);
    /* 起点转到左下（约 7 点半方向），文字顺时针向上绕排 */
    transition: transform 6s linear;
    pointer-events: none;
}

.fourth__cta-ring-text-inner {
    fill: rgba(255, 255, 255, 0.55);
    font-family: Montserrat, sans-serif;
    font-size: 9px;
    font-weight: 500;
}

.fourth__cta:hover .fourth__cta-ring-text {
    transform: rotate(-405deg);
}

.fourth__cta-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.46rem;
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.16rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01rem;
    text-transform: uppercase;
    text-align: center;
}

/* 圆内右下方的白色小圆点（设计稿 6px、60% 白点，约 4 点半方向） */
.fourth__cta-dot {
    position: absolute;
    top: 70.6%;
    left: 73.6%;
    width: 0.06rem;
    height: 0.06rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.35s ease;
}

/* 呼吸扩散光环（仅在入场后循环播放） */
.fourth__cta-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.46rem;
    height: 1.46rem;
    margin: -0.73rem 0 0 -0.73rem;
    border: 1px solid rgba(234, 84, 4, 0.85);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.fourth.is-in-view .fourth__cta-ring {
    animation: fourth-ring 2.4s ease-out 1.4s infinite;
}

@keyframes fourth-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

/* hover：圆放大、小圆点右移 */
.fourth__cta:hover .fourth__cta-circle {
    transform: scale(1.08);
}

.fourth__cta:hover .fourth__cta-dot {
    transform: translateX(0.08rem);
}

/* ---------- 入场动效（common.js 滚动加 .is-in-view 触发） ---------- */
html.js .fourth__desc {
    opacity: 0;
    transform: translateY(0.3rem);
    transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

html.js .fourth__title span {
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

html.js .fourth__cta {
    transform: scale(0) rotate(-45deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s;
}

html.js .fourth__cta-dot {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease 0.95s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s;
}

html.js .fourth__cta-ring-text {
    opacity: 0;
    transition: opacity 0.7s ease 1.1s, transform 6s linear;
}

.fourth.is-in-view .fourth__cta-ring-text {
    opacity: 1;
}

.fourth.is-in-view .fourth__desc {
    opacity: 1;
    transform: none;
}

.fourth.is-in-view .fourth__title span {
    transform: none;
}

.fourth.is-in-view .fourth__cta {
    transform: none;
}

.fourth.is-in-view .fourth__cta-dot {
    opacity: 1;
    transform: none;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .fourth {
    height: auto;
    padding: 0.6rem 0.3rem;
}

html[data-mode="h5"] .fourth__desc {
    font-size: 0.24rem;
}

html[data-mode="h5"] .fourth__title {
    font-size: 0.4rem;
}

html[data-mode="h5"] .fourth__cta {
    width: 1.7rem;
    height: 1.7rem;
}

html[data-mode="h5"] .fourth__cta-circle {
    width: 1.26rem;
    height: 1.26rem;
    margin: -0.63rem 0 0 -0.63rem;
}

html[data-mode="h5"] .fourth__cta-text {
    width: 1.26rem;
    font-size: 0.18rem;
    letter-spacing: 0;
}

html[data-mode="h5"] .fourth__cta-ring-text {
    width: 1.26rem;
    height: 1.26rem;
    margin: -0.63rem 0 0 -0.63rem;
}

/* 系统开启"减少动态效果"时：直接显示，不做动画 */
@media (prefers-reduced-motion: reduce) {

    .fourth__bg,
    .fourth.is-in-view .fourth__bg {
        transform: none;
        transition: none;
    }

    html.js .fourth__desc,
    html.js .fourth__title span,
    html.js .fourth__cta,
    html.js .fourth__cta-dot,
    html.js .fourth__cta-ring-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fourth.is-in-view .fourth__cta-ring {
        animation: none;
    }
}

/* ============================================================
   第3屏：Frequently Asked Questions（复制 about.html 第九屏）
   bg #F9FAF4；居中标题 40px + 副标 16px
   5 条 FAQ 手风琴（1270 宽居中，Q/A 徽章 30，间隔 56）
   展开：分隔线从左扫入 + 答案淡入上移；收起：箭头右转
   ============================================================ */
.third {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    padding: 0.84rem 0;
    background: #F9FAF4;
    overflow: hidden;
}

/* ---------- 标题：40px / 600 / #333 居中 + 副标 16px / #666 ---------- */
.third__title {
    margin: 0;
    overflow: hidden;
    padding-bottom: 0.06rem;
    text-align: center;
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}

.third__title span {
    display: inline-block;
}

.third__sub {
    margin: 0.1rem 0 0;
    text-align: center;
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

/* ---------- 手风琴列表：1270 宽居中，条目间隔 56 ---------- */
.third__list {
    width: 12.7rem;
    margin: 0.6rem auto 0;
    padding: 0;
    list-style: none;
}

.third__item+.third__item {
    margin-top: 0.56rem;
}

/* ---------- 问题行：Q 徽章 + 问题 + 箭头 ---------- */
.third__question {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

/* Q 徽章：30 方块（问题 #333 / 答案 #EA5404），白字 20px Gabarito */
.third__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0.3rem;
    height: 0.3rem;
    background: #333;
    color: #FFF;
    font-family: Gabarito, sans-serif;
    font-size: 0.2rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.3s ease;
}

.third__badge--a {
    background: #EA5404;
}

/* 问题文字：收起 400 / 展开 600，悬浮与展开变橙 */
.third__question-text {
    margin-left: 0.35rem;
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.3s ease, font-weight 0.2s ease;
}

/* 箭头：收起右转 90°（指右），展开回正并变橙 */
.third__toggle {
    flex-shrink: 0;
    width: 0.24rem;
    height: 0.24rem;
    margin-left: auto;
    color: #333;
    transform: rotate(-90deg);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.3s ease;
}

.third__item.is-open .third__toggle {
    color: #EA5404;
    transform: rotate(0deg);
}

.third__item.is-open .third__question-text {
    font-weight: 600;
}

/* ---------- 悬浮：文字变橙 + 徽章回旋放大 + 箭头下探 ---------- */
.third__question:hover .third__question-text {
    color: #EA5404;
}

.third__question:hover .third__badge {
    transform: scale(1.12) rotate(-8deg);
}

.third__question:hover .third__toggle {
    transform: rotate(-90deg) translateX(0.04rem);
}

.third__item.is-open .third__question:hover .third__toggle {
    transform: rotate(0deg) translateY(0.04rem);
}

/* ---------- 答案：grid 0fr→1fr 展开动画 ---------- */
.third__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.third__item.is-open .third__answer {
    grid-template-rows: 1fr;
}

.third__answer-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* 分隔线：展开时从左向右扫入（1130 宽，左右缩进与文字对齐） */
.third__divider {
    flex-shrink: 0;
    height: 1px;
    margin: 0.13rem 0.75rem 0 0.65rem;
    background: #D9D9D9;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.third__item.is-open .third__divider {
    transform: scaleX(1);
}

/* 答案行：A 徽章与 Q 徽章同列（x=0），答案文字与问题文字对齐（x=65） */
.third__answer-row {
    display: flex;
    align-items: flex-start;
    padding: 0.17rem 0 0;
    opacity: 0;
    transform: translateY(-0.1rem);
    transition: opacity 0.45s ease 0.15s,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.third__item.is-open .third__answer-row {
    opacity: 1;
    transform: none;
}

.third__answer-text {
    margin: 0.05rem 0 0;
    width: 10.44rem;
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin-left: 0.35rem;
}

/* ============================================================
   入场动效（common.js 滚动加 .is-in-view 触发）
   标题蒙版揭示 + 副标上浮 + 条目错峰滑入 + 徽章弹跳入场
   ============================================================ */
html.js .third__title span {
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

html.js .third__sub,
html.js .third__item {
    opacity: 0;
}

.third.is-in-view .third__title span {
    transform: none;
}

.third.is-in-view .third__sub {
    opacity: 1;
    animation: third-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards;
}

/* 条目：自左错峰滑入 */
.third.is-in-view .third__item {
    opacity: 1;
    animation: third-item-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.third.is-in-view .third__item:nth-child(1) {
    animation-delay: 0.45s;
}

.third.is-in-view .third__item:nth-child(2) {
    animation-delay: 0.6s;
}

.third.is-in-view .third__item:nth-child(3) {
    animation-delay: 0.75s;
}

.third.is-in-view .third__item:nth-child(4) {
    animation-delay: 0.9s;
}

.third.is-in-view .third__item:nth-child(5) {
    animation-delay: 1.05s;
}

/* Q 徽章：错峰弹性弹入（用 animation，不污染悬浮 transition） */
html.js .third__badge {
    opacity: 0;
}

.third.is-in-view .third__badge {
    opacity: 1;
    animation: third-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.third.is-in-view .third__item:nth-child(1) .third__badge {
    animation-delay: 0.65s;
}

.third.is-in-view .third__item:nth-child(2) .third__badge {
    animation-delay: 0.8s;
}

.third.is-in-view .third__item:nth-child(3) .third__badge {
    animation-delay: 0.95s;
}

.third.is-in-view .third__item:nth-child(4) .third__badge {
    animation-delay: 1.1s;
}

.third.is-in-view .third__item:nth-child(5) .third__badge {
    animation-delay: 1.25s;
}

@keyframes third-badge-pop {
    from {
        opacity: 0;
        transform: scale(0) rotate(-90deg);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes third-fade-up {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes third-item-in {
    from {
        opacity: 0;
        transform: translateX(-0.5rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .third {
    height: auto;
    padding: 0.6rem 0.3rem 0.7rem;
}

html[data-mode="h5"] .third__title {
    font-size: 0.4rem;
}

html[data-mode="h5"] .third__sub {
    font-size: 0.24rem;
}

html[data-mode="h5"] .third__list {
    width: 100%;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .third__item+.third__item {
    margin-top: 0.5rem;
}

html[data-mode="h5"] .third__question-text {
    font-size: 0.26rem;
}

html[data-mode="h5"] .third__answer-text {
    width: 100%;
    font-size: 0.22rem;
}

html[data-mode="h5"] .third__answer-row {
    padding-top: 0.17rem;
}

/* 系统开启"减少动态效果"时：直接显示，不做动画 */
@media (prefers-reduced-motion: reduce) {

    html.js .third__title span,
    html.js .third__sub,
    html.js .third__item,
    html.js .third__badge,
    .third.is-in-view .third__title span,
    .third.is-in-view .third__badge {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .third__answer,
    .third__divider,
    .third__answer-row {
        transition: none;
    }
}

/* ============================================================
   第2屏：产品分类筛选（Figma 309_1549：卡片 334x413）
   padding 50/260；一级 Tab 胶囊 + 二级侧栏 + 3 列卡片网格
   卡片：图 334x281 + 信息栏 132（默认 #333 / 悬浮选中 #EA5404）
   ============================================================ */
.second {
    box-sizing: border-box;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.second_line{
    height: 1px;
    background: #D9D9D9;
    margin: 0.35rem 0 0;
}

/* ---------- 一级分类 Tab ---------- */
.second__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.16rem;
}

.second__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 0.5rem;
    padding: 0 0.26rem;
    border-radius: 0.1rem;
    background: #F5F5F5;
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 一级分类：悬浮/选中 = 橙色背景 */
.second__tab:hover,
.second__tab.is-active {
    background: #EA5404;
    border-color: #EA5404;
    color: #FFF;
}

.second__tab:hover {
    transform: translateY(-0.03rem);
}

.second__tab:active {
    transform: none;
}

/* ---------- 布局：侧栏 313 + 间距 23 + 网格 1064 ---------- */
.second__layout {
    display: flex;
    gap: 0.78rem;
    margin-top: 0.6rem;
}

/* ---------- 二级分类侧栏 ---------- */
.second__side {
    flex: 0 0 2.6rem;
    display: flex;
    flex-direction: column;
}

.second__side-item {
    padding: 0.2rem 0.1rem;
    border-bottom: 1px solid #E5E5E5;
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 二级分类：悬浮/选中 = 橙色文字 + 右移 */
.second__side-item:hover,
.second__side-item.is-active {
    color: #EA5404;
    font-weight: 600;
}

.second__side-item:hover,
.second__side-item.is-active {
    padding-left: 0.14rem;
}

/* ---------- 产品列表容器：每个二级分类一个 grid ---------- */
.second__grids {
    flex: 1;
    min-width: 0;
}

/* ---------- 产品网格：3 列，间距 31/36 ---------- */
.second__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.36rem 0.1rem;
    align-content: start;
}

/* ---------- 产品卡片：334x413 ---------- */
.second__card {
    display: flex;
    flex-direction: column;
    border-radius: 0.2rem;
    overflow: hidden;
    background: #333;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.second__card-media {
    height: 2.81rem;
    overflow: hidden;
}

.second__card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.second__card-body {
    position: relative;
    flex: 1;
    padding: 0.24rem 0.23rem;
    box-sizing: border-box;
    background: #333;
    transition: background-color 0.35s ease;
}

.second__card-name {
    margin: 0;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.18rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.second__card-tags {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.14rem;
    flex-wrap: wrap;
}

.second__card-tag {
    display: inline-flex;
    align-items: center;
    height: 0.35rem;
    padding: 0 0.17rem;
    border: 1px solid #999;
    border-radius: 1rem;
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 0.14rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 0.35s ease, color 0.35s ease,
        background-color 0.35s ease;
}

/* 非当前分类的产品列表整体隐藏（data-cat 标注在 grid 层级） */
.second__grid.is-hidden {
    display: none;
}

/* ---------- 分页 ---------- */
.second__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.12rem;
    margin-top: 0.4rem;
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 0.14rem;
}

.second__pagination a,
.second__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.32rem;
    height: 0.32rem;
    padding: 0 0.06rem;
    border-radius: 0.06rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

.second__pagination > span:first-child {
    border: none;
    margin-right: 0.12rem;
}

.second__pagination a:hover {
    color: #EA5404;
}

.second__pagination span[aria-current="page"] {
    background: #EA5404;
    color: #FFF;
}

/* ---------- 卡片悬浮/选中：信息栏变橙 ---------- */
.second__card:hover .second__card-body,
.second__card.is-active .second__card-body {
    background: #EA5404;
}

.second__card:hover .second__card-tag,
.second__card.is-active .second__card-tag {
    border-color: #FFF;
    color: #FFF;
}

.second__card:hover {
    transform: translateY(-0.08rem);
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.18);
}

.second__card:hover .second__card-img {
    transform: scale(1.06);
}

/* ---------- 入场动效（common.js 滚动加 .is-in-view 触发） ---------- */
/* Tab：逐个自上下落回弹 */
html.js .second__tab {
    opacity: 0;
}

.second.is-in-view .second__tab {
    opacity: 1;
    animation: second-tab-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.second.is-in-view .second__tab:nth-child(1) {
    animation-delay: 0.1s;
}

.second.is-in-view .second__tab:nth-child(2) {
    animation-delay: 0.22s;
}

.second.is-in-view .second__tab:nth-child(3) {
    animation-delay: 0.34s;
}

@keyframes second-tab-in {
    from {
        opacity: 0;
        transform: translateY(-0.4rem) scale(0.8);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 侧栏：自左错峰滑入 */
html.js .second__side-item {
    opacity: 0;
}

.second.is-in-view .second__side-item {
    opacity: 1;
    animation: second-side-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second.is-in-view .second__side-item:nth-child(1) { animation-delay: 0.25s; }
.second.is-in-view .second__side-item:nth-child(2) { animation-delay: 0.33s; }
.second.is-in-view .second__side-item:nth-child(3) { animation-delay: 0.41s; }
.second.is-in-view .second__side-item:nth-child(4) { animation-delay: 0.49s; }
.second.is-in-view .second__side-item:nth-child(5) { animation-delay: 0.57s; }
.second.is-in-view .second__side-item:nth-child(6) { animation-delay: 0.65s; }

@keyframes second-side-in {
    from {
        opacity: 0;
        transform: translateX(-0.4rem);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 卡片：3D 翻转错峰入场（配合 JS 切换分类时重播） */
html.js .second__card {
    opacity: 0;
}

.second.is-in-view .second__card {
    opacity: 1;
    animation: second-card-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second.is-in-view .second__card:nth-child(1) { animation-delay: 0.35s; }
.second.is-in-view .second__card:nth-child(2) { animation-delay: 0.45s; }
.second.is-in-view .second__card:nth-child(3) { animation-delay: 0.55s; }
.second.is-in-view .second__card:nth-child(4) { animation-delay: 0.65s; }
.second.is-in-view .second__card:nth-child(5) { animation-delay: 0.75s; }
.second.is-in-view .second__card:nth-child(6) { animation-delay: 0.85s; }
.second.is-in-view .second__card:nth-child(7) { animation-delay: 0.95s; }
.second.is-in-view .second__card:nth-child(8) { animation-delay: 1.05s; }
.second.is-in-view .second__card:nth-child(9) { animation-delay: 1.15s; }

@keyframes second-card-in {
    from {
        opacity: 0;
        transform: rotateY(14deg) translateY(0.5rem) scale(0.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .second {
    padding: 0.4rem 0.3rem;
}

html[data-mode="h5"] .second__tab {
    height: 0.6rem;
    padding: 0 0.3rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__layout {
    flex-direction: column;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .second__side {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.16rem;
}

html[data-mode="h5"] .second__side-item {
    padding: 0.12rem 0.24rem;
    border: 1px solid #E5E5E5;
    border-radius: 1rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__side-item:hover,
html[data-mode="h5"] .second__side-item.is-active {
    border-color: #EA5404;
    padding-left: 0.24rem;
}

html[data-mode="h5"] .second__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .second__card-media {
    height: auto;
    aspect-ratio: 334 / 281;
}

html[data-mode="h5"] .second__card-name {
    font-size: 0.28rem;
}

/* 关键：PC 的固定高度 1.32rem 在 H5 下会裁掉两行标题 + 标签，改为自适应 */
html[data-mode="h5"] .second__card-body {
    height: auto;
    min-height: 0;
    padding: 0.24rem 0.24rem 0.28rem;
}

html[data-mode="h5"] .second__card-tags {
    flex-wrap: wrap;
    gap: 0.12rem;
    margin-top: 0.18rem;
}

html[data-mode="h5"] .second__card-tag {
    height: auto;
    padding: 0.08rem 0.2rem;
    font-size: 0.2rem;
    line-height: 1.4;
}

/* 系统开启"减少动态效果"时：直接显示，不做动画 */
@media (prefers-reduced-motion: reduce) {

    html.js .second__tab,
    html.js .second__side-item,
    html.js .second__card {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .second__card:hover {
        transform: none;
    }
}