/* ============================================================
   Production Process 页面样式（页面级，仅 production-process.html 使用）
   依赖：framework.css（全局基础）+ common.css（quote 等公共区块）
   注意：不得引入其他页面的页面级 css（如 about.css），避免类名冲突
   ============================================================ */

/* ============================================================
   第一屏：Production Process 横幅
   样式与 About 第一屏完全一致
   设计稿基准：1920×800
   背景图：可替换为本页专属 banner
   ============================================================ */
.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 8rem;
    margin: 0 auto;
    background: #1a1a1a url('../assets/images/process/first-img.webp') no-repeat center / cover;
    box-sizing: border-box;
    padding: 0 1.6rem;
    color: #FFF;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.first__content {
    flex: 1;
    min-width: 0;
}

.first__title {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.44rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 0.24rem;
}

.first__desc {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    margin: 0;
}

.first__breadcrumb {
    position: absolute;
    left: 1.6rem;
    bottom: 0.30rem;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.10rem;
    margin: 0;
    padding: 0;
}

.first__breadcrumb a {
    color: #FFF;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.first__breadcrumb a:hover {
    opacity: 0.75;
}

.first__breadcrumb-sep {
    color: #FFF;
    opacity: 0.85;
}

.first__breadcrumb-current {
    color: #FFF;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .first {
    height: 4.4rem;
    padding: 0 0.3rem;
}

html[data-mode="h5"] .first__title {
    font-size: 0.36rem;
    margin-bottom: 0.16rem;
}

html[data-mode="h5"] .first__desc {
    font-size: 0.14rem;
    max-width: 100%;
}

html[data-mode="h5"] .first__breadcrumb {
    left: 0.3rem;
    bottom: 0.20rem;
    font-size: 0.14rem;
    gap: 0.06rem;
}

/* ============================================================
   第二屏：Production Process 分类内容
   ============================================================ */

/* ---------- 分类栏 ---------- */
.second__tabs {
    display: flex;
    height: 1.44rem;
    padding: 0 1.6rem;
    justify-content: space-between;
    align-items: center;
    background: #FFF;
    box-shadow: 0 0.04rem 0.084rem 0 rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.second__tab {
    color: #000;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 0.24rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.second__tab:hover {
    color: #02347D;
}

.second__tab.is-active {
    color: #02347D;
    font-weight: 700;
}

.second__tab-divider {
    width: 0.01rem;
    height: 0.26rem;
    flex-shrink: 0;
    background: #D9D9D9;
}

/* ---------- 内容面板 ---------- */
.second__panel {
    display: none;
    padding: 0.5rem 0 0;
}

.second__panel.is-active {
    display: block;
}

.second__panel-header {
    max-width: 16.0rem;
    margin: 0 auto;
    text-align: center;
}

.second__panel-title {
    color: #000;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 0.16rem;
}

.second__panel-desc {
    color: #666;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 0.5rem;
}

/* ---------- 卡片列表 ---------- */
.second__cards {
    max-width: 16.0rem;
    margin: 0 auto 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.second__card {
    display: flex;
    height: 6.19rem;
    padding: 0.4rem 0.2rem;
    gap: 0.4rem;
    background: #FFF;
    border: 1px solid #F0F0F0;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* ---------- 卡片悬浮动效 ---------- */
.second__card:hover {
    transform: translateY(-0.03rem);
    border-color: rgba(2, 52, 125, 0.3);
    box-shadow: 0 0.1rem 0.24rem rgba(2, 52, 125, 0.16);
}

html[data-mode="h5"] .second__card:hover {
    transform: none;
}

/* ---------- 轮播图 ---------- */
.second__carousel {
    width: 5.44rem;
    height: 5.39rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.second__carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.second__carousel-track img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5.04rem;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.second__carousel-track img.is-active {
    opacity: 1;
}

.second__carousel-dots {
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.08rem;
    z-index: 2;
}

.second__carousel-dots button {
    width: 0.08rem;
    height: 0.08rem;
    border-radius: 50%;
    border: none;
    background: #D9D9D9;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.second__carousel-dots button.is-active {
    background: #02347D;
    transform: scale(1.2);
}

/* ---------- 信息区 ---------- */
.second__info {
    flex: 1;
    height: 5.39rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

/* 自定义滚动条 */
.second__info::-webkit-scrollbar {
    width: 0.05rem;
}

.second__info::-webkit-scrollbar-track {
    background: transparent;
}

.second__info::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    border-radius: 0.025rem;
}

.second__info-title {
    color: #333;
    font-family: Inter, sans-serif;
    font-size: 0.32rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: capitalize;
    margin: 0 0 0.12rem;
}

.second__info-desc {
    color: #333;
    font-family: Inter, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-transform: capitalize;
    margin: 0 0 0.24rem;
}

.second__steps {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.second__step h4 {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-transform: capitalize;
    margin: 0 0 0.06rem;
}

.second__step p {
    color: #999;
    font-family: Inter, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-transform: capitalize;
    margin: 0;
}

/* ---------- 滚动入场动效（JS 为元素添加 .is-in-view 触发） ---------- */
html.js .second .second__tabs:not(.is-in-view),
html.js .second .second__panel-header:not(.is-in-view),
html.js .second .second__card:not(.is-in-view) {
    opacity: 0;
    transform: translateY(0.2rem);
}

.second .second__tabs.is-in-view {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards;
}

.second .second__panel-header.is-in-view {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.second .second__card.is-in-view:nth-child(1) {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.second .second__card.is-in-view:nth-child(2) {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.second .second__card.is-in-view:nth-child(3) {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}

/* 分类点击切换时：单卡统一 0s 延迟入场。
   必须以更高优先级覆盖 .is-in-view:nth-child(n) 的按序延迟规则 */
html.js .second .second__card.is-in-view.is-switching,
.second__card.is-switching {
    animation: secondFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards;
}

@keyframes secondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

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

/* 系统开启“减少动态效果”时：直接显示 */
@media (prefers-reduced-motion: reduce) {
    html.js .second .second__tabs:not(.is-in-view),
    html.js .second .second__panel-header:not(.is-in-view),
    html.js .second .second__card:not(.is-in-view) {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   H5 适配：第二屏（750 设计稿基准）
   ============================================================ */
/* ---------- 分类栏：4 个分类在窄屏一行放不下，改为横向滚动 ---------- */
html[data-mode="h5"] .second__tabs {
    height: auto;
    padding: 0.2rem 0.3rem;
    justify-content: flex-start;
    gap: 0.16rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

html[data-mode="h5"] .second__tabs::-webkit-scrollbar {
    display: none;
}

html[data-mode="h5"] .second__tab {
    flex-shrink: 0;
    padding: 0.1rem 0.16rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__tab-divider {
    flex-shrink: 0;
}

/* ---------- 标题面板 ---------- */
html[data-mode="h5"] .second__panel {
    padding: 0.4rem 0 0;
}

html[data-mode="h5"] .second__panel-header {
    max-width: 100%;
    padding: 0 0.3rem;
}

html[data-mode="h5"] .second__panel-title {
    font-size: 0.32rem;
}

html[data-mode="h5"] .second__panel-desc {
    font-size: 0.24rem;
    margin-bottom: 0.3rem;
}

/* ---------- 卡片：PC 为「左轮播 + 右可滚动信息区」，H5 改为纵向堆叠 ---------- */
html[data-mode="h5"] .second__cards {
    max-width: 100%;
    padding: 0 0.3rem;
    margin-bottom: 0.6rem;
    gap: 0.3rem;
}

html[data-mode="h5"] .second__card {
    flex-direction: column;
    height: auto;
    padding: 0.24rem;
    gap: 0.24rem;
}

html[data-mode="h5"] .second__carousel,
html[data-mode="h5"] .second__carousel-track,
html[data-mode="h5"] .second__carousel-track img {
    width: 100%;
    height: 4.6rem;
}

html[data-mode="h5"] .second__carousel {
    flex-shrink: 1;
}

html[data-mode="h5"] .second__carousel-dots button {
    width: 0.16rem;
    height: 0.16rem;
}

/* H5 下取消信息区内部滚动，完整展开 */
html[data-mode="h5"] .second__info {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
}

html[data-mode="h5"] .second__info-title {
    font-size: 0.32rem;
}

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

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

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