a:hover,
a:focus {
    text-decoration: none;
    outline: none;
}

.vertical-tab {
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    height: 100%;
    gap: 32px;
    margin-top: 16px;
}

/*.vertical-tab .nav-tabs {
    border: none;
    background-color: var(--color-nav);
    padding: 1rem 1rem;
    width: 15%;
    border-radius: 10px;
    flex: 0 0 15%;
    aspect-ratio: 3 / 10;
    min-width: 240px;
}*/

.vertical-tab .nav-tabs {
    background:
        radial-gradient(130% 160% at 8% 0%, rgba(137, 196, 244, 0.14) 0%, rgba(137, 196, 244, 0) 48%),
        linear-gradient(160deg, #f8fafc, var(--color-nav));
    padding: 1rem 1rem;
    width: 15%;
    min-width: 240px;
    aspect-ratio: 3 / 10;
    flex: 0 0 15%;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        0 14px 30px rgba(8, 10, 18, 0.6),
        0 0 20px rgba(0, 61, 121, 0.12);
    border: 1px solid rgba(0, 61, 121, 0.26);
}

/*.vertical-tab .nav-tabs>li {
    padding: 10px 15px;
    background-color: #0000004a;
    margin: 5px 0;
    border-radius: 10px;
}*/


.vertical-tab .nav-tabs > li {
  position: relative;
  padding: 10px 15px;
  margin: 5px 0;
  border-radius: 10px;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(0, 61, 121, 0.08);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(137, 196, 244, 0.12) 0%, rgba(137, 196, 244, 0) 52%),
    linear-gradient(155deg, #f8fafc 0%, #ffffff 100%);
  /* backdrop-filter: blur(8px) saturate(1.06); */
  /* -webkit-backdrop-filter: blur(8px) saturate(1.06); */
  transition: transform .24s ease, box-shadow .24s ease, opacity .24s ease, border-color .24s ease, filter .24s ease;
  opacity: 0.96;
}

.vertical-tab .nav-tabs > li::before {
  content: none;
}

/* 只有非 .no-hover 的項目才有 hover 效果 */
.vertical-tab .nav-tabs > li:not(.no-hover):hover {
  background:
    radial-gradient(130% 160% at 8% 0%, rgba(137, 196, 244, 0.26) 0%, rgba(137, 196, 244, 0) 52%),
    linear-gradient(135deg, rgba(137, 196, 244, 0.35) 0%, rgba(0, 61, 121, 0.12) 100%);
  transform: translateX(5px) translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 40, 90, 0.36), 0 0 18px rgba(137, 196, 244, 0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  filter: saturate(1.1);
  opacity: 1;
}

.vertical-tab .nav-tabs > li:not(.no-hover):hover::before {
  content: none;
}

.vertical-tab .nav-tabs > li.active {
  background:
    radial-gradient(140% 180% at 8% 0%, rgba(137, 196, 244, 0.3) 0%, rgba(137, 196, 244, 0) 54%),
    linear-gradient(135deg, rgba(0, 61, 121, 0.14) 0%, rgba(137, 196, 244, 0.2) 100%);
  box-shadow: 0 12px 26px rgba(0, 61, 121, 0.12), 0 0 20px rgba(0, 61, 121, 0.12);
}

.vertical-tab .nav-tabs > li.active::before {
  content: none;
}


.item-with-line {
    position: relative;
}

.item-with-line::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 15px;
    right: 15px;
    height: 1px;
    background-color: var(--color-w25);
}

.vertical-tab .nav-tabs li a {
    color: var(--color-w65);
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s ease, text-shadow .22s ease;
}

/**/
.nav-discount>li {
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 4px 15px;
}

.nav-discount>li::before {
    content: "★";
    /* 星星符號 */
    margin-right: 8px;
    /* 星星和文字的間距 */
    font-size: 16px;
    /* 星星大小 */
    color: #0056a3;
    /* 星星橘黃色 */
    display: inline-block;
}

.nav-discount>li p {
    margin: 0;
    /* 移除 p 標籤預設間距 */
    color: #ffffff;
}

.nav-sub-discount {
    display: inline-block;
    min-height: 24px;
    /* 預留空間 */
    line-height: 1.2;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vertical-tab .nav-tabs li a:hover,
.vertical-tab .nav-tabs li a.active,
.vertical-tab .nav-tabs li a.active:hover {
    color: #ecf7ff;
    text-shadow: 0 0 10px rgba(137, 196, 244, 0.34), 0 1px 2px rgba(11, 16, 30, 0.7);
    border: none;
}


.vertical-tab .nav-tabs li a:hover:before,
.vertical-tab .nav-tabs li.active a:before {
    opacity: 1;
    right: -17px;
}

.vertical-tab .nav-tabs li a:hover:after,
.vertical-tab .nav-tabs li.active a:after {
    opacity: 1;
    right: -3px;
}

.vertical-tab .tab-content {
    display: table-cell;
    position: relative;
    height: auto;
    width: 85%;
    /* CLS */
    flex: 1;
    aspect-ratio: 1360 / 425;
}

.vertical-tab .tab-content p:not(.offer-page) {
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.nav-sub {
    font-size: 1rem;
    color: var(--color-w100);
    font-weight: 300;
}

h3.nav-sub>i {
    min-width: 22px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(182, 255, 209, 0.92);
    background: linear-gradient(145deg, rgba(146, 96, 255, 0.16) 0%, rgba(137, 196, 244, 0.14) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(171, 137, 255, 0.2);
    filter: none;
    transition: background .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}

.vertical-tab .nav-tabs > li:not(.no-hover):hover h3.nav-sub>i,
.vertical-tab .nav-tabs > li.active h3.nav-sub>i,
.vertical-tab .nav-tabs li a.active h3.nav-sub>i {
    color: #f5fffb;
    background: linear-gradient(145deg, rgba(168, 122, 255, 0.7) 0%, rgba(95, 235, 158, 0.66) 100%);
    box-shadow: 0 0 14px rgba(137, 196, 244, 0.32), 0 0 22px rgba(125, 78, 240, 0.28), inset 0 1px 0 rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

@media screen and (max-width:767px) {
    .vertical-tab {
        gap: 16px;
    }

    .vertical-tab .tab-content {
        width: 100%;
    }

    ul.navsize {
        width: 100% !important;
        overflow: scroll;
        display: flex;
        gap: 16px;
    }

    .vertical-tab .nav-tabs {
        /* padding: 0.8rem 1rem;
        border-radius: 40px; */
        display: none;
    }

    .vertical-tab .nav-tabs li a {
        gap: 8px
    }

    ul.navsize>li a.active {
        background:
            radial-gradient(120% 140% at 10% 0%, rgba(137, 196, 244, 0.22) 0%, rgba(137, 196, 244, 0) 48%),
            linear-gradient(135deg, rgba(0, 61, 121, 0.92) 0%, rgba(0, 61, 121, 0.92) 56%, rgba(137, 196, 244, 0.86) 100%);
        padding: 0.1rem 0.5rem;
        border-radius: 30px;
        color: #f9fbff;
    }

    .nav-sub {
        display: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .vertical-tab .nav-tabs {
        width: 30%;
    }

    .vertical-tab .tab-content {
        width: 70%;
    }
}