
/* YouTube 背景影片*/
.section-about-fullvideo {
  position: relative;
  overflow: hidden;
  min-height: 800px;
}

.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-bg {
  width: 120%;
  height: 120%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
animation: fadeIn 2s forwards;
}


.video-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 黑色遮罩 */
  z-index: 1;
}

.about-content {
  position: relative;
  z-index: 2;
}


.about-text-box {
  background-color: rgba(0, 0, 0, 0.6); /* 黑底半透明 */
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 0 10px #00000088;
}





/* 有滑鼠 hover 動畫或亮度變化的按鈕 */
.glowing-reserve-btn {
  border: 3px solid #ffffff;
  color: #ffffff;
  border-radius: 3rem;
  padding: 16px 64px; /* 更長的按鈕 */
  font-weight: 800;
  font-size: 22px;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px #ffffff88;
  transition: all 0.3s ease-in-out;
  text-shadow: 0 0 8px #fff;
  min-width: 240px; /* 最小寬度 */
  text-align: center;
}

.glowing-reserve-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px #ffffffcc, 0 0 50px #ffffffaa;
  transform: scale(1.08);
  text-shadow: 0 0 12px #ffffff;
  color: #ffffff;
}

/* Site-entering animation */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 1);
    z-index: 9999;
    overflow-y: hidden;
}

.progress-outer-container {
    width: 80%;
    max-width: 240px;
    margin: 20px 0 5px;
}

.progress-container {
    background-color: #000000;
    border: 2px #ffffff solid;
    border-radius: 14px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 16px;
    background-color: #ffffff;
}

/* Matrix effect */
#matrix {
    position: fixed;
    color: #E4007f;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 3s ease-out;
    pointer-events: none;
    z-index: 0;
}

.matrix-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    font-size: 16px;
    animation: fall linear infinite;
}

.block-matrix {
    position: relative;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(-10%);
    }
    100% {
        transform: translateY(80%);
    }
}

/* Homepage specific styles */
.background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/bg-homepage.jpg') no-repeat center center;
    background-size: cover;
}

.homepage-hero-image-section {
    min-height: 800px;

    @media (min-width: 1200px) {
        min-height: 1200px;
    }
}

.homepage-lighting-area-overlay-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    z-index: 1;

    position: absolute;
    top: 0px;
    left: 0px;

    background: linear-gradient(to bottom, #bd0061, transparent);

    /* We use SVG mask for clip-path instead of polygon to improve the stability on iOS Safari */
    /* Suggested by ChatGPT */
    clip-path: url(#polygon-clip);
}

.homepage-logo-overlay-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;

    width: 100%;
    height: 100%;

    z-index: 2;

    position: absolute;

    @media (min-width: 992px) {
        width: 60%;
        padding: 0 200px;
    }
}

.homepage-avatar-overlay-container {
    display: none;

    width: 50%;
    height: 100%;

    z-index: 2;

    @media (min-width: 992px) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        aspect-ratio: 5 / 7;

        position: absolute;
        top: 100px;
        left: 50%;
    }
}

.homepage-about-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;

    @media (min-width: 992px) {
        padding: 100px 50px;
    }
}

.homepage-latest-news-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5px;
    padding: 10px;

    background-color: #00000070;
    border-radius: 1rem;

    @media (min-width: 992px) {
        margin: 60px 30px;
        padding: 60px 30px;
    }
}

.homepage-about-title {
    font-weight: 700;
    font-size: 80px;

    @media (min-width: 587px) {
        font-size: 100px;
    }
}

.homepage-about-subtitle {
    font-size: 24px;

    @media (min-width: 587px) {
        font-size: 32px;
    }
}

.homepage-latest-news-title {
    font-weight: 700;
    font-size: 64px;

    @media (min-width: 587px) {
        font-size: 80px;
    }
}

.homepage-latest-news-subtitle {
    font-weight: 700;
    font-size: 50px;

    @media (min-width: 587px) {
        font-size: 60px;
    }
}

.overlay-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 10px;
    z-index: 1;
}

/* Animations */
@keyframes flicker-neon-title {
    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow: 0 0 15px #E4007f, 0 0 20px #E4007f;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes flicker-neon {
    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow: 0 0 15px #E4007f, 0 0 20px #E4007f, 0 0 5px #ffffff;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes noise {
    0% {
        clip: rect(78px, 9999px, 6px, 0);
        transform: translate3d(5px, 5px, 0px);
    }

    5% {
        clip: rect(66px, 9999px, 70px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    10% {
        clip: rect(80px, 9999px, 82px, 0);
        transform: translate3d(5px, 5px, 0px);
    }

    15% {
        clip: rect(33px, 9999px, 35px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    20% {
        clip: rect(30px, 9999px, 49px, 0);
        transform: translate3d(5px, 5px, 0px);
    }

    25% {
        clip: rect(15px, 9999px, 46px, 0);
        transform: translate3d(-5px, 5px, 0px);
    }

    30% {
        clip: rect(93px, 9999px, 64px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    35% {
        clip: rect(71px, 9999px, 31px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    40% {
        clip: rect(2px, 9999px, 72px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    45% {
        clip: rect(25px, 9999px, 35px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    50% {
        clip: rect(85px, 9999px, 25px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    55% {
        clip: rect(10px, 9999px, 90px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    60% {
        clip: rect(50px, 9999px, 30px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    65% {
        clip: rect(85px, 9999px, 90px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    70% {
        clip: rect(33px, 9999px, 63px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    75% {
        clip: rect(41px, 9999px, 66px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    80% {
        clip: rect(30px, 9999px, 35px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    85% {
        clip: rect(6px, 9999px, 10px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    90% {
        clip: rect(52px, 9999px, 70px, 0);
        transform: translate3d(5px, 0px, 0px);
    }

    95% {
        clip: rect(8px, 9999px, 48px, 0);
        transform: translate3d(-5px, 0px, 0px);
    }

    100% {
        clip: rect(14px, 9999px, 54px, 0);
        transform: translate3d(5px, 0px, 0px);
    }
}

@keyframes inFromTop {
    from {
        transform: translate3d(0, -20%, 0);
    }

    to {
        transform: none;
    }
}

@keyframes inFromBottom {
    from {
        transform: translate3d(0, 20%, 0);
    }

    to {
        transform: none;
    }
}

@keyframes inFromLeft {
    from {
        transform: translate3d(-20%, 0, 0);
    }

    to {
        transform: none;
    }
}

@keyframes inFromRight {
    from {
        transform: translate3d(20%, 0, 0);
    }

    to {
        transform: none;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1;}
    100% { opacity: 0; display: none;}
}

/* Customize scroll bar for webkit based browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #929292;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b15bff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b00ae;
}

/* Floating Button Styling */
.instagram-float {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #E1306C;
    color: white;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.instagram-icon {
    width: 60%;
    height: 60%;
    margin-top: 20%;
}

.instagram-float:hover {
    background-color: #C13584;
}

/* Global element overriden attributes */
body {
    font-family: sans-serif, Helvetica;
    color: #ffffff;
    background-color: #000000;
    height: 100vh;
}

a {
    cursor: pointer;
    color: #ffffff;
}

/* SVG lines */
.line {
    width: 100%;
    height: 30px;
}

.line svg {
    width: 20%;
    height: 100%;
    color: #ffffff;
    stroke: currentColor;
    stroke-width: 1;
    overflow: visible;
    transform: scaleY(-1);
}

circle {
    stroke: currentColor;
    stroke-width: 1;
    fill: #fff;
}

/* General/Fixed background image setup */
/* .cc-bg {
    background-image: url("../images/bg-general-2.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
} */

/* Turn off parallax scrolling for all tablets and phones, otherwise the background image would resize
   when the URL bar shows/hides */
/* Reference: https://stackoverflow.com/questions/68305258/why-is-my-background-image-resizing-on-scroll-on-mobile */
@media only screen and (max-device-width: 768px) {
    .cc-bg {
        background-repeat: repeat-y;
        background-attachment: scroll;
    }
}

/* Text animations */
.neon-wrapper {
    text-shadow: 0 0 4px #E4007f, 0 0 4px #E4007f, 0 0 4px #E4007f;
    position: relative;
    display: inline-block;
    opacity: 0;

    font-weight: 600;
    font-size: 36px;

    @media screen and (min-width: 768px) {
        font-size: 46px;
    }
}

.neon-wrapper.visible {
    animation: flicker-neon 3s alternate, fadeIn 2s;
    opacity: 1;
}

.neon-stroke,
cc-btn-primary {
    color: transparent;
    -webkit-text-stroke: 1px #E4007f99; /* 邊框色 */
    position: absolute;
    top: 0;
    left: 0;
}

.neon-fill {
    color: #ffffff; /* 填充色 */
    position: relative;
}

/* 只影響 about-story-text 這段的霓虹字 */
.about-story-text .neon-wrapper.neon-center{
  display: grid;          /* 用 Grid 疊層 */
  place-items: center;    /* 直、橫向都置中 */
  width: 100%;
  position: relative;
}

/* 兩層字疊在同一格，沒有 absolute 就不會破版 */
.about-story-text .neon-wrapper.neon-center .neon-fill,
.about-story-text .neon-wrapper.neon-center .neon-stroke{
  grid-area: 1 / 1;       /* 同一格 */
  white-space: nowrap;
}

/* 你的原本樣式照用 */
.about-story-text .neon-wrapper.neon-center .neon-fill{
  color:#fff;
}
.about-story-text .neon-wrapper.neon-center .neon-stroke{
  color: transparent;
  -webkit-text-stroke: 1px #E4007f99;
}

/* 只影響左欄這一段 */
.about-story-text .neon-wrapper.neon-center{
  display: grid !important;     /* 蓋掉原本 inline-block */
  width: 100%;
  justify-items: center;         /* 水平置中 */
  align-items: center;           /* 垂直置中 */
  text-align: center;
  position: relative;
}

/* 兩層字疊在同一格；不要再用 absolute */
.about-story-text .neon-wrapper.neon-center .neon-fill,
.about-story-text .neon-wrapper.neon-center .neon-stroke{
  grid-area: 1 / 1;
  white-space: nowrap;
}

/* 填色字：當佔位者，撐出高度與寬度 */
.about-story-text .neon-wrapper.neon-center .neon-fill{
  position: static !important;   /* 取消外面的 absolute */
  color: #fff;
  z-index: 2;                    /* 疊在上面（可省，因為在後面） */
}

/* 描邊字：疊在下面，但不定位 */
.about-story-text .neon-wrapper.neon-center .neon-stroke{
  position: static !important;   /* 取消 absolute */
  left: auto !important;
  top: auto !important;
  transform: none !important;
  color: transparent;
  -webkit-text-stroke: 1px #E4007f99;
  z-index: 1;
}

.about-story-text .neon-wrapper.neon-center {
  display: flex;
  justify-content: center;
}

.neon-title {
  color: #000; /* 保持黑色實心字 */

  /* 粉色外框（極細）+ 光暈 */
  -webkit-text-stroke: 1px #eebbcf;   /* 0.5~0.7px 之間微調 */
  text-shadow:
    0 0 6px  #E4007f,
    0 0 12px #ff66b2;

  /* 跨平台抗鋸齒優化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.neon-title.visible {
    animation: flicker-neon-title 3s alternate, fadeIn 2s;
    opacity: 1;
}

.neon-subtitle {
    color: #ffffff;
    text-shadow: 0 0 2px #E4007f, 0 0 2px #E4007f, 0 0 2px #E4007f, 0 0 2px #E4007f, 0 0 2px #E4007f;
    opacity: 0;
}

.neon-subtitle.visible {
    animation: fadeIn 3s;
    opacity: 1;
}

.noise {
    position: relative;
    overflow: hidden;
    display: inline-block;
    opacity: 0;
}

.noise.visible {
    opacity: 1;
}

.noise.visible:before, .noise.visible:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, transparent 40%, rgba(0, 0, 0, 0.2));
    clip: rect(0, 900px, 0, 0);
    animation: noise 2s linear alternate-reverse;
}
.noise.visible:after {
    left: 2px;
    text-shadow: -1px 0 red;
    animation-duration: 4s;
}

.content-section-title {
    font-weight: 600;
    font-size: 36px;
    padding: 16px 0;

    @media screen and (min-width: 768px) {
        font-size: 48px;
    }
}

.content-section {
    padding: 40px 0;
}

.store-title {
    font-weight: 700;
    font-size: 36px;

    @media screen and (min-width: 768px) {
        font-size: 48px;
    }
}

.store-title-en {
    font-weight: 700;
    font-size: 24px;

    @media screen and (min-width: 768px) {
        font-size: 30px;
    }
}

.img-scaling {
    transition: transform 0.15s;
    transform: scale(1);
}

.img-scaling:hover {
    transform: scale(1.05);
}

.animated-element {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s, transform 1s;
}

.animated-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom styles */
.cc-main {
    margin-top: 96px;
    padding-top: 40px;
}

.cc-scroll-margin-top {
    scroll-margin-top: 100px;
}

.cc-fade-in-from-right {
    animation: fadeIn 1.5s forwards, inFromRight 0.8s forwards;
}

.cc-fade-in-from-top {
    animation: fadeIn 1.5s forwards, inFromTop 0.8s forwards;
}

.cc-fade-in {
    animation: fadeIn 1s forwards;
}

.cc-fade-out {
    animation: fadeOut 1s forwards;
}

.cc-text-primary {
    color: #5B00AE;
}

.cc-text-secondary {
    color: #E4007f;
}

.cc-bg-primary {
    background-color: #5B00AE;
}

.cc-bg-secondary {
    background-color: #E4007f;
}

.cc-nav {
    transition: background-color 0.2s ease;
}

.cc-nav-link {
    --bs-nav-link-color: #ffffff;
    --bs-nav-link-hover-color: #E4007f;
    --bs-nav-link-font-weight: 600;
}

.cc-nav-link.cc-nav-link-selected {
    --bs-nav-link-color: #E4007f;
    --bs-nav-link-font-weight: 700;
}

.cc-btn-primary-1 {
  display: block;
  margin: 0 auto;
  width: 100%;              
  max-width: 650px;         /* 最大寬度，不會太長 */
  text-align: center;
  
  border-radius: 2rem;      /* 和第二個一致 */
  border: none;             /* 不要邊框 */
  font-size: 20px;          /* 放大文字 */
  font-weight: bold;
  padding: 0.8rem 2rem;
  color: #fff;

  background: linear-gradient(90deg, #d36bff 0%, #9a60ff 50%, #6d2eff 100%);
  box-shadow: 0 6px 18px rgba(122, 90, 248, 0.45);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cc-btn-primary {
    --bs-btn-font-weight: 600;
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #E4007f;
    --bs-btn-border-color: #E4007f;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #E4007fad;
    --bs-btn-hover-border-color: #E4007fad;
    --bs-btn-focus-shadow-rgb: #E4007f;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #E4007fad;
    --bs-btn-active-border-color: #E4007fad;
}

.cc-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(122, 90, 248, 0.55),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.cc-btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.cc-btn-outline-primary {
    --bs-btn-font-weight: 600;
    --bs-btn-color: #ffffff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #E4007f;
    --bs-btn-hover-border-color: #E4007fad;
    --bs-btn-focus-shadow-rgb: #E4007fad;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #E4007f;
    --bs-btn-active-border-color: #E4007fad;
}

.cc-offcanvas {
    --bs-offcanvas-bg: #5B00AE;
    --bs-offcanvas-width: 90%;
}

.cc-dark-theme-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 20px;
    color: #ffffff;
    background-image: linear-gradient(140deg, #cecece50 0%, #22222299 100%);
    border: 1px solid #747474;
    border-radius: 10px;
}

.cc-btn-collapse {
    font-size: 20px;

    --bs-btn-hover-bg: transparent;
    --bs-btn-active-color: #E4007f;
    --bs-btn-font-weight: 700;
    --bs-btn-color: #ffffff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #E4007f;
    --bs-btn-hover-border-color: #E4007fad;
    --bs-btn-focus-shadow-rgb: #E4007fad;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #E4007f;
    --bs-btn-active-border-color: #E4007fad;
}

.cc-collapse-body {
    --bs-btn-hover-bg: transparent;
}

.cc-nav {
    --bs-nav-link-color: #ffffff;
    --bs-nav-link-hover-color: #E4007f;
}

.cc-nav-underline {
    --bs-nav-underline-link-active-color: #E4007f;
}

.cc-store-card {
    background-color: #0000003b;
    color: #ffffff;
    border: 3px solid #ff75ff;
    box-shadow: 0 0 12px rgb(255 255 255 / 33%);
}

.cc-service-item-name {
    font-weight: 600;
    font-size: 18px;
}

.cc-service-item-price {
    font-weight: 600;
    font-size: 18px;
}

/* Special handling for filter tabs per client's request */
@media (max-width: 768px) {
    #tabFilterServices.cc-nav .nav-item {
      display: block;
      width: 100%;
      text-align: center;
      margin-bottom: 10px;
    }

    #tabFilterServices.cc-nav .nav-item .nav-link {
        width: fit-content;
        display: inline-block;
    }
}

/* footer */
footer {
    padding: 30px 10px 60px;
    margin-top: 160px;
    background-color: #000000;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline;
    margin: 0 10px;
}

footer dl {
    max-width: 160px;
}

.footer-section-title {
    font-size: 18px;
    font-weight: 600;
}

/* Accordion icon button */
/* Ref: https://stackoverflow.com/questions/66231936/change-accordion-button-collapsed-icon-color-in-bootstrap-5 */
.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
}

/* Image container */
.img-container {
    width: 100%;
    /* height: 100%; */
}

.img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Bootstrap overrides */
svg {
    color : #ffffff;
}

.navbar {
    height: 96px;
    padding: 16px 24px;
    background-color: transparent;
    border-radius: 12px;
    padding: 20px;
}

@media (min-width: 992px) {
    .navbar {
        backdrop-filter: blur(10px);
    }
}

.navbar-brand img {
    height: 100%;
}

.navbar-toggler-icon{
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 5;
}

p {
    word-wrap: break-word;
}

/* Reservalue Widget Overrides */
.widget-header {
    border-bottom: 1px solid grey;
}

.widget-content {
    height: auto;
    min-height: unset;
}

.widget-footer {
    border-top: 1px solid grey;
}

.calendar-container {
    --reservalue-bgcolor-calendar-default: #000;
}


/*預約國碼*/
.iti__country-name {
    color: black;    /*這邊可以改成任何您想要的顏色*/
}
footer::after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 16px auto 0;             /* 與上方內容保持 16px 間距 */
  background: url("/images/rating_general.png") no-repeat center;
  background-size: contain;
  pointer-events: none;            /* 確保它不會攔截任何滑鼠事件 */
}


/* ============== REELS 設定 ============== */

/* 建議：避免內外距計算跑掉 */
*, *::before, *::after { box-sizing: border-box; }

/* 橫向捲動容器（你的 #reelsScroller） */
#reelsScroller{
  /* 可調參數 */
  --visible: 3;     /* 完整要顯示的卡片數量 */
  --peek: .18;      /* 第 4 張露出的比例（0.12 ~ 0.22 推薦） */
  --gap: 28px;      /* 卡片之間的間距 */

  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox 隱藏捲軸 */
  padding: 0;                  /* ❗保持 0，避免影響計算 */
  margin: 0 auto;              /* 置中（若外層有固定寬會更好看） */
  max-width: 100%;             /* 不限制容器寬（外層決定） */
}
#reelsScroller::-webkit-scrollbar{ display: none; } /* Chrome/Safari 隱藏捲軸 */

/* 卡片 */
#reelsScroller .reel-card{
  flex: 0 0 auto;
  /* ✅ 核心寬度：用「容器寬 100%」去等分 3 + peek（不用 100vw） */
  width: calc(
    (100% - (var(--gap) * (var(--visible) - 1)))
    / (var(--visible) + var(--peek))
  ) !important;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #111;  /* 想要透明可改成 transparent */
}

/* 右側保留一些空間，避免最後一張貼邊（可留可不留） */
#reelsScroller::after{
  content: "";
  flex: 0 0 var(--gap);
}

/* 覆蓋 Instagram 內建 inline style（一定要加 !important） */
#reelsScroller .reel-card .instagram-media{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;       /* 破除 IG 預設的 326px 下限 */
  margin: 0 auto !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}

/* ============== RWD ============== */

/* 手機/平板：單張為主（滑動） */
@media (max-width: 1023px){
  #reelsScroller{ --gap: 16px; }
  #reelsScroller .reel-card{ width: 86% !important; }
}

/* 超大桌機：想多露一點第 4 張（可依喜好調） */
@media (min-width: 1600px){
  #reelsScroller{ --peek: .22; }
}

/* 整個橫向捲動區：加大上下留白 */
#reelsScroller{
  padding-block: 80px;   /* 原本 40px → 改成 80px，上下空白更多 */
}

#reelsScroller .reel-card {
  transform: scale(0.85);     /* 0.85 = 縮小到 85% */
  transform-origin: top center; /* 從上方中心縮 */
}

/* 強制覆蓋 IG 內建的白色背景與 margin */
.reel-card .instagram-media {
  background: transparent !important; /* 白底 → 透明 */
  margin: 0 !important;               /* 預設 1px margin → 清掉 */
  padding: 0 !important;              /* 保險：清掉內距 */
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

#reelsScroller {
  gap: 0px !important;  /* 控制橫向間距 */
}

#reelsScroller .reel-card {
  margin-block: 20px;    /* 上下保留呼吸感，不動左右間距 */
}

/* ====== 舒適比例間距（套用你現有的 class） ====== */

/* 整個內容段：給區塊合宜的上下留白（會隨螢幕尺寸調整） */
.content-section{
  padding-block: clamp(32px, 6vw, 96px) !important;  /* 區塊頂/底留白 */
}

/* 標題大小 & 與卡片間距（用你現在的 .neon-wrapper） */
.content-section .neon-wrapper{
  font-size: clamp(36px, 5vw, 64px) !important;      /* 標題隨螢幕縮放 */
  line-height: 1.05;
  margin-bottom: clamp(12px, 3.2vw, 40px) !important;/* ↓ 標題到卡片距離 */
}

/* 若 .d-flex.mb-4 讓間距過大，統一收斂（Bootstrap 的 mb-4 會太鬆） */
.content-section .d-flex.mb-4{
  margin-bottom: clamp(8px, 1.8vw, 20px) !important;
}

/* Reels 橫向區：左右留白、上下呼吸、合理的卡片間距 */
#reelsScroller{
  /* 版面參數：可依喜好微調 */
  --visible: 3;                     /* 完整顯示張數 */
  --peek: .16;                      /* 第 4 張露出的比例（0.12~0.22） */
  --gap: clamp(12px, 1.2vw, 20px);  /* 卡片與卡片的間距（收窄） */
  --outer: clamp(16px, 4vw, 56px);  /* 區塊左右留白 */

  display:flex;
  gap: var(--gap);
  padding-inline: var(--outer);                 /* 左右留白 */
  padding-block: clamp(10px, 1.6vw, 24px);      /* 上下呼吸 */
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
#reelsScroller::-webkit-scrollbar{ display:none; }

/* 卡片寬度用容器 100% 計算（避免 100vw 誤差） */
#reelsScroller .reel-card{
  flex:0 0 auto;
  width: calc(
    (100% - (var(--gap) * (var(--visible) - 1)))
    / (var(--visible) + var(--peek))
  ) !important;
  margin-block: clamp(6px, 1vw, 16px);      /* 每張卡片上下微留空，視覺更穩 */
  scroll-snap-align:start;
  border-radius:16px;
  overflow:hidden;
  background:transparent;
}

/* 右端保留一點空間，避免最後一張貼邊（可留可不留） */
#reelsScroller::after{ content:""; flex:0 0 var(--outer); }

/* 完整覆蓋 IG inline style：去掉白邊、強制跟卡片等寬 */
#reelsScroller .reel-card .instagram-media{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;             /* 破除 IG 326px 下限 */
  margin:0 !important;                /* 去掉白線來源：預設 1px margin */
  padding:0 !important;
  background:transparent !important;  /* 去掉白底 */
  border:0 !important;
  box-shadow:none !important;
  border-radius:12px !important;
}

/* 手機/平板：標題和區塊間距再收一點；卡片以單張為主 */
@media (max-width:1023px){
  .content-section{ padding-block: clamp(24px, 6vh, 48px) !important; }
  .content-section .neon-wrapper{ margin-bottom: clamp(8px, 3vh, 18px) !important; }
  #reelsScroller{ --gap: 12px; padding-inline: clamp(12px, 5vw, 24px); }
  #reelsScroller .reel-card{ width: 86% !important; }
}

#reelsScroller {
  padding-block: clamp(16px, 4vh, 32px) !important;
}

/* 讓 scroller 可拖曳時有手勢游標，拖曳中關閉 iframe 的事件吃掉問題 */
#reelsScroller{ cursor: grab; position: relative; }
#reelsScroller.dragging{ cursor: grabbing; }
#reelsScroller.dragging iframe{ pointer-events: none; }

/* 導航按鈕（預設隱藏，hover 時出現；手機常駐） */
.reels-rail{ position: relative; }
.reels-nav{
  position: absolute; inset-block: 0; margin: auto 0;
  width: 44px; height: 44px; border-radius: 9999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(0); transition: opacity .2s;
  z-index: 5; cursor: pointer;
}
.reels-rail:hover .reels-nav{ opacity: 1; }
.reels-nav.left{ left: 8px; }
.reels-nav.right{ right: 8px; }
.reels-nav svg{ width: 22px; height: 22px; }

/* 手機／平板：按鈕常駐，尺寸小一點 */
@media (hover:none){
  .reels-nav{ opacity: 1; width: 40px; height: 40px; }
}

/* ===== NEWS（橫向一頁一卡）===== */

/* 乾淨的 Grid 軌道：不使用 padding-inline / flex gap */
.homepage-latest-news-area.block-matrix{
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 100% !important;   /* 每張 = 一個視窗寬 */
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 16px;                             /* Grid 的 gap 不會吃掉首尾 */
  padding: 0 !important;                 /* 這層不要左右 padding */
  margin: 0 !important;
  scrollbar-width: none;
  direction: ltr;                        /* 防止繼承 rtl 從右邊開始 */
  overscroll-behavior-x: contain;
}
.homepage-latest-news-area.block-matrix::-webkit-scrollbar{ display: none; }

/* 每一頁外殼 */
.homepage-latest-news-area.block-matrix > .snap-page{
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
}

/* 內部卡片 */
.news-card{
  display: flex;
  flex-direction: column;
  background: #121212;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.news-img img{ width:100%; height:auto; object-fit:contain; display:block; background:#000; }
.news-content{ display:flex; flex-direction:column; gap:12px; }
.news-content p{ margin:0; white-space:pre-line; line-height:1.6; }

/* 桌機左右排版 */
@media (min-width: 992px){
  .news-card{ flex-direction: row; align-items: flex-start; }
  .news-img{ flex: 1; margin-right: 24px; min-width: 0; }
  .news-content{ flex: 2; min-width: 0; }
}
/* NEWS 橫向軌道：強制靠左對齊，不要置中 */
.homepage-latest-news-area.block-matrix{
  justify-content: start !important;  /* 這兩行是關鍵 */
  align-content: start !important;
  /* 若有人用 place-content: center; 也被這兩行蓋掉 */
}

/* 以防萬一，保險把 item 也鎖好（可留可不留） */
.homepage-latest-news-area.block-matrix{
  justify-items: stretch;
  align-items: stretch;
}
.homepage-latest-news-area.block-matrix{ position: relative; }

/* 外層包一層，讓按鈕可定位 */
.news-scroller-wrap{
  position: relative;
}

/* 左右導覽鈕 */
.news-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px; line-height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, opacity .2s;
}
.news-nav:hover{ background: rgba(255,255,255,.2); }
.news-nav:disabled{ opacity: .35; cursor: default; }
.news-nav.prev{ left: 8px; }
.news-nav.next{ right: 8px; }

/* 手機可選擇縮小或隱藏按鈕 */
@media (max-width: 768px){
  .news-nav{ width: 36px; height: 36px; font-size: 18px; line-height: 36px; }
}

/* 拖曳時暫停 snap，避免拖到一半被吸走；並顯示抓手游標 */
#newsTrack{ cursor: grab; }
#newsTrack.dragging{
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* 文字內容：過長時可以上下卷軸 */
.news-content{
  display: flex;
  flex-direction: column;
  gap: 12px;

  max-height: 300px;       /* ← 可依需求調整，例如 280px/320px */
  overflow-y: auto;        /* 超過高度才會出現卷軸 */
  padding-right: 6px;      /* 給捲軸留點空間，避免文字壓到 */
}

/* 美化卷軸（Chrome / Edge / Safari） */
.news-content::-webkit-scrollbar {
  width: 6px;
}
.news-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.news-content::-webkit-scrollbar-track {
  background: transparent;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 12px;

  max-height: 60vh;       /* 視窗 60% 高度，依需求調整 */
  overflow-y: auto;
  padding-right: 6px;
}

/* 桌機維持一行 */
h1 .line-break {
  display: inline;
}

/* 手機（寬度小於768px）強制換行 */
@media (max-width: 768px) {
  h1 .line-break {
    display: block;
  }
}

/* =========================
   HOW TO PLAY
========================= */
.rule-title{
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing:.02em;
  margin: 0 0 .75rem;
}
.rule-green  { color:#34d399; text-shadow:0 0 24px rgba(52,211,153,.35); }
.rule-cyan   { color:#22d3ee; text-shadow:0 0 24px rgba(34,211,238,.35); }
.rule-yellow { color:#facc15; text-shadow:0 0 24px rgba(250,204,21,.35); }
.rule-red    { color:#f87171; text-shadow:0 0 24px rgba(248,113,113,.35); }
.rule-purple { color:#a78bfa; text-shadow:0 0 24px rgba(167,139,250,.35); }

.rule-desc{
  color:#cbd5e1;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.9;
  margin: 0;
}

/* =========================
   Card base (Desktop-first)
========================= */
.rule-card{
  display:grid;
  grid-template-columns: var(--imgW, 58%) 1fr; /* 圖:面板 = 58:42 */
  border-radius: 20px;
  overflow:hidden;
  background:#0b0b12;
  position:relative;
  min-height: 320px;
  box-shadow:
    0 16px 36px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06) inset;
}
@media (min-width: 1200px){
  .rule-card{ min-height: 420px; }
}

/* Media container (desktop 視覺鋪滿) */
.rule-card__img{
  background-image: var(--img);
  background-size: cover;              /* 桌機 cover */
  background-position: var(--bgpos, 50% 50%);
  background-repeat: no-repeat;
  filter: saturate(1.06) contrast(1.06);
  position: relative;
}

/* Panel（右半邊暗面） */
.rule-card__panel{
  position:relative;
  background: radial-gradient(120% 120% at 30% 50%, #0f1320 0%, #121424 60%, #0b0b12 100%);
}
.rule-card__panel::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(11,11,18,0) 0%, rgba(11,11,18,.35) 25%, rgba(11,11,18,.7) 100%);
}

/* List spacing / grid guard */
.mb-6{ margin-bottom: clamp(2rem, 4vw, 3.5rem) !important; }
.rules .row{ --bs-gutter-x: 1.5rem; }
.rules .col-12, .rules .col-lg-6{ min-width: 0; }

/* 色系預設（桌機：焦點與占比；避免 100% 以免擠壞版面） */
.rule-card.is-green  { --bgpos: 68% 50%; --imgW: 100%; }
.rule-card.is-blue   { --bgpos: 68% 50%; --imgW: 100%; }
.rule-card.is-yellow { --bgpos: 55% 50%; --imgW: 100%; }
.rule-card.is-red    { --bgpos: 60% 52%; --imgW: 100%; }
.rule-card.is-purple { --bgpos: 58% 50%; --imgW: 100%; }

/* =========================
   Mobile (≤ 991.98px)
   - 圖片等比完整、版面緊湊
   - 每組 row 有卡片底，分層明確
========================= */
@media (max-width: 991.98px){

  /* 每組 row -> 卡片外殼 */
  .rules .row{
    position: relative;
    padding: 12px 0 14px;
    --bs-gutter-y: .9rem;
  }
  .rules .row::before{
    content: "";
    position: absolute; z-index: 0;
    left: calc(var(--bs-gutter-x, 1.5rem) / 2);
    right: calc(var(--bs-gutter-x, 1.5rem) / 2);
    top: 0; bottom: 0;
    border-radius: 18px;
    background: radial-gradient(120% 160% at 50% 0%,
                #121525 0%, #0e1220 45%, #0a0c14 100%);
    box-shadow: 0 10px 26px rgba(0,0,0,.45),
                0 0 0 1px rgba(255,255,255,.06) inset;
  }
  .rules .row > *{ position: relative; z-index: 1; }
  .rules .row:not(:last-of-type)::after{
    content:"";
    position:absolute;
    left: calc(var(--bs-gutter-x, 1.5rem) / 2);
    right: calc(var(--bs-gutter-x, 1.5rem) / 2);
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  }

  /* 文字置中、段落寬度更好讀 */
  .rules .rule-title,
  .rules .rule-desc{ text-align: center; }
  .rules .rule-title{ margin: .6rem 0 .4rem; }
  .rules .rule-desc{ max-width: 48ch; margin: 0 auto .2rem; }

  /* 卡片轉單欄、圓角、緊湊 */
  .rules .rule-card{
    display: block;
    min-height: 0 !important;
    border-radius: 16px;
    overflow: hidden;
  }

  /* 圖片：等比完整顯示 + 穩定高度 */
  .rules .rule-card__img{
    background-size: contain;           /* 手機 contain：完整顯示 */
    background-position: 50% 50%;
    background-color: #0b0b12;
    aspect-ratio: var(--ratio, 16/9);
    min-height: clamp(160px, 36vw, 300px);
  }

  /* 面板在手機收掉，避免黑帶 */
  .rules .rule-card__panel,
  .rules .rule-card__panel::before{
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    content: none !important;
  }

  /* 外距更緊湊；內容區可選擇窄版置中 */
  .rules .mb-6{ margin-bottom: 1rem !important; }
  .rules .col-12{ max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* =========================
   Desktop reset for aspect-ratio
========================= */
@media (min-width: 992px){
  .rule-card__img{
    aspect-ratio: auto;
    min-height: auto;
  }
}

/* =========================
   GIF 16:9 專用（完整顯示、不裁切）
========================= */
.rule-card.rule-card--contain169{
  min-height: 0 !important;
}
@media (min-width: 1200px){
  .rule-card.rule-card--contain169{ min-height: 0 !important; }
}
.rule-card.rule-card--contain169 .rule-card__img{
  background-size: contain !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  aspect-ratio: 16 / 9;
  min-height: auto !important;
  background-color: #0b0b12;
}

/* 加大 rules 與下一段 .mb-5（ESG 區塊）的間距 */
.rules{ margin-bottom: clamp(48px, 8vw, 160px); }
.rules + .mb-5{ margin-top: clamp(24px, 4vw, 80px) !important; } /* 可再加大就調整這裡 */