/* =========================================================
   XIAOHUYE USAGE GUIDE
   首頁使用流程
   Version: 2026-08-05 WHY ANALYSIS V3 MOBILE COMPACT
========================================================= */

.usage-guide,
.usage-guide * {
    box-sizing: border-box;
}

.usage-guide {
    position: relative;

    padding:
        92px
        0
        98px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #07111d 0%,
            #0b1929 48%,
            #102033 100%
        );
}

.usage-guide__grid {
    position: absolute;
    inset: 0;
    z-index: 0;

    opacity: 0.12;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.55) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.55) 1px,
            transparent 1px
        );

    background-size:
        48px
        48px;

    -webkit-mask-image:
        radial-gradient(
            ellipse at center,
            #000 24%,
            transparent 82%
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            #000 24%,
            transparent 82%
        );
}

.usage-guide__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1240px;

    margin:
        0
        auto;

    padding:
        0
        24px;
}


/* =========================================================
   標題
========================================================= */

.usage-guide__header {
    max-width: 830px;

    margin:
        0
        auto;

    text-align: center;
}

.usage-guide__eyebrow {
    display: flex;

    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffc35a;

    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.18em;
}

.usage-guide__eyebrow-line {
    width: 36px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 195, 90, 0.75) 100%
        );
}

.usage-guide__eyebrow-line:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 90, 0.75) 0%,
            transparent 100%
        );
}

.usage-guide__title {
    margin:
        18px
        0
        0;

    color: #ffffff;

    font-size: 43px;
    font-weight: 1000;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.usage-guide__title-line {
    display: block;

    color: #ffffff;
}

.usage-guide__title-line--accent {
    margin-top: 5px;

    color: #ffc35a;
}

.usage-guide__subtitle {
    max-width: 720px;

    margin:
        17px
        auto
        0;

    color: rgba(222, 232, 241, 0.72);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   單一流程主面板
========================================================= */

.usage-guide__panel {
    position: relative;

    margin-top: 46px;
    padding:
        28px
        27px
        24px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.025) 100%
        );

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 28px 70px rgba(0, 0, 0, 0.28);
}

.usage-guide__panel-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    filter: blur(75px);

    pointer-events: none;
}

.usage-guide__panel-glow--left {
    top: -180px;
    left: -100px;

    background: rgba(51, 153, 212, 0.16);
}

.usage-guide__panel-glow--right {
    right: -100px;
    bottom: -190px;

    background: rgba(245, 154, 35, 0.16);
}


/* =========================================================
   三步流程
========================================================= */

.usage-guide__steps {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        54px
        minmax(0, 1fr)
        54px
        minmax(0, 1fr);

    align-items: stretch;
    gap: 10px;
}

.usage-step {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 350px;

    padding:
        20px
        19px
        18px;

    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075) 0%,
            rgba(255, 255, 255, 0.035) 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    transition:
        transform 0.20s ease,
        border-color 0.20s ease,
        background-color 0.20s ease;
}

.usage-step:hover {
    border-color: rgba(255, 195, 90, 0.32);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.045) 100%
        );

    transform: translateY(-4px);
}

.usage-step--free {
    border-top-color: rgba(110, 231, 183, 0.46);
}

.usage-step--tools {
    border-top-color: rgba(124, 212, 255, 0.48);
}

.usage-step--selection {
    border-top-color: rgba(255, 195, 90, 0.50);
}

.usage-step__head {
    display: flex;

    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.usage-step__number {
    color: rgba(255, 255, 255, 0.26);

    font-family: monospace;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.12em;
}

.usage-step__status {
    display: inline-flex;

    min-height: 24px;

    padding:
        5px
        8px;

    align-items: center;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.055);

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
}

.usage-step--free
.usage-step__status {
    border-color: rgba(110, 231, 183, 0.25);

    color: #82efc2;
    background: rgba(110, 231, 183, 0.075);
}

.usage-step--tools
.usage-step__status {
    border-color: rgba(124, 212, 255, 0.25);

    color: #7cd4ff;
    background: rgba(124, 212, 255, 0.075);
}

.usage-step--selection
.usage-step__status {
    border-color: rgba(255, 195, 90, 0.27);

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.075);
}

.usage-step__icon {
    display: flex;

    width: 50px;
    height: 50px;

    margin-top: 26px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(110, 231, 183, 0.28);
    border-radius: 15px;

    color: #82efc2;
    background: rgba(110, 231, 183, 0.075);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.usage-step--tools
.usage-step__icon {
    border-color: rgba(124, 212, 255, 0.28);

    color: #7cd4ff;
    background: rgba(124, 212, 255, 0.075);
}

.usage-step--selection
.usage-step__icon {
    border-color: rgba(255, 195, 90, 0.28);

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.075);
}

.usage-step__icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.usage-step__content {
    margin-top: 19px;
}

.usage-step__kicker {
    color: rgba(255, 255, 255, 0.38);

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.15em;
}

.usage-step h3 {
    margin:
        8px
        0
        0;

    color: #ffffff;

    font-size: 21px;
    font-weight: 1000;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.usage-step__content p {
    margin:
        10px
        0
        0;

    color: rgba(220, 231, 240, 0.66);

    font-size: 12px;
    line-height: 1.72;
}

.usage-step__links {
    display: grid;

    margin-top: auto;

    gap: 7px;
}

.usage-step__links a {
    display: flex;

    min-height: 37px;

    padding:
        8px
        10px;

    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;

    color: rgba(239, 245, 249, 0.82);
    background: rgba(255, 255, 255, 0.04);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.usage-step__links a:hover {
    border-color: rgba(255, 195, 90, 0.34);

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.07);
}


/* =========================================================
   流程連接
========================================================= */

.usage-guide__connector {
    display: flex;

    min-width: 0;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.usage-guide__connector span {
    width: 1px;

    flex: 1;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(255, 195, 90, 0.28) 100%
        );
}

.usage-guide__connector span:last-child {
    background:
        linear-gradient(
            180deg,
            rgba(255, 195, 90, 0.28) 0%,
            transparent 100%
        );
}

.usage-guide__connector svg {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    fill: none;
    stroke: #ffc35a;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.78;
}


/* =========================================================
   底部摘要
========================================================= */

.usage-guide__result {
    position: relative;
    z-index: 2;

    display: flex;

    min-height: 88px;

    margin-top: 20px;
    padding:
        17px
        18px;

    align-items: center;
    gap: 14px;

    border: 1px solid rgba(255, 195, 90, 0.18);
    border-radius: 15px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 195, 90, 0.075) 0%,
            rgba(255, 255, 255, 0.035) 54%,
            rgba(255, 255, 255, 0.025) 100%
        );
}

.usage-guide__result-icon {
    display: flex;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 195, 90, 0.26);
    border-radius: 12px;

    color: #ffc35a;
    background: rgba(255, 195, 90, 0.08);
}

.usage-guide__result-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.usage-guide__result-copy {
    min-width: 0;
    flex: 1;
}

.usage-guide__result-copy span {
    display: block;

    color: #ffc35a;

    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.12em;
}

.usage-guide__result-copy strong {
    display: block;

    margin-top: 7px;

    color: rgba(239, 245, 249, 0.88);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.usage-guide__result-action {
    display: inline-flex;

    min-height: 40px;

    padding:
        9px
        13px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid #f59a23;
    border-radius: 9px;

    color: #07111d;
    background: #ffc35a;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.usage-guide__result-action:hover {
    border-color: #d9780a;

    color: #ffffff;
    background: #d9780a;
}


/* =========================================================
   平板
========================================================= */

@media (max-width: 1023px) {

    .usage-guide__steps {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .usage-step {
        min-height: 0;
    }

    .usage-guide__connector {
        min-height: 34px;

        flex-direction: row;
    }

    .usage-guide__connector span {
        width: auto;
        height: 1px;

        background:
            linear-gradient(
                90deg,
                transparent 0%,
                rgba(255, 195, 90, 0.28) 100%
            );
    }

    .usage-guide__connector span:last-child {
        background:
            linear-gradient(
                90deg,
                rgba(255, 195, 90, 0.28) 0%,
                transparent 100%
            );
    }

    .usage-guide__connector svg {
        transform: rotate(90deg);
    }

    .usage-step__links {
        margin-top: 22px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   手機
========================================================= */

@media (max-width: 767px) {

    .usage-guide__title-line--accent {
        margin-top: 3px;
    }

    .usage-guide {
        padding:
            67px
            0
            72px;
    }

    .usage-guide__container {
        padding:
            0
            14px;
    }

    .usage-guide__title {
        font-size: 32px;
    }

    .usage-guide__subtitle {
        font-size: 13px;
        line-height: 1.72;
    }

    .usage-guide__panel {
        margin-top: 34px;
        padding:
            14px;

        border-radius: 20px;
    }

    .usage-step {
        padding:
            18px
            16px
            16px;

        border-radius: 15px;
    }

    .usage-step__icon {
        margin-top: 21px;
    }

    .usage-step h3 {
        font-size: 20px;
    }

    .usage-step__links {
        grid-template-columns: 1fr;
    }

    .usage-guide__result {
        display: block;

        padding:
            16px;
    }

    .usage-guide__result-icon {
        width: 38px;
        height: 38px;
    }

    .usage-guide__result-copy {
        margin-top: 12px;
    }

    .usage-guide__result-action {
        width: 100%;

        margin-top: 14px;
    }

}


/* =========================================================
   小手機
========================================================= */

@media (max-width: 420px) {

    .usage-guide__title {
        font-size: 29px;
    }

    .usage-guide__eyebrow {
        font-size: 8px;
    }

    .usage-guide__eyebrow-line {
        width: 24px;
    }

}


/* =========================================================
   減少動畫偏好
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .usage-step {
        transition: none;
    }

    .usage-step:hover {
        transform: none;
    }

}


/* =========================================================
   MOBILE V3：使用流程移動端緊湊重排
   只作用於 767px 以下，PC／平板完全不動
========================================================= */

@media (max-width: 767px) {

    /* 整區高度明顯收斂 */
    .usage-guide {
        padding:
            44px
            0
            50px;
    }

    .usage-guide__container {
        padding:
            0
            13px;
    }

    /* 標題區 */
    .usage-guide__eyebrow {
        gap: 8px;

        font-size: 7px;
        letter-spacing: 0.14em;
    }

    .usage-guide__eyebrow-line {
        width: 24px;
    }

    .usage-guide__title {
        margin-top: 14px;

        font-size: 28px;
        line-height: 1.14;
    }

    .usage-guide__title-line--accent {
        margin-top: 3px;
    }

    .usage-guide__subtitle {
        margin-top: 11px;

        font-size: 12px;
        line-height: 1.62;
    }

    /* 外層主面板縮薄 */
    .usage-guide__panel {
        margin-top: 27px;
        padding:
            10px;

        border-radius: 18px;
    }

    .usage-guide__panel-glow {
        width: 190px;
        height: 190px;

        filter: blur(58px);
    }

    /* 三步驟改成更緊湊的手機卡片 */
    .usage-guide__steps {
        display: grid;

        grid-template-columns: 1fr;

        gap: 0;
    }

    .usage-step {
        display: grid;

        min-height: 0;

        padding:
            13px
            12px
            12px;

        grid-template-columns:
            40px
            minmax(0, 1fr);

        grid-template-areas:
            "head head"
            "icon content"
            "links links";

        column-gap: 11px;

        border-radius: 14px;
    }

    .usage-step__head {
        grid-area: head;
    }

    .usage-step__number {
        font-size: 10px;
    }

    .usage-step__status {
        min-height: 21px;

        padding:
            4px
            7px;

        font-size: 7px;
    }

    .usage-step__icon {
        grid-area: icon;

        width: 38px;
        height: 38px;

        margin-top: 12px;

        border-radius: 11px;
    }

    .usage-step__icon svg {
        width: 20px;
        height: 20px;
    }

    .usage-step__content {
        grid-area: content;

        margin-top: 11px;
    }

    /* 英文副標在手機版不再佔一行 */
    .usage-step__kicker {
        display: none;
    }

    .usage-step h3 {
        margin-top: 0;

        font-size: 17px;
        line-height: 1.24;
    }

    .usage-step__content p {
        margin-top: 6px;

        font-size: 10px;
        line-height: 1.58;
    }

    /* 每一步的兩個入口改成同一排 */
    .usage-step__links {
        grid-area: links;

        margin-top: 11px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }

    .usage-step__links a {
        min-width: 0;
        min-height: 34px;

        padding:
            7px
            8px;

        border-radius: 8px;

        font-size: 9px;
        line-height: 1.2;
    }

    /* 步驟連接縮短，避免三張卡被拉開 */
    .usage-guide__connector {
        min-height: 24px;

        gap: 5px;
    }

    .usage-guide__connector svg {
        width: 18px;
        height: 18px;

        flex-basis: 18px;
    }

    /* 底部摘要改為緊湊兩欄 */
    .usage-guide__result {
        display: grid;

        min-height: 0;

        margin-top: 10px;
        padding:
            13px
            12px;

        grid-template-columns:
            34px
            minmax(0, 1fr);

        align-items: center;
        gap:
            0
            10px;

        border-radius: 12px;
    }

    .usage-guide__result-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        border-radius: 10px;
    }

    .usage-guide__result-icon svg {
        width: 18px;
        height: 18px;
    }

    .usage-guide__result-copy {
        margin-top: 0;
    }

    .usage-guide__result-copy span {
        font-size: 7px;
    }

    .usage-guide__result-copy strong {
        margin-top: 5px;

        font-size: 11px;
        line-height: 1.5;
    }

    .usage-guide__result-action {
        grid-column:
            1
            / -1;

        width: 100%;
        min-height: 37px;

        margin-top: 10px;
        padding:
            8px
            11px;

        border-radius: 8px;

        font-size: 9px;
    }

}


/* =========================================================
   MOBILE V3：小手機
========================================================= */

@media (max-width: 420px) {

    .usage-guide__title {
        font-size: 27px;
    }

    .usage-step__links {
        grid-template-columns: 1fr;
    }

    .usage-step__links a {
        min-height: 33px;
    }

}
