/* 问答栏目 — 三级分类（售前/售中/售后 → 三级标签） */
.wenda-main {
    background: #eff5fd;
}

/*
 * 首屏整块 492px：
 * - banner 图绝对铺满 0~492
 * - 栏目条从 top:392 起高 100px，半透明叠在图上，透出底部 100px 画面
 */
.wenda-hero {
    position: relative;
    width: 100%;
    height: 492px;
    padding: 0;
    overflow: visible;
    background: #eff5fd;
}

.wenda-banner {
    position: relative;
    width: 100%;
    height: 492px;
    overflow: visible; /* 三级下拉要溢出显示 */
}

.wenda-banner-img {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 492px;
    object-fit: cover;
    object-position: center center;
}

/* 文案区：距首屏顶 121、左 560；标题底到栏目顶 208 */
.wenda-hero-inner {
    position: absolute;
    left: 560px;
    top: 121px;
    z-index: 2;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block;
    pointer-events: none;
}

.wenda-hero-copy {
    text-align: left;
    pointer-events: auto;
}

.wenda-hero-title {
    margin: 0;
    width: auto;
    min-width: 130px;
    height: 64px;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: bold;
    font-size: 68px;
    line-height: 64px;
    color: #1e54ec;
    background: linear-gradient(0deg, #1e54ec 0%, #5f5ffd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
}

.wenda-hero-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% + 29px); /* 文字底到横线顶 29px */
    bottom: auto;
    width: 128px;
    height: 7px;
    background: linear-gradient(90deg, #1e54ec, #5f5ffd);
    border-radius: 0;
}

/* 副标题：距首屏顶 258、左约 562；258+24+210=492 */
.wenda-hero-desc {
    margin: 73px 0 0; /* 121 标题顶 + 64 标题高 + 73 = 258 */
    width: 287px;
    height: 24px;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: #1b1b1b;
    background: linear-gradient(0deg, #1e54ec 0%, #5f5ffd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: visible;
}

/* 栏目条：在 492 首屏内，从 392 起占 100px，白 40% 透出底层 banner */
.wenda-tabs {
    position: absolute;
    left: 0;
    top: 392px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.4);
}

.wenda-tab-wrap {
    position: relative;
}

.wenda-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    height: 52px;
    padding: 0 22px;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: #1b1b1b;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, font-weight .25s ease;
    box-sizing: border-box;
    background: transparent;
    border-radius: 26px;
    text-decoration: none;
    cursor: pointer;
}

.wenda-tab:hover {
    color: #1f54ec;
}

.wenda-tab.active,
.wenda-tab.active:hover {
    background: #ffffff;
    box-shadow: 0 3px 4px 0 rgba(30, 127, 236, 0.03);
    color: #1f54ec;
    font-weight: 700;
}

.wenda-tab-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.wenda-tab-wrap:hover .wenda-tab-arrow,
.wenda-tab-wrap.open .wenda-tab-arrow {
    transform: rotate(-135deg) translateY(-2px);
}

/* 三级下拉（图1）——用 padding-top 做隐形桥接，避免空隙导致移入三级时菜单关闭 */
.wenda-sub {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 188px;
    padding-top: 12px;
    margin-top: -2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 20;
}

.wenda-tab-wrap:hover .wenda-sub,
.wenda-tab-wrap.open .wenda-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wenda-sub-inner {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 84, 236, 0.12);
    padding: 14px 10px;
}

.wenda-sub-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: -2px -2px 6px rgba(30, 84, 236, 0.04);
    border-radius: 2px;
}

.wenda-sub-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #1b1b1b;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.wenda-sub-item:hover,
.wenda-sub-item.active {
    background: #eef4ff;
    color: #1e54ec;
}

.wenda-sub-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.wenda-sub-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e54ec;
    flex-shrink: 0;
}

/* 内容区 — 距栏目条 62px；1920 下左右各 260 → 宽 1400 */
.wenda-content {
    padding: 62px 0 100px;
    background: #eff5fd;
}

.wenda-container {
    width: 1400px;
    max-width: calc(100% - 520px); /* 260 * 2 */
    margin: 0 auto;
}

.wenda-list {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 84, 236, 0.06);
    overflow: hidden;
    border: 1px solid #e8eef8;
}

.wenda-item {
    border-bottom: 1px solid #eef2f7;
}

.wenda-item:last-child {
    border-bottom: none;
}

.wenda-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    /* 标注：上 41 / 左右 30；收起时底 41 */
    padding: 41px 30px;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease;
}

.wenda-item.open .wenda-question {
    /* 问题到答案 20px */
    padding-bottom: 20px;
}

.wenda-question:hover {
    background: #f8fbff;
}

.wenda-q-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 标注：标签到问题 35 */
    gap: 35px;
}

.wenda-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 170px;
    height: 46px;
    padding: 0;
    border-radius: 23px;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* 售前 — #1F54EC（全部 / 本栏目一致） */
.theme-wd_presale .wenda-cat {
    color: #1f54ec;
    background: #eaf2ff;
}

.theme-wd_presale.open .wenda-cat,
.theme-wd_presale .wenda-cat.is-active {
    color: #ffffff;
    background: #1f54ec;
}

/* 售中 — 胶囊 #FDEDEE / 字 #EC1F21 */
.theme-wd_onsale .wenda-cat {
    color: #ec1f21;
    background: #fdedee;
}

.theme-wd_onsale.open .wenda-cat,
.theme-wd_onsale .wenda-cat.is-active {
    color: #ffffff;
    background: #ec1f21;
}

/* 售后 — 胶囊 #FEF4EB / 字 #FD8F0D */
.theme-wd_aftersale .wenda-cat {
    color: #fd8f0d;
    background: #fef4eb;
}

.theme-wd_aftersale.open .wenda-cat,
.theme-wd_aftersale .wenda-cat.is-active {
    color: #ffffff;
    background: #fd8f0d;
}

.wenda-q-text {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.5;
}

.wenda-item.open .wenda-q-text {
    color: #1f54ec;
}

.wenda-toggle {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    /* 与胶囊同高对齐；箭头统一蓝色 */
    margin-top: 0;
    border-radius: 50%;
    background: #1f54ec;
    position: relative;
    transition: transform .25s ease, background .25s ease;
}

.wenda-toggle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform .25s ease;
}

.wenda-item.open .wenda-toggle::before {
    transform: translate(-50%, -20%) rotate(-135deg);
}

.wenda-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.wenda-item.open .wenda-answer {
    max-height: 1200px;
}

.wenda-answer-inner {
    /* 左 30 与问题对齐；底到分割线 29px；宽约 1331 */
    margin: 0 30px 29px;
    padding: 0;
    max-width: 1331px;
    font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1b1b1b;
    background: transparent;
    border-radius: 0;
}

.wenda-answer-inner p {
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1b1b1b;
}

.wenda-answer-inner p:last-child {
    margin-bottom: 0;
}

.wenda-empty {
    padding: 72px 20px;
    text-align: center;
    color: #8a94a6;
    font-size: 15px;
}

@media screen and (max-width: 1200px) {
    .wenda-hero {
        height: 420px;
    }

    .wenda-banner,
    .wenda-banner-img {
        height: 420px;
    }

    .wenda-hero-inner {
        left: 48px;
        top: 72px;
        max-width: calc(100% - 96px);
    }

    .wenda-hero-title {
        width: auto;
        height: auto;
        font-size: 48px;
        line-height: 1.2;
    }

    .wenda-hero-desc {
        font-size: 18px;
        margin-top: 18px;
    }

    .wenda-tabs {
        top: auto;
        bottom: 0;
        flex-wrap: wrap;
        gap: 12px 18px;
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
    }

    .wenda-content {
        padding: 48px 0 80px;
    }

    .wenda-container {
        max-width: calc(100% - 48px);
    }

    .wenda-tab {
        min-width: 120px;
        height: 44px;
        font-size: 16px;
        padding: 0 16px;
    }
}

@media screen and (max-width: 768px) {
    .wenda-hero {
        height: 320px;
    }

    .wenda-banner,
    .wenda-banner-img {
        height: 320px;
    }

    .wenda-hero-inner {
        left: 24px;
        top: 40px;
        max-width: calc(100% - 48px);
    }

    .wenda-tabs {
        top: auto;
        bottom: 0;
        height: 70px;
        gap: 8px;
        width: calc(100% - 24px);
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .wenda-hero-title {
        font-size: 36px;
    }

    .wenda-hero-desc {
        font-size: 15px;
        margin-top: 12px;
    }

    .wenda-tab {
        min-width: auto;
        height: 40px;
        font-size: 14px;
        padding: 0 14px;
        flex-shrink: 0;
    }

    .wenda-sub {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        transform: none;
        width: auto;
        min-width: 0;
    }

    .wenda-sub-inner::before {
        display: none;
    }

    .wenda-tabs {
        height: auto;
        min-height: 56px;
    }

    .wenda-content {
        padding: 28px 0 60px;
    }

    .wenda-container {
        max-width: calc(100% - 24px);
    }

    .wenda-question {
        padding: 24px 16px;
    }

    .wenda-item.open .wenda-question {
        padding-bottom: 14px;
    }

    .wenda-q-main {
        gap: 16px;
    }

    .wenda-cat {
        width: auto;
        min-width: 0;
        height: 36px;
        padding: 0 14px;
        font-size: 14px;
        border-radius: 18px;
    }

    .wenda-q-text {
        font-size: 15px;
    }

    .wenda-answer-inner {
        margin: 0 16px 24px;
        max-width: none;
        font-size: 14px;
    }

    .wenda-toggle {
        width: 32px;
        height: 32px;
    }
}
