/* Find Your Scent 活动单页 */
.ai-activity-container{
    width: 100vw;
    background: linear-gradient(180deg, #e9e7e0 0%, #ffffff 20%);
}
.fys-stage {
    position: relative;
    width: 100%;
    height: 1080px;
    margin: 0 auto;
    overflow: hidden;
    
    font-family: "Bodoni Moda", "Bodoni MT", "Didot", Georgia, "Times New Roman", serif;
    color: #1a1a1a;
}

/* 视图切换 */
.fys-view {
    position: absolute;
    inset: 0;
    display: none;
}

.fys-view.active {
    display: block;
}

/* ============ 通用按钮 ============ */
.fys-btn {
    display: inline-block;
    padding: 24px 56px;
    background: #f0efeb;
    border: none;
    border-left: 6px solid #1a1a1a;
    font-family: inherit;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fys-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ============ 介绍页 ============ */
.fys-intro {
    background: url("/wp-content/themes/bodoni-child/images/main.jpg") center / cover no-repeat;
}

.fys-intro-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 200px;
}

.fys-intro-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    margin: 0 0 100px;
}

.fys-intro-text {
    font-size: 28px;
    font-style: italic;
    line-height: 2;
    max-width: 1120px;
    margin: 0 0 65px;
}

.fys-intro-facts {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(180deg, rgba(241, 239, 235, 0), rgba(241, 239, 235, 1));
    border-radius: 16px;
    padding: 28px 80px;
    font-size: 28px;
    margin: 0 0 20px;
}

.fys-intro-facts .num {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    margin-right: 8px;
}

.fys-intro-facts .sep {
    font-size: 44px;
    font-weight: 400;
}

.fys-intro-note {
    font-size: 17px;
    color: #666;
    margin: 0 0 90px;
}

/* ============ 题目页 ============ */
.fys-quiz {
    padding: 70px 0 0;
}

.fys-quiz-title {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    margin: 0 auto 60px;
    max-width: 1400px;
}

.fys-options {
    width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.fys-option {
    border: 1px solid #1a1a1a;
    background: #ffffff;
    padding: 26px 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fys-option .opt-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.fys-option .opt-sub {
    font-size: 23px;
    line-height: 1.4;
    margin: 0;
}

.fys-option.selected {
    background: #000000;
    color: #ffffff;
}

/* 图片选项（Q3） */
.fys-options.images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.fys-option.image-opt {
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.fys-option.image-opt img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.fys-option.image-opt.selected::after {
    /* 黑色边框用 border，白色内衬用 inset shadow，避免多重阴影叠加顺序问题 */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px solid #000000;
    box-shadow: inset 0 0 0 12px #ffffff;
}

/* 底部操作区 */
.fys-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: 70px;
}

.fys-footer .fys-btn.back {
    position: absolute;
    left: 340px;
    top: 0;
    padding: 20px 44px;
}

.fys-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 28px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
    color: #666;
    pointer-events: none; /* 整行横跨会盖住 BACK 按钮，放行鼠标事件 */
}

/* ============ 计算结果过渡页 ============ */
.fys-calculating {
    background: url("/wp-content/themes/bodoni-child/images/calculating.jpg") center / cover no-repeat;
}

.fys-calc-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
}

.fys-calc-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 48px;
}

.fys-calc-text {
    font-size: 32px;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* ============ 结果页（1920x4472 长图 + 百分比热区） ============ */
.fys-stage.has-result {
    height: auto;
    /* 顶部米色通铺全宽，竖向渐变过渡到白色 */
    background: linear-gradient(180deg, #e9e7e0 0%, #ffffff 20%);
    width: 100%;
}

.fys-stage.has-result .fys-view.active {
    position: relative;
    inset: auto;
}

.fys-result {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 1920 / 4472;
    background: top center / 100% 100% no-repeat;
}

/* SHOP THIS SCENT 按钮（热区随背景图等比缩放，字号同步用 vw 跟随容器） */
.fys-result .fys-btn.shop {
    position: absolute;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(20px, 1.042vw);
    letter-spacing: min(2px, 0.105vw);
    border-left-width: min(5px, 0.26vw);
    text-decoration: none;
    white-space: nowrap;
}

/* ============ 触屏交互 ============ */
.fys-btn,
.fys-option {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 触屏无 hover，用按下态反馈，避免 hover 粘滞 */
@media (hover: none) {
    .fys-btn:hover {
        background: #f0efeb;
        color: #1a1a1a;
    }

    .fys-btn:active {
        background: #1a1a1a;
        color: #ffffff;
    }

    .fys-option:not(.selected):active {
        background: #f5f4f0;
    }
}

/* ============ 移动端适配（<=768px） ============ */
@media (max-width: 768px) {
    .fys-stage {
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }

    /* 由固定画布改为文档流，内容超出可滚动 */
    .fys-view {
        position: relative;
        inset: auto;
    }

    /* ---- 介绍页 ---- */
    .fys-intro-inner {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding: 72px 24px;
    }

    .fys-intro-title {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .fys-intro-text {
        font-size: 17px;
        line-height: 1.8;
        margin-bottom: 32px;
    }

    .fys-intro-facts {
        flex-direction: column;
        gap: 12px;
        padding: 22px 28px;
        font-size: 18px;
        margin-bottom: 16px;
    }

    .fys-intro-facts .num {
        font-size: 28px;
    }

    .fys-intro-facts .sep {
        display: none;
    }

    .fys-intro-note {
        font-size: 13px;
        margin-bottom: 44px;
    }

    .fys-btn {
        padding: 18px 44px;
        font-size: 18px;
    }

    /* ---- 题目页 ---- */
    .fys-view.active.fys-quiz {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100svh;
        padding: 56px 0 0;
    }

    .fys-quiz-title {
        font-size: 28px;
        margin: 0 24px 36px;
    }

    .fys-options {
        width: auto;
        margin: 0 24px;
        gap: 18px;
    }

    .fys-option {
        padding: 20px 16px;
    }

    .fys-option .opt-title {
        font-size: 21px;
    }

    .fys-option .opt-sub {
        font-size: 16px;
    }

    /* 图片选项：单列、控制高度 */
    .fys-options.images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fys-option.image-opt img {
        height: 220px;
    }

    .fys-option.image-opt.selected::after {
        box-shadow: inset 0 0 0 8px #ffffff;
    }

    /* 底部操作区回到文档流并贴底 */
    .fys-footer {
        position: static;
        height: auto;
        display: flex;
        align-items: center;
        margin-top: auto;
        padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
    }

    .fys-footer .fys-btn.back {
        position: static;
        padding: 16px 36px;
        font-size: 18px;
    }

    .fys-progress {
        position: static;
        flex: 1;
        text-align: center;
        font-size: 16px;
    }

    /* ---- 过渡页 ---- */
    .fys-calc-title {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .fys-calc-text {
        font-size: 18px;
    }
}
