* {
    box-sizing: border-box;
}



/* =========================
   外框
========================= */

.camera-price-box {
    width: 90%;
    margin: 20px auto 50px auto;
    background: #fff;
    border-radius: 38px;
    overflow: hidden;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.18), 0 15px 30px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
}


/* =========================
   Header
========================= */

.camera-price-header {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 62px 0 48px;

    background:
        linear-gradient(90deg,
            #3e3e3e 0%,
            #505050 22%,
            #c7c7c7 48%,
            #5a5a5a 74%,
            #3a3a3a 100%);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.22);

    position: relative;
    z-index: 3;
}

.camera-price-title {
    display: flex;
    align-items: center;
}

.camera-price-title h2 {
    margin: 0;

    color: #fff;

    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* 相機 icon */

.camera-icon {
    width: 74px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-icon img {
    width: 100%;
}

.camera-icon svg {
    width: 70px;
    height: 52px;

    fill: none;
    stroke: rgba(255, 255, 255, 0.85);

    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 標題中間直線 */

.title-line {
    display: block;

    width: 1px;
    height: 64px;

    margin: 0 32px;

    background: rgba(255, 255, 255, 0.4);
}


/* =========================
   收合箭頭
========================= */

.collapse-btn {
    width: 46px;
    height: 46px;

    padding: 0;

    border: 2px solid #fff;
    border-radius: 50%;

    background: transparent;

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

    cursor: pointer;

    flex-shrink: 0;
}

.qa-header .collapse-btn {
    border: 2px solid #4d4d4d;
}

/* 用 CSS 畫箭頭 */

.arrow {
    width: 15px;
    height: 15px;

    display: block;

    border-top: 2px solid #fff;
    border-left: 2px solid #fff;

    /*
    預設為「向上」
  */
    transform: translateY(4px) rotate(45deg);

    transition:
        transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

.qa-header .arrow {
    border-top: 2px solid #4D4D4D;
    border-left: 2px solid #4D4D4D;
}

/*
  收合後箭頭轉 180 度
*/

.camera-price-box.is-collapsed .arrow,
.qa-box.is-collapsed .arrow {
    transform: translateY(-4px) rotate(225deg);
}


/* =========================
   收合動畫
========================= */

.camera-collapse {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.55s cubic-bezier(.4, 0, .2, 1);
}

.camera-collapse-inner {
    min-height: 0;
    overflow: hidden;
}


/* 收合 */


.camera-price-box:not(.is-collapsed) .camera-collapse {
    grid-template-rows: 1fr;
}

.qa-box:not(.is-collapsed) .camera-collapse {
    grid-template-rows: 1fr;
}

/* =========================
   價格列表
========================= */

.price-list {
    width: 100%;
}

.price-row {
    min-height: 112px;

    display: grid;

    /*
    左邊型號約 83%
    右邊價格約 17%
  */
    grid-template-columns: 1fr 174px;

    border-bottom: 1px solid #bcbcbc;
}

.product-name {
    padding: 26px 32px;
    display: flex;
    align-items: center;
    font-size: 22px;
    line-height: 1.55;
    color: #555;
    font-family: 'SST-Medium', 'Noto Sans TC', '微軟正黑體', sans-serif;
    font-weight: 400;
}

.product-price {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: 600;
    color: #474747;
    white-space: nowrap;
    font-family: 'SSTPRO-BOLD';
    letter-spacing: 0px;
}

.monicon {
    font-size: 23px;
    display: contents;
}

/* 中間虛線 */

.product-price::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    border-left: 2px dotted #c4c4c4;
}


/* =========================
   購買區
========================= */

.buy-area {
    height: 88px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.buy-btn {
    min-width: 180px;
    height: 48px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #fff;
    text-decoration: none;

    font-size: 21px;
    letter-spacing: 1px;

    background: linear-gradient(to bottom,
            #111 0%,
            #000 72%,
            #838383 100%);

    border-radius: 50px;

    box-shadow:
        0 4px 3px rgba(0, 0, 0, 0.32);
}

.buy-btn svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================
   Hover
========================= */

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.buy-btn:hover {
    background: #222;
}


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

@media (max-width: 900px) {

    .camera-price-box {
        border-radius: 28px;
    }

    .camera-price-header {
        min-height: 80px;

        padding:
            0 35px 0 30px;
    }

    .camera-price-title h2 {
        font-size: 27px;
    }

    .camera-icon {
        width: 62px;
    }

    .camera-icon svg {
        width: 58px;
    }

    .title-line {
        height: 52px;
        margin: 0 24px;
    }

    .price-row {
        grid-template-columns:
            1fr 150px;
    }

    .product-name {
        font-size: 19px;

        padding:
            22px 25px;
    }

    .product-price {
        font-size: 29px;
    }
}


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

@media (max-width: 640px) {


    .camera-price-box {
        border-radius: 20px;
    }

    .camera-price-header {
        min-height: 68px;

        padding:
            0 18px 0 18px;
    }

    .camera-icon {
        width: 44px;
        height: 45px;
    }

    .camera-icon svg {
        width: 43px;
    }

    .title-line {
        height: 40px;

        margin:
            0 15px;
    }

    .camera-price-title h2 {
        font-size: 21px;
        letter-spacing: 0;
    }

    .collapse-btn {
        width: 38px;
        height: 38px;
    }

    .arrow {
        width: 12px;
        height: 12px;
    }

    .price-row {
        min-height: 90px;

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

    .product-name {
        padding:
            18px 16px;

        font-size: 15px;
        line-height: 1.55;

        word-break: break-word;
    }

    .product-price {
        padding:
            12px 8px;

        font-size: 23px;
    }

    .buy-area {
        height: 76px;
    }

    .buy-btn {
        min-width: 155px;
        height: 43px;

        font-size: 18px;
    }

}

@media screen and (max-width: 1500px) {

    .camera-price-box {
        width: 80%;
    }
}
