/* ============================================================
   FAQ 页面
   ============================================================ */
.faq-main {
    background: #fff;
}

/* ---------- 第一屏 banner ---------- */
.first {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 6rem;
    margin: 0 auto;
    background: url("../assets/images/FAQ/first-img.png") no-repeat center center / cover;
    display: flex;
    align-items: flex-end;
}

.first__content {
    padding: 0 0 0.8rem 3.1rem;
    color: #fff;
}

.first__title {
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.16rem;
}

.first__desc {
    font-size: 0.14rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* ---------- 第三屏 留言表单 ---------- */
.third {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0 1rem;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

/* 背景装饰波浪线 */
.third::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/images/FAQ/third-bg.svg") no-repeat center / cover;
    opacity: 0.45;
    pointer-events: none;
}

.third__inner {
    position: relative;
    width: 13rem;
    margin: 0 auto;
    text-align: center;
}

.third__title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.third__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 0.4rem;
}

.third form {
    width: 100%;
    margin: 0;
    text-align: left;
}

.third form ul {
    display: flex;
    flex-wrap: wrap;
    width: 13rem;
    margin: 0 auto 0.12rem;
    column-gap: 0.15476rem;
    row-gap: 0.12rem;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.third form ul li {
    flex: 0 0 3.13393rem;
    width: 3.13393rem;
}

.third form ul li:nth-child(5),
.third form ul li:nth-child(6) {
    flex: 1 1 100%;
    width: 100%;
}

.third form ul li p {
    margin: 0;
}

.third form ul li span {
    display: block;
}

.third form ul li input,
.third form ul li textarea {
    display: block;
}

.third form input {
    width: 3.13393rem;
    height: 0.6rem;
    padding: 0 0.2rem;
    background: #f1f5fb;
    border: none;
    border-radius: 0.04rem;
    font-family: inherit;
    font-size: 0.16rem;
    color: #0a1d3b;
    outline: none;
    box-sizing: border-box;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.third form input::placeholder {
    color: #98a3b8;
}

.third form input:focus {
    background: #e6ecf6;
    box-shadow: 0 0 0 0.02rem rgba(31, 110, 224, 0.18);
}

.third form input[name="your-prod"] {
    width: 100%;
}

.third form textarea {
    width: 100%;
    height: 2.1rem;
    padding: 0.18rem 0.2rem;
    background: #f1f5fb;
    border: none;
    border-radius: 0.04rem;
    font-family: inherit;
    font-size: 0.16rem;
    color: #0a1d3b;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.third form textarea::placeholder {
    color: #98a3b8;
}

.third form textarea:focus {
    background: #e6ecf6;
    box-shadow: 0 0 0 0.02rem rgba(31, 110, 224, 0.18);
}

.third form > p {
    margin: 0.3rem auto 0.4rem;
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.third form > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.16rem;
}

.third form button {
    width: 1.3rem;
    height: 0.46rem;
    padding: 0;
    border: none;
    border-radius: 0.04rem;
    font-family: Gabarito;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.third form button:active {
    transform: translateY(0.01rem);
}

.third form button[type="reset"] {
    background: #f3f8fd;
    color: #666;
}

.third form button[type="reset"]:hover {
    opacity: 0.85;
}

.third form button[type="submit"] {
    background: linear-gradient(135deg, #2a8bff 0%, #1457e0 100%);
    color: #fff;
}

.third form button[type="submit"]:hover {
    box-shadow: 0 0.04rem 0.16rem rgba(31, 110, 224, 0.32);
    opacity: 0.92;
}

/* ---------- 第三屏 抖动反馈与 Toast ---------- */
.third form input.is-shake,
.third form textarea.is-shake {
    animation: third-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    background: #fbe9ec;
}

@keyframes third-shake {

    10%,
    90% {
        transform: translateX(-0.02rem);
    }

    20%,
    80% {
        transform: translateX(0.04rem);
    }

    30%,
    50%,
    70% {
        transform: translateX(-0.06rem);
    }

    40%,
    60% {
        transform: translateX(0.06rem);
    }
}

.third form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.third-toast {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translate(-50%, 0.4rem);
    padding: 0.16rem 0.32rem;
    background: rgba(10, 29, 59, 0.92);
    color: #fff;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    border-radius: 0.04rem;
    box-shadow: 0 0.08rem 0.24rem rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.third-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 第三屏：内容始终可见，不做依赖 JS 的入场透明处理 */

/* ----------------------------------------------------------------
   第二屏：FAQ 列表（1920×1148）
   结构：手风琴问答列表 + 底部分页
   动效：点击展开/折叠（grid-template-rows 过渡），箭头旋转
   ---------------------------------------------------------------- */
.second {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 11.48rem;
    margin: 0 auto;
    background: #F2F7FB;
    overflow: hidden;
    box-sizing: border-box;
}

.second__inner {
    width: 100%;
    height: 100%;
    padding: 0.6rem 3.1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.second__pages {
    width: 100%;
    max-width: 11.8rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.second__page-panel {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.second__page-panel.is-active {
    display: flex;
}

.second__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.second__item {
    background: #fff;
    border-radius: 0.08rem;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.second__item:hover {
    box-shadow: 0 0.04rem 0.14rem rgba(0, 0, 0, 0.1);
}

.second__question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.22rem 0.3rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.second__qmark {
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.second__qtext {
    flex: 1;
    color: #333;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.second__item.is-open .second__qtext {
    font-weight: 700;
}

.second__arrow {
    flex-shrink: 0;
    width: 0.1rem;
    height: 0.1rem;
    position: relative;
    background: #333333;
    clip-path: polygon(0 0, 62% 50%, 0 100%, 18% 100%, 80% 50%, 18% 0);
    transform: rotate(0deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    margin-right: 0.04rem;
}

.second__arrow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #00B8E2 0%, #0063C3 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.second__item.is-open .second__arrow {
    transform: rotate(90deg);
}

.second__item.is-open .second__arrow::after {
    opacity: 1;
}

.second__answer {
    overflow: hidden;
    height: 0;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.second__item.is-open .second__answer {
    height: auto;
}

.second__answer-inner {
    overflow: hidden;
}

/* 初始化时禁用高度过渡，避免首屏展开项出现入场动画 */
.second--no-anim .second__answer {
    transition: none;
}

.second__answer-inner p {
    margin: 0;
    padding: 0.16rem 0.3rem 0.24rem 0.86rem;
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    border-top: 1px solid #eee;
}

.second__pagination {
    margin-top: 0.24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    flex-shrink: 0;
}

/* 对应目标站 <span class='pages'>，保留结构、页面中隐藏不占位 */
.second__pagination > span:first-child {
    display: none;
}

.second__pagination a,
.second__pagination [data-page] {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D9D9D9;
    border-radius: 0.04rem;
    background: #fff;
    color: #666;
    text-align: center;
    font-family: Roboto;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.second__pagination a:not([aria-current]):not([aria-disabled="true"]):hover,
.second__pagination [data-page]:not([aria-current]):not([aria-disabled="true"]):hover {
    border-color: #0063C3;
    color: #0063C3;
}

.second__pagination [data-page][aria-current] {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    border: none;
    color: #FFF;
}

.second__pagination [aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
}

html.js .second:not(.second--played) .second__item,
html.js .second:not(.second--played) .second__pagination {
    opacity: 0;
    transform: translateY(0.2rem);
    will-change: opacity, transform;
}

html.js .second.is-in-view .second__item,
html.js .second.is-in-view .second__pagination {
    animation-name: secondFadeUp;
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .second.is-in-view .second__item:nth-child(1) {
    animation-delay: 0.06s;
}

html.js .second.is-in-view .second__item:nth-child(2) {
    animation-delay: 0.12s;
}

html.js .second.is-in-view .second__item:nth-child(3) {
    animation-delay: 0.18s;
}

html.js .second.is-in-view .second__item:nth-child(4) {
    animation-delay: 0.24s;
}

html.js .second.is-in-view .second__item:nth-child(5) {
    animation-delay: 0.3s;
}

html.js .second.is-in-view .second__item:nth-child(6) {
    animation-delay: 0.36s;
}

html.js .second.is-in-view .second__item:nth-child(7) {
    animation-delay: 0.42s;
}

html.js .second.is-in-view .second__item:nth-child(8) {
    animation-delay: 0.48s;
}

html.js .second.is-in-view .second__pagination {
    animation-delay: 0.54s;
}

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

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

/* ============================================================
   H5（移动端）适配
   设计稿基准：750px
   ============================================================ */

/* ---------- 顶部导航：汉堡菜单按钮 ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.menu-btn {
    display: none;
}

html[data-mode="h5"] .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.09rem;
    width: 0.44rem;
    height: 0.44rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html[data-mode="h5"] .menu-btn span {
    display: block;
    width: 0.22rem;
    height: 0.03rem;
    border-radius: 0.03rem;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-mode="h5"] .header.is-scrolled .menu-btn {
    background: rgba(51, 51, 51, 0.08);
}

html[data-mode="h5"] .header.is-scrolled .menu-btn span {
    background: #333;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(1) {
    transform: translateY(0.12rem) rotate(45deg);
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-0.12rem) rotate(-45deg);
}

/* 移动端：隐藏桌面导航，保留搜索与 Get a Quote 等右侧按钮 */
html[data-mode="h5"] .header__inner-nav {
    display: none;
}

/* 移动端：导航栏紧凑布局（避免右侧按钮换行，菜单按钮靠最右） */
html[data-mode="h5"] .header__inner {
    justify-content: space-between;
}

html[data-mode="h5"] .logo {
    order: 1;
    margin-left: 0;
    flex-shrink: 0;
}

html[data-mode="h5"] .logo img {
    width: 1.1rem;
    height: auto;
}

html[data-mode="h5"] .header__inner-right {
    order: 2;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.08rem;
}

html[data-mode="h5"] .menu-btn {
    order: 3;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.08rem;
    margin-right: 0;
    flex-shrink: 0;
}

/* 右侧按钮统一不换行 */
html[data-mode="h5"] .header__inner-right-search,
html[data-mode="h5"] .header__inner-right-language,
html[data-mode="h5"] .header__inner-right-msg,
html[data-mode="h5"] .header__inner-right > a:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

html[data-mode="h5"] .header__inner-right-search {
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0;
}

html[data-mode="h5"] .header__inner-right-language {
    width: auto;
    min-width: 0.62rem;
    height: 0.36rem;
    padding: 0 0.08rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right-msg {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right > a:last-child {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

/* 移动端：展开后的全屏下拉菜单 */
html[data-mode="h5"] .header__inner-nav.is-open {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 7.5rem;
    height: calc(100vh - 0.8rem);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.3rem 0.6rem 0.6rem;
    box-sizing: border-box;
    background: #fff;
    overflow-y: auto;
    animation: h5NavFadeIn 0.25s ease both;
}

@keyframes h5NavFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -0.2rem);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item {
    width: 100%;
    padding: 0.22rem 0;
    border-bottom: 0.01rem solid #f0f2f5;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a {
    color: #333;
    font-size: 0.3rem;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item:active a,
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a:active {
    color: #00B8E2;
}

/* ---------- 第一屏 banner（与 oem-odm 页高度对齐） ---------- */
html[data-mode="h5"] .first {
    height: auto;
    min-height: 5.85rem;
    align-items: flex-start;
    padding: 3.4rem 0.4rem 0.6rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .first__content {
    padding: 0;
}

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

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

/* ---------- 第二屏 FAQ 列表 ---------- */
html[data-mode="h5"] .second {
    height: auto;
    min-height: auto;
}

html[data-mode="h5"] .second__inner {
    height: auto;
    padding: 0.5rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .second__pages {
    flex: none;
    overflow: visible;
}

html[data-mode="h5"] .second__page-panel {
    height: auto;
}

html[data-mode="h5"] .second__list {
    gap: 0.2rem;
}

html[data-mode="h5"] .second__question {
    gap: 0.16rem;
    padding: 0.26rem 0.28rem;
}

html[data-mode="h5"] .second__qmark {
    width: 0.48rem;
    height: 0.48rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__qtext {
    font-size: 0.26rem;
    line-height: 1.5;
}

html[data-mode="h5"] .second__answer-inner p {
    font-size: 0.24rem;
    line-height: 1.7;
    padding: 0.2rem 0.28rem 0.28rem 0.92rem;
}

html[data-mode="h5"] .second__pagination {
    margin-top: 0.3rem;
}

/* ---------- 第三屏 留言表单 ---------- */
html[data-mode="h5"] .third {
    padding: 0.7rem 0.4rem 0.7rem;
}

html[data-mode="h5"] .third__inner {
    width: 100%;
}

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

html[data-mode="h5"] .third__subtitle {
    font-size: 0.24rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .third form ul {
    width: 100%;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
    gap: 0.2rem;
}

html[data-mode="h5"] .third form ul li,
html[data-mode="h5"] .third form ul li:nth-child(5),
html[data-mode="h5"] .third form ul li:nth-child(6) {
    flex: 1 1 100%;
    width: 100%;
}

html[data-mode="h5"] .third form input {
    width: 100%;
    height: 0.8rem;
    font-size: 0.26rem;
    border-radius: 0.08rem;
}

html[data-mode="h5"] .third form textarea {
    width: 100%;
    height: 2rem;
    font-size: 0.26rem;
    border-radius: 0.08rem;
}

html[data-mode="h5"] .third form > p {
    font-size: 0.22rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0.3rem auto 0.4rem;
}

html[data-mode="h5"] .third form > div {
    gap: 0.22rem;
}

html[data-mode="h5"] .third form button {
    flex: 1;
    max-width: 2.8rem;
    height: 0.76rem;
    font-size: 0.28rem;
    border-radius: 0.08rem;
}

/* ---------- 页脚 ---------- */
html[data-mode="h5"] .footer__main {
    padding: 0.6rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .footer__links {
    flex-wrap: wrap;
    gap: 0.3rem 0.2rem;
}

html[data-mode="h5"] .footer__col {
    flex: 1 1 40%;
    min-width: 2.6rem;
}

html[data-mode="h5"] .footer__contact-item {
    font-size: 0.2rem;
}

html[data-mode="h5"] .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.3rem;
}

html[data-mode="h5"] .footer__logo {
    width: 4rem;
    height: auto;
}

html[data-mode="h5"] .footer__bar {
    flex-direction: column;
    height: auto;
    padding: 0.18rem 0.4rem;
    gap: 0.1rem;
}