/* styles.css */
/* 在 styles.css 的最上方添加 */

@import url("https://fonts.googleapis.com/css?family=Noto+Sans+TC:400,500,700,900&display=swap&subset=chinese-traditional");
:root {
  /* 主要顏色 */
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #222222;
  --btn: #E7373c 0%,  #E95504 50%,#F9BE00 100%;
  --alt: #fff9e6;
  --notes: #f2f2f2;
  

  /* 基礎顏色 */
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #b82b22;
  --orange: #fd7e14;
  --yellow: #F9BE00;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #ccc;
  --gray-dark: #343a40;

  /* 功能顏色 */
  --text-primary: var(--dark);
  --text-secondary: var(--gray);
  --background-primary: var(--white);
  --background-secondary: var(--white);
  --border-color: var(--gray);
  --link-color: var(--primary);
  --link-hover-color: var(--indigo);
  
  /* 陰影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* 字形 */
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;


  /* 字體大小 */
  --font-size-18: 18px;
  --font-size-16: 16px;
  --font-size-14: 14px;

}



/* Reset + 基本設置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-primary);
  color: var(--text-primary);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--background-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}


header nav {
  display: flex;
  gap: 2rem;
}
header nav a {
  text-decoration: none;
  color:var(--dark);
  font-weight: 500;
  white-space: nowrap;
}
header nav a:hover,
header nav a:focus {
  color: var(--red);
  border-bottom: 3px solid var(--red);
}
header .container img {
  display: block;
  align-self: center;
  height: 40px; /* 或你想要的高度 */
  margin-top: 10px;
  margin-bottom: 10px;
}
/* Hero */
.hero h2,.hero p {
  position: relative;
}

.hero {
  background-color: #fef0e5;
  color: var(--dark);
  text-align: center;
  padding: 6rem 1rem;
  height: 60vh; /* 區塊高度設為視窗高度 */
  display: flex; /* 使用 Flexbox 讓內容置中 */
  flex-direction: column;
  justify-content: center; /* 垂直置中 */
  align-items: center; /* 水平置中 */
}


.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 0; */
}


.image-container img:first-child {
  z-index: 2;
  position: relative;
  margin-right: -900px; /* 負值讓左圖壓到右圖，數值可調整 */
}

.image-container img:last-child {
  z-index: 1;
  position: relative;
}

.image-container img {
  max-width: 900px;
  height: auto;
  object-fit: contain;/* 確保圖片完整顯示而不會被裁剪 */
}

.slide-in-left {
  animation: slideInLeft 1s ease-out; /* ease-out緩動效果 */
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 數位券是什麼 */
.additional-info {
  padding: 20px;
  text-align: center;
  margin: 20px auto;
}

.additional-info h2 {
  font-size: 1.75rem;
  font-weight: bold;
  font-family: var(--font-family-sans-serif);
  color: var(--dark);
}

.additional-info p {
  font-size: var(--font-size-18);
  color: var(--dark);
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}


/* How to use section */
.instructions {
  padding: 2rem 1rem;
  text-align: center;
}
.instructions h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.instructions p {
  margin-bottom: 1.25rem;
  font-size: var(--font-size-18);
}
.instructions .categories {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin: 1rem 0;
  overflow-x: auto;
  
}


.instructions .categories button {
  padding: 0.5rem 0.5rem;
  background-color: var(--alt);
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  font-family:var(--font-family-sans-serif);
  border: 2px solid var(--dark) ;
  color: var(--dark);
}


.instructions .categories button.active {
  background: #F27405;
  color: #fff;
}
.instructions .carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 0 60px; /* 增加左右padding，為按鈕留出空間 */
}
.instructions .steps {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  width: 100%;
}
.instructions .step {
  flex: 0 0 auto;
  width: 100%;
  max-width: 300px;
  scroll-snap-align: center;
  text-align: center;
}

.step img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.step p{
  bottom: 0;
  display: inline;
  font-size: var(--font-size-18);
}

.step h3{
  font-size: 24px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff7f0;
  border: 2px solid #F27405;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(242, 116, 5, 0.12);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel button.prev {
  left: 5px;
}

.carousel button.next {
  right: 5px;
}

.carousel button svg {
  width: 32px;
  height: 32px;
  stroke: #F27405;
  transition: stroke 0.2s;
}

.carousel button:active,
.carousel button:focus {
  background: #fff7f0;
  border: 2px solid #F27405;
  box-shadow: 0 2px 8px rgba(242, 116, 5, 0.12);
}
.carousel button:active svg,
.carousel button:focus svg {
  stroke: #F27405;
}

.store {
  padding: 2rem 1rem;
  text-align: center;
  background: #fbecea;
  color: var(--dark);
}

.store-content h2{
  font-size: 1.75rem;
}

.store-content p{
  font-size: var(--font-size-18);
}

.store-btn {
  display: inline-block;
  text-align: center;
  color: var(--white);
  padding: 10px 32px;
  margin: 20px;
  background: linear-gradient(135deg, var(--btn));
  border-radius: 8px;
  font-size: 1.75rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.3s, color 0.3s;
}

.store-btn:hover, .store-btn:focus {
  background: linear-gradient(145deg, #e7373c 0%, #D15B9c 33%, #E95504 67%, #F9BE00 100%);
  color: var(--white);
  text-decoration: none;
}



/* FAQ + Notes */
.faq {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.faq h2, .notes h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}

details {
  /* margin-bottom: 1rem; */
  border-bottom: 1px dashed #ccc;
  padding: 0.75rem;
  border-radius: 4px;
  background: #fff;
  font-size: var(--font-size-18);
  font-family:var(--font-family-sans-serif);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-18);
  font-family:var(--font-family-sans-serif);
  position: relative;
}

summary:hover{
  color: var(--red);
}


details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

details[open]{
  background-color: #f2f2f2;
}

details[open] .toggle-icon {
  transform: rotate(45deg); /* Change "+" to "x" when open */
}

details[open] summary {
  color: var(--red);
  font-weight: 550;
  margin-bottom: 10px;
  font-family:var(--font-family-sans-serif);
  
}

.toggle-icon {
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.QA_store-btn{
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}

.QA_store-btn:hover{
  color: var(--red);
}

.notes{
  background-color: var(--notes);
  padding: 0.5rem 1.5rem;
}

.notes_list li{
  margin-bottom: 10px;
}


/* Footer */
footer {
  background:var(--alt);
  color: var(--dark);
  padding: 2rem 1rem;
  text-align: center;
}
footer h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
footer p {
  font-size: 14px;
  max-width: 600px;
  padding: 5px 5px;
  margin: 0 auto 0.25rem;
}


/* Carousel 外層 */
.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  width: 100%;
}

/* 可滾動步驟容器 */
.carousel .steps {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.carousel .steps::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}


/* 單一步驟卡片 */
.carousel .step {
  min-width: calc((100% - 3rem) / 4); /* 顯示 4 個 step，3 個 gap */
  flex: 0 0 auto;
  background: #f5f5f5;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}


/* 漢堡選單按鈕 */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  align-self: center; /* 讓它在 flex 容器內垂直置中 */
  margin-left: auto;  /* 靠右 */
  color: var(--red);
}


/* 手機選單 */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: fixed;
  top: 0;
  right: 0;
  background: #fff;
  width: 250px;
  height: 100vh;
  padding: 4rem 2rem 2rem; /* 預留空間給關閉按鈕 */
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  color: #000;
}

/* 選單連結 */
.mobile-menu a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 1.2rem;
}
/* 隱藏狀態 */
.mobile-menu.hidden {
  display: none;
  transform: translateX(100%);
  opacity: 0;
}

/* 顯示狀態 */
.mobile-menu.visible {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}


/* 關閉按鈕 */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
  z-index: 1002;
}



#new-section {
  display: block; /* 確保區塊是可見的 */
  position: relative; /* 確保不會被其他元素覆蓋 */
  padding-top: 20px; /* 添加適當的內邊距，避免滾動後內容被遮擋 */
}

/* Back to Top Button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 95px;
  right: 15px;
  z-index: 1000;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2em;
  font-weight:600;
  font-family:var(--font-family-sans-serif);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}


#backToTopBtn:hover, #backToTopBtn:focus {
  background: var(--red);
  color: #fff;
  transform: translateY(-4px) scale(1.08);
}

@media (max-width: 1024px) {
  .carousel .step {
    width: 100vw;
    min-width: 50vw;
    max-width: 80vw;
    padding: 0;
    margin: 0;
  }
  .carousel .step img {
    width: 100%;
    max-width: 95vw;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

/* 僅在手機版顯示漢堡選單 */
@media (max-width: 768px) {
  header .container {
    /* flex-direction: column; 這行刪除或註解 */
    align-items: center; /* 讓內容垂直置中 */
  }
  header nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .instructions .carousel {
    padding: 0 40px;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .instructions .step {
    max-width: 250px;
  }
  .hamburger {
    top: 0;
  }
  .hamburger {
    display: inline-block;
  }

  .desktop-menu {
    display: none; /* 隱藏桌面版選單 */
  }
  .mobile-menu {
    display: flex; /* 手機版時啟用選單 */
  }
   /* 顯示選單時隱藏漢堡按鈕 */
   .mobile-menu.visible ~ .hamburger {
    display: none;
  }

  .carousel .steps {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0;
    margin: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .carousel .step {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  .carousel .step img {
    width: 120px; /* 大幅縮小圖片尺寸 */
    max-width: 120px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto !important;
    padding: 0;
    box-sizing: border-box;
  }

  .carousel .step p {
    text-align: center;
    width: 120px;
    max-width: 120px;
    word-break: break-word;
    white-space: normal;
    margin: 8px auto;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .carousel .step h3 {
    text-align: center;
    width: 120px;
    max-width: 120px;
    margin: 8px auto;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    background: #fff7f0;
    border: 1px solid #F27405;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .carousel button.prev {
    left: 8px;
  }

  .carousel button.next {
    right: 8px;
  }

  .carousel button svg {
    width: 14px;
    height: 14px;
  }

  .steps{
    padding: 0px;
  }

  .image-container {
    flex-direction: column;
    gap: 0;
  }
  .image-container img {
    max-width: 80vw;
    width: 100%;
    height: auto;
    margin: 0 auto 0 auto;
    display: block;
  }
  .image-container img.slide-in-right {
    margin-bottom: -250px;
    z-index: 2;
    max-width: 95vw;
    width: 95vw;
    order: 1;
  }
  .image-container img.slide-in-left {
    margin-right: 0;
    
    order: 2;
  }

  details summary {
    list-style: none;
    text-align: left;
    justify-content: flex-start;
  }
  details summary::-webkit-details-marker {
    display: none;
  }
  details summary::marker {
    display: none;
  }
}

/* 桌面版顯示桌面選單，隱藏漢堡選單 */
@media (min-width: 769px) {
  .hamburger {
    display: none; /* 隱藏漢堡按鈕 */
  }

  .desktop-menu {
    display: flex; /* 顯示桌面版選單 */
  }
  .notes {
    padding-left: 3rem;
    padding-right: 3rem;
  }
  .notes_list {
    padding-left: 2.5em; /* 保持條列縮排 */
    padding-right: 1em;  /* 讓右邊也有空間 */
  }
  .instructions .categories button {
    padding: 0.75rem 1.5rem;
    margin-right: 10px;
    font-size: 1.25rem;
    min-width: 140px;
    border: 2px solid var(--dark) ;
  }
}


@media (max-width: 480px) {
  body {
    font-size: 15px;
    padding: 0 2vw;
  }
  header .container {
    padding: 0.5rem 0.5rem;
  }
  .hero {
    padding: 3rem 0.5rem;
    height: auto;
  }
  .hero h2 {
    font-size: 1.75rem;
    margin-top: 1.5rem;
  }
  .hero p {
    font-size: var(--font-size-18);
    max-width: 95vw;
  }
  .image-container {
    flex-direction: column;
    gap: 0px;

  }
  
  .image-container img:first-child {
    max-width: 600px;
    z-index: 2;
    position: relative;
    /* margin-right: -150px; 負值讓左圖壓到右圖，數值可調整 */
  }
  .image-container img:last-child {
    max-width: 450px;
    z-index: 1;
    position: relative;
  }
  .instructions {
    padding: 1rem 0.2rem;
  }
  .instructions h2 {
    font-size: 1.75rem;
  }
  .instructions .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    width: 100vw;
    margin-left: -2vw;
    margin-right: -2vw;
    padding-left: 2vw;
    padding-right: 2vw;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
  .instructions .categories button {
    flex: 0 0 auto;
    min-width: 110px;
    color: var(--dark);
    border: 2px solid var(--dark);
    /* margin-right: 6px; */
  }
  .instructions .step {
    min-width: 63vw;
    padding: 0.5rem;
  }
 
  .store {
    font-size: 1.1rem;
    padding: 1rem 0.2rem;
  }
  .store-btn {
    font-size: 1.1rem;
    padding: 8px 18px;
    margin: 10px;
  }
  .faq, .notes {
    padding: 1rem 0.2rem;
  }
  .faq h2, .notes h2 {
    font-size: 1.75rem;
  }
  .additional-info {
    padding: 10px 0.2rem;
    margin: 10px auto;
  }
  .additional-info h2 {
    font-size: 1.75rem;
  }
  .additional-info p {
    font-size: var(--font-size-18);
    padding-top: 10px;
  }
  footer  {
    padding: 1rem 0.2rem;
  }

  #backToTopBtn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
  .notes_list {
    padding-left: 1.5em;
  }
  .notes_list li {
    word-break: break-word;
    white-space: normal;
    padding-left: 0.2em;
    margin-left: 0;
    box-sizing: border-box;
  }
  .instructions .carousel {
    padding: 0 40px;
  }
  
  .instructions .step {
    max-width: 200px;
  }
  
  .carousel .steps {
    gap: 10px;
  }

  .carousel .step img {
    width: 180px;
    max-width: 180px;
    max-height: 250px;
  }
  
  .carousel .step p,
  .carousel .step h3 {
    width: 180px;
    max-width: 180px;
  }

  .carousel button {
    width: 28px;
    height: 28px;
  }

  .carousel button svg {
    width: 16px;
    height: 16px;
  }
}

/* Android 專用 carousel/step RWD（只影響 Android） */
/* @media (max-width: 1024px) {
  html[data-android="true"] .carousel .step,
  html[data-android="true"] .instructions .step {
    min-width: 100vw !important;
    width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-sizing: border-box;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
  }
  html[data-android="true"] .carousel .step img,
  html[data-android="true"] .instructions .step img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }
  html[data-android="true"] .mobile-menu.visible ~ .hamburger {
    display: none !important;
  }
  html[data-android="true"] .desktop-menu {
    display: none !important;
  }
  html[data-android="true"] .mobile-menu {
    display: flex !important;
  }
} */

/* --- Android 專用修正 --- */

@media (max-width: 768px) {
  .carousel .steps {
    gap: 0 !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* 新增：滑動對齊 */
  }

  .carousel .step {
    
    width: 100vw;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    scroll-snap-align: center; /* 新增：讓每張卡片對齊中間 */
  }

  .carousel .step img {
    width: auto;
    max-width: 100vw;
    height: 53vh;
    max-height: 53vh;
    object-fit: contain;
    display: block;
    margin: 0 !important;
  }

  .carousel .step p {
    text-align: center;
    max-width: 90vw;
    word-break: break-word;
    white-space: normal;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  .carousel .step h3 {
    text-align: center;
    max-width: 90vw;
    margin: 0 auto 0.1em auto;
  }
}

/* 添加更小螢幕的樣式 */
@media (max-width: 360px) {
  .instructions .carousel {
    padding: 0 30px; /* 減少左右padding */
  }

  .carousel .step img {
    width: 100px;
    max-width: 100px;
    max-height: 150px;
  }
  
  .carousel .step p,
  .carousel .step h3 {
    width: 100px;
    max-width: 100px;
    font-size: 0.85rem; /* 稍微縮小字體 */
  }

  .carousel button {
    width: 20px; /* 縮小按鈕尺寸 */
    height: 20px;
  }

  .carousel button svg {
    width: 12px;
    height: 12px;
  }
}

/* Samsung Galaxy S8 特定樣式 */
@media screen and (max-width: 360px) and (max-height: 740px) {
  .instructions .carousel {
    padding: 0 25px; /* 進一步減少左右padding */
  }

  .carousel .step img {
    width: 40vw; /* 更小的螢幕再縮小圖片寬度 */
    max-width: 40vw;
    max-height: 25vh; /* 降低最大高度 */
  }
  
  .carousel .step p,
  .carousel .step h3 {
    width: 40vw;
    max-width: 40vw;
    font-size: 0.85rem; /* 再縮小字體 */
  }

  .carousel button {
    width: 28px; /* 再縮小按鈕尺寸 */
    height: 28px;
    top: 45%; /* 調整按鈕位置 */
  }

  .carousel button svg {
    width: 16px;
    height: 16px;
  }

  .carousel .step {
    padding: 5px 0 !important; /* 添加一些垂直間距 */
  }
}

/* 更極端的窄螢幕 */
@media screen and (max-width: 320px) {
  .instructions .carousel {
    padding: 0 20px;
  }

  .carousel .step img {
    width: 35vw;
    max-width: 35vw;
    max-height: 22vh;
  }
  
  .carousel .step p,
  .carousel .step h3 {
    width: 35vw;
    max-width: 35vw;
    font-size: 0.8rem;
  }

  .carousel button {
    width: 24px;
    height: 24px;
  }

  .carousel button svg {
    width: 14px;
    height: 14px;
  }
}



