@import '../../lib/css/googlefonts.css';

/* ===== Reset ===== */
/* 通用樣式 */
*,
::after,
::before {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin-top: 0;
    position: relative;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
}

body {
    font-family:
        system-ui,
        PingFangTC,
        Noto Sans,
        sans-serif !important;
    margin: 0 auto !important;
    max-width: 991px !important;
    background: #ffb499;
}

ul,
li,
ol {
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding: 0 !important;
    max-width: 376px;
    margin: 0 auto !important;
    display: block;
    justify-content: center;
}

img {
    display: block;
}

p {
    margin: 0;
    font-size: 14px;
}

button {
    border: 0;
    background: none;
}

.color-success {
    color: #00cca3;
}

.color-review {
    color: #0f5fff;
}

.color-fail {
    color: #ff4600;
}

#app {
    max-width: 414px;
    margin: auto;
}

/* ===== Banner ===== */

.banner img {
    width: 100%;
    display: block;
}

.banner canvas {
    width: 100%;
    display: block;
    background-color: #ffece5;
}

/* ===== Nav ===== */
.nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav .d-flex {
    gap: 8px;
    padding: 16px;
    background: #ffdacc;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav .d-flex::-webkit-scrollbar {
    display: none;
}

.nav button {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 22px;
    border: 1px solid #ebedf3;
    background: #fff;
    color: #ff6933;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav button.active {
    background-color: #ff6933;
    color: #ffffff;
    border-color: #ffb499;
}

/* ===== Sections ===== */
.section {
    padding: 32px 20px 0;
}

.bg-color {
    background: #ffece5;
}

.title {
    text-align: center;
    color: #ff4600;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 16px;
}

/* ===== Cards ===== */
.card {
    background: #fff;
    border-radius: 12px;
    border: none;
}

.card-title {
    background-color: #ff6933;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 52px;
    margin: 0;
}

.card-title > p {
    color: white;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.card-title span.highlight {
    color: #ffe500;
    font-size: 28px;
    font-weight: 800;
    line-height: 24px;
    padding: 0 2px;
}

.card-content {
    display: inline-block;
    width: 100%;
    padding: 24px 20px;
}

.card-content li {
    list-style: none;
    margin: 0;
}

/* ===== Promo ===== */
.promo-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.promo-list li:last-child {
    margin-bottom: 0;
}

.promo-list li h3 {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #33353b;
    display: flex;
    gap: 4px;
    justify-content: start;
    align-items: center;
    margin-bottom: 8px;
}

.promo-list li h3 span.heading-highlight {
    color: #ff4f4d;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.promo-list li .promo-list-desc {
    font-size: 14px;
    line-height: 22px;
    text-align: justify;
    font-weight: 400;
    color: #33353b;
}

li.promo-date {
    background-color: #caf5fc;
    border-radius: 16px;
    padding: 4px 8px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

li.promo-date p {
    font-size: 15px;
    font-weight: 900;
    color: #0095b2;
    line-height: 24px;
    text-align: center;
}

li.promo-date p span {
    color: #0095b2;
    margin: 0 4px;
}

.promo-list li.promo-slogan {
    background-color: #f6f8fe;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    padding: 18px 24px;
    width: 100%;
    gap: 4px;
}

.promo-slogan p {
    line-height: 24px;
    font-size: 16px;
    font-weight: 500;
    color: #33353b;
    text-align: center;
}

.promo-slogan p span {
    padding: 0 6px;
}

.middle-badge {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: center;
    background-color: #ffdacc;
    color: #ff4600;
    border-radius: 16px;
    margin: -12px auto;
    z-index: 1;
    padding: 4px 0;
    max-width: 40%;
}

.promo-slider {
    padding: 24px 27px 32px 28px;
}

.promo-button button {
    width: 100%;
    height: 48px;
    border: 0;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    color: #ffffff;
    line-height: 22px;
    background: #ff4600;
    border-radius: 12px;
    cursor: pointer;
}

/* ===== Swiper ===== */
.swiper {
    width: 100%;
    overflow: hidden;
}

.swiper .swiper-slide img {
    width: 100%;
    cursor: pointer;
}

.swiper .swiper-pagination {
    position: relative;
    /* 不要浮在圖上 */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 12px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #33353b;
    opacity: 0.2;
    border-radius: 12px;
    height: 20px;
    padding: 2px 6px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    width: fit-content;
}

.swiper .swiper-pagination-current,
.swiper .swiper-pagination-total {
    color: #ffffff;
    width: 16px;
}

.swiper .swiper-pagination-total::before {
    content: '/';
}

.swiper-button-prev:after,
.swiper-container-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-container-rtl .swiper-button-prev:after {
    content: '';
}

.swiper-button-prev,
.swiper-button-next {
    --size: 22px;
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.swiper-button-prev {
    background-image: url('./../img/PayPay/btn_slider.svg');
    margin-left: 8px;
}

.swiper-button-next {
    background-image: url('./../img/PayPay/btn_slider.svg');
    transform: rotate(180deg);
    margin-right: 8px;
}

/* ===== Coupon ===== */
.coupon-list {
    max-width: 100%;
    text-align: center;
}

.coupon-list p {
    text-align: left;
    line-height: 22px;
    font-size: 14px;
    font-weight: 400;
    color: #33353b;
}

.coupon-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ticket_familymart {
    max-width: 100%;
    margin: 32px 0 12px 0;
}

.ticket_familymart img,
.coupon-pic img {
    object-fit: contain;
    width: 100%;
    cursor: pointer;
}

.bank_discount {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bank_discount > div {
    margin-left: 8px;
}

.bank_discount small {
    color: #73757b;
    font-size: 12px;
    line-height: 20px;
}

.bank_discount p {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    margin-top: 4px;
}

/* ===== Tutorial ===== */
.tutorial {
    max-width: 360px;
    margin: auto;
    padding: 24px 16px;
}

.tutorial strong {
    color: #33353b;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.tutorial-switchcity ul h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 16px;
}

.step-badge {
    --size: 22px;
    width: var(--size);
    height: var(--size);
    border-radius: 9999px;
    background: #0095b2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    font-size: calc(var(--size) * 0.58);
    margin-right: 8px;
}

.step-badge--md {
    --size: 24px;
}

.tutorial-switchcity ul li {
    margin-bottom: 32px;
}

.tutorial-switchcity ul li:last-child {
    margin-bottom: 0;
}

.tutorial-switchcity ul > li > ol {
    margin: 0;
}

.tutorial-switchcity ul > li > ol > li::before {
    content: '·';
    padding-right: 10px;
}

.tutorial-switchcity ul > li > ol > li {
    padding-left: 26px;
    text-indent: -17px;
    margin-bottom: 0;
    font-size: 14px;
}

.tutorial-usepaypay .d-flex {
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.tutorial-usepaypay .d-flex img {
    width: 100%;
}

.tutorial-usepaypay .tips {
    background-color: #ffe7cc;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    line-height: 16px;
    font-size: 10px;
    font-weight: 400;
}

#tutorial-useapp {
    background: none;
}

#tutorial-useapp.nav {
    position: static;
}

#tutorial-useapp .nav-item {
    width: 50%;
}

#tutorial-useapp .nav-item button {
    border-radius: 12px 12px 0 0;
    background-color: #ffdacc;
    border: none;
    color: #ff6933;
    width: 100%;
    cursor: pointer;
}

#tutorial-useapp .nav-item button.active {
    border-radius: 12px 12px 0 0;
    background-color: #ff6933;
    border: none;
    color: #ffffff;
}

.tab-content {
    padding: 24px 0 32px;
    background-color: #ffffff;
    width: 100%;
}

.scan-switch {
    position: relative;
    display: flex;
    background: #ffdacc;
    border-radius: 20px;
    padding: 2px;
    margin: 0 20px 24px;
}

.scan-switch input {
    display: none;
}

.scan-switch label {
    flex: 1;
    text-align: center;
    padding: 7px;
    z-index: 1;
    cursor: pointer;
    color: #33353b;
    cursor: pointer;
}

.switch-indicator {
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 49.5%;
    background: #fff;
    border-radius: 18px;
    transition: transform 0.3s;
}

#f-scan-me:checked ~ .switch-indicator,
#p-scan-me:checked ~ .switch-indicator {
    transform: translateX(100%);
}

#f-scan-me:checked ~ label,
#p-scan-me:checked ~ label {
    font-weight: 500;
}

.swiper .swiper-slide h6 {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #33353b;
    margin: 0 20px 32px;
    display: flex;
}

.swiper .swiper-slide h6 span {
    min-width: 24px;
}

.hivex-content {
    display: flex;
    padding: 12px 8px;
    background-color: #caf5fc;
    border-radius: 12px;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.hivex-content > div {
    max-width: 70%;
}

.hivex-content p {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-align: justify;
}

/* ===== Brand ===== */
.popular-brand {
    display: flex;
    align-items: normal;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    padding: 24px 20px;
    gap: 32px;
}

ul.brand-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

li.brand-item {
    width: 100%;
    text-decoration: none;
}

li.brand-item > div {
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

li.brand-item h6 {
    padding: 0 12px;
    font-size: 14px;
    line-height: 22px;
    margin: 8px 0 0 0;
    font-weight: 400;
    color: #33353b;
    text-align: center;
}

/* ===== QA ===== */
.qa-q {
    background: #ff6933;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.qa-q span {
    color: #ffb499;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-right: 8px;
}

.qa-q p {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.qa-q .toggle-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
    align-self: center;
}

.qa-q.is-active .toggle-arrow {
    transform: rotate(180deg);
}

.qa-a {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.qa-a span {
    color: #ff4600;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-right: 8px;
}

.qa-a p {
    color: #33353b;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.qa-a ol {
    list-style: decimal;
    padding-left: 16px;
}

.qa-a ol li,
.qa-a ul li {
    color: #33353b;
    font-size: 14px;
    line-height: 22px;
}

/* ===== Download ===== */
#download.section {
    padding: 32px 0 0 0;
}

.store {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 32px;
}

.store a {
    cursor: pointer;
}

/* ===== Notice ===== */
.notice {
    background-color: #f5f5f5;
    padding-bottom: 32px;
}

.notice-text {
    text-align: justify;
    word-break: break-all;
}

.notice-text ol {
    list-style-position: inside;
    list-style-type: decimal;
}

.notice-text p,
.notice-text ol li {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #979aa2;
}

.notice-text ol li {
    padding-left: 20px;
    text-indent: -12px;
}

.notice-text ol li:nth-child(10),
.notice-text ol li:nth-child(11),
.notice-text ol li:nth-child(12) {
    text-indent: -20px;
}

@media (max-width: 375px) {
    .store {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Loading ===== */

.loading {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid #ff6933;
    border-radius: 50%;
    margin: 8px;
}

.loader:nth-child(1) {
    animation: loader 0.8s ease-in-out alternate infinite;
}

.loader:nth-child(2) {
    animation: loader 0.8s ease-in-out 0.3s alternate infinite;
}

.loader:nth-child(3) {
    animation: loader 0.8s ease-in-out 0.6s alternate infinite;
}

@keyframes loader {
    to {
        transform: scale(1.8);
    }
}
