:root {
  --primary-color: #28883A;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  font-family: 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.sc-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
}

.sc-subtitle {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #757575;
}

/* ===================== 統一 CTA 按鈕樣式 ===================== */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 50%, #ffa726 100%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow:
    0 8px 25px rgba(255, 167, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  margin-bottom: 5px;
  cursor: pointer;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 15px 35px rgba(255, 167, 38, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}



/* Hero Section - 第一區塊 */
.scw-hero {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
}

.s1c-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.s1c-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.s1c-triangle-left,
.s1c-triangle-right-bottom {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transition: all 1s ease;
}

.s1c-triangle-left {
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  transform: translateX(-10%);
}

.s1c-triangle-right-bottom {
  bottom: -10px;
  right: 0;
  width: 20%;
  transform: translateX(10%);
}

.s1c-triangle-left.active {
  opacity: 1;
  transform: translateX(0);
}

.s1c-triangle-right-bottom.active {
  opacity: 1;
  transform: translateX(0);
}

.s1c-triangle-right-bottom.s1c-triangle-image {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: 70%;
  height: auto;
}

.s1c-triangle-image {
  width: 100%;
  height: auto;
}

.smw-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  z-index: 4;
}

.hero-logo-circle {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.hero-logo-circle img {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px;
}

.smw-hero .s1c-title{
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}
.smw-hero .s1c-subtitle{
  font-size: 24px;
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 300;
  color: #fff;
  text-align: left;
}

.s1c-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: slideIn 1s ease forwards;
}

.s1c-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.s1c-subtitle {
  font-size: 24px;
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 300;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
  }
}

/* 第二區塊 - 特色區塊 */
.scw-features {
  padding: 80px 0;
  background: #fff;
}

.smw-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.s2c-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.s2c-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.s2c-item:hover {
  transform: scale(1.2);
}

.s2c-item img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.s2c-item:nth-child(1) img { animation-delay: 0.3s; }
.s2c-item:nth-child(2) img { animation-delay: 0.5s; }
.s2c-item:nth-child(3) img { animation-delay: 0.7s; }
.s2c-item:nth-child(4) img { animation-delay: 0.9s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.s2c-item:hover img {
  transform: scale(1.1);
}

.s2c-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #000;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.s2c-item:nth-child(1) h3 { animation-delay: 0.4s; }
.s2c-item:nth-child(2) h3 { animation-delay: 0.6s; }
.s2c-item:nth-child(3) h3 { animation-delay: 0.8s; }
.s2c-item:nth-child(4) h3 { animation-delay: 1s; }

.s2c-item p {
  font-size: 16px;
  color: #616161;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.s2c-item:nth-child(1) p { animation-delay: 0.5s; }
.s2c-item:nth-child(2) p { animation-delay: 0.7s; }
.s2c-item:nth-child(3) p { animation-delay: 0.9s; }
.s2c-item:nth-child(4) p { animation-delay: 1.1s; }

.s2c-item:hover h3, .s2c-item:hover p {
  color: var(--primary-color);
}

/* 第三區塊 - Industry Showcase */
.scw-industry {
  padding: 80px 0;
  overflow: hidden;
  background: var(--primary-color);
  position: relative;
}

.scw-industry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.scw-industry::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(40, 136, 58, 0.92) 0%,
    rgba(40, 136, 58, 0.75) 50%,
    rgba(40, 136, 58, 0.92) 100%
  );
  pointer-events: none;
}

.smw-scroll {
  max-width: 100%;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}


.s3c-scroll {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
  width: fit-content;
}

.s3c-scroll-container {
  display: flex;
  gap: 20px;
  animation: scrollXInfinite 60s linear infinite;
}

.s3c-scroll-container:hover {
  animation-play-state: paused;
}

@keyframes scrollXInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-230px * 11 - 20px * 11));
  }
}

.s3c-item {
  flex: 0 0 230px;
  width: 230px;
  height: 300px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.s3c-item:hover {
  transform: translateY(-5px);
}

.s3c-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.s3c-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
  z-index: 2;
}

.s3c-item-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

/* 第四區塊 - 功能展示 */
.scw-function {
  padding: 80px 0;
  background: #F4F9F4;
}

.smw-function {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.s4c-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.s4c-grid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.s4c-function-card {
  min-height: 380px;
  padding: 40px 30px 35px 30px;
  background: #FFF;
  border-radius: 15px;
  border: 1px solid #E1E5EC;
  box-shadow: 0px 12px 38px 0px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.s4c-function-card:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0px 12px 38px 0px rgba(40, 136, 58, 0.1);
}

.s4c-function-card:hover h3,
.s4c-function-card:hover p {
  color: white;
}

.s4c-function-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.s4c-function-content {
  text-align: center;
}

.s4c-function-content h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.s4c-function-content p {
  color: #697077;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* 第六區塊 - 步驟切換 */
.scw-steps {
  background: #fff;
  padding: 80px 0;
}

.smw-steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.scw-steps .sc-title {
  margin-bottom: 60px;
}

.step-badge {
  display: inline-block;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 24px;
  padding: 6px 28px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  margin-top: 8px;
  letter-spacing: 1px;
  background: #fff;
  text-align: center;
}

.s6c-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 32px;
}

.s6c-tab {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  z-index: 2;
}

.s6c-tab.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(40,136,58,0.18);
}

.s6c-tab:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  content: '';
  display: block;
  width: 20px;
  height: 0;
  border-top: 1px dashed #E7E7E7;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
}

.s6c-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px 24px 24px;
  position: relative;
  margin-bottom: 32px;
}

.s6c-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(40,136,58,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  z-index: 2;
}

.s6c-arrow:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.s6c-arrow.left {
  margin-right: 8px;
}

.s6c-arrow.right {
  margin-left: 8px;
}

.s6c-step {
  display: none;
  flex: 1 1 0;
  align-items: center;
  gap: 32px;
  justify-content: center;
  min-width: 0;
}

.s6c-step.active {
  display: flex;
}

.s6c-step-img {
  width: 600px;
  max-width: 40vw;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(40,136,58,0.10);
  object-fit: cover;
  margin-right: 32px;
}

.s6c-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.3;
}

.s6c-step p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

.s6c-step > div {
  min-width: 200px;
}

.s6c-step {
  flex-direction: row;
}

.scw-testimonial .sc-title, .scw-industry .sc-title {
  color: #fff;
}

/* Testimonial Section */
.scw-testimonial {
  background-size: cover;
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 200px;
  padding-top: 80px;
}

.scw-bg {
  position: absolute;
  inset: 0;
  background:
  linear-gradient(135deg, rgba(0, 100, 40, 0.85) 0%, rgba(0, 150, 60, 0.75) 50%, rgba(0, 100, 40, 0.9) 100%),
  url('../images/events/bg2.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* 粒子效果 */
.scw-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.scw-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatUp 8s ease-in-out infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) translateX(20vw);
  }
}

.smw-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  text-align: center;
  padding-bottom: 200px;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s7c-main-review {
  position: absolute;
  bottom: -4px;
  left: 35%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  z-index: 2;
  opacity: 1;
  transition: transform 0.3s ease-out;
}

.s7c-main-review img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.s7c-main-review-mobile {
  display: none; /* 桌機版隱藏 */
}

.s7c-review-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  perspective: 1000px;
  margin-top: 100px;
}

.s7c-review-card {
  width: 380px;
  max-width: 100%;
  opacity: 0;
  animation: cardSlideIn 0.8s ease-out forwards;
  position: relative;
}

.s7c-review-card:nth-child(1) { animation-delay: 0.2s; }
.s7c-review-card:nth-child(2) { animation-delay: 0.4s; margin-top: 40px; }
.s7c-review-card:nth-child(3) { animation-delay: 0.6s; margin-top: -20px; }

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s7c-review-animation {
  animation: gentleFloat 6s ease-in-out infinite;
}

.s7c-review-card:nth-child(2) .s7c-review-animation {
  animation-delay: -2s;
}

.s7c-review-card:nth-child(3) .s7c-review-animation {
  animation-delay: -4s;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.s7c-review-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.s7c-cta-wrapper {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
}

/* 隱藏桌機版的輪播點點 */
.swiper-pagination {
  display: none;
}

/* 修改 Swiper 的設定 */
.s4c-slider.swiper {
  overflow: visible;
}

/* 功能卡片樣式 */
.s4c-cards {
  display: grid;
  gap: 32px;
  padding: 32px 0;
  max-width: 1200px;
  margin: 0 auto;
  background: #f6faf7;
  grid-template-columns: repeat(4, 1fr); /* 桌機版四個一欄 */
}

.s4c-card {
  min-height: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  border: 1px solid #E1E5EC;
}
.s4c-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: var(--primary-color);
}
.s4c-card-icon {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s4c-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s4c-card-content h3 {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  transition: color 0.2s;
}
.s4c-card-content p {
  color: #697077;
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
  transition: color 0.2s;
}
.s4c-card:hover .s4c-card-content h3,
.s4c-card:hover .s4c-card-content p {
  color: #fff;
}

/* 桌機/iPad 顯示 grid，手機隱藏 */
.s4c-cards-desktop { display: grid; }
.s4c-cards-mobile { display: none; }


/* Swiper 手機版樣式 */
.s4c-mobile-slider {
  padding: 20px 0;
  width: 100%;
  overflow: hidden;
}

.s4c-mobile-slider .swiper {
  width: 100%;
  padding-bottom: 40px;
}

.s4c-mobile-slider .swiper-wrapper {
  display: flex;
}

.s4c-mobile-slider .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 10px;
}

.s4c-mobile-slider .swiper-pagination {
  bottom: 0;
  width: 100%;
  text-align: center;
}

.s4c-mobile-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #BBE1BB;
  opacity: 1;
  margin: 0 4px;
  transition: background 0.2s;
}

.s4c-mobile-slider .swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

/* ========== 比較表 Compare 區塊樣式 ========== */
.compare-cta {
  text-align: center;
  margin-top: 32px;
}
#invoice-compare, .scw-compare {
  background: url('../images/events/bg1.png') center center no-repeat;
  background-size: cover;
  position: relative;
  padding: 80px 0;
}
.smw-compare {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.compare-table-container {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 18px;
  padding: 32px 24px;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 18px;
  background: transparent;
}
.compare-table th, .compare-table td {
  padding: 24px 20px;
}
.compare-th-ecpay{
  background-color: #e6f4ea;
}
.compare-table td {
  border-bottom: 1px solid #e0e0e0;
}
.compare-table tr:last-child td {
  border-bottom: none;
}

/* 綠界欄位整欄淡綠底+邊框 */
.compare-table td.compare-td-ecpay {
  background: #e6f4ea;
  color: #28883A;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}

/* 其他方案內容 */
.compare-td-competitor {
  background: #fff;
  color: #232c4d;
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
}

/* 比較維度欄 */
.compare-th-label, .compare-td-label {
  background: #fff;
  color: #222;
  font-weight: bold;
  text-align: left;
  padding-left: 24px;
  border-left: none;
  min-width: 140px;
}


/* 讓表格標題列圓角不被覆蓋 */
.compare-table thead th:first-child {
  border-radius: 18px 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 18px 0 0;
}

.compare-pill-ecpay, .compare-pill-competitor {
  display: inline-block;
  min-width: 200px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 8px rgba(40,136,58,0.10);
  margin: 0 auto;
}
.compare-pill-ecpay {
  background: #28883A;
  color: #fff;
}
.compare-pill-competitor {
  background: #232c4d;
  color: #fff;
}

.compare-table .ecpay-col {
  background: #e6f4ea;
  border-left: 3px solid #28883A;
  border-right: 3px solid #28883A;
}

.compare-table tr:first-child .compare-th-ecpay.ecpay-col {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 3px solid #28883A;
}
.compare-table tr:last-child .compare-td-ecpay.ecpay-col {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  border-bottom: 3px solid #28883A;
}

.scw-faq {
  background: #f4f9f4;
  padding: 80px 0;
}
.smw-faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.s8c-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(40,136,58,0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  outline: none;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question[aria-expanded="true"] {
  background: #17692a;
}
.faq-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center center no-repeat;
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 24px;
  transition: max-height 0.3s, padding 0.3s;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 1000px;
  padding: 18px 24px;
}


/* FAQ 區塊條列清單 */
.faq-answer ul {
  padding-left: 1.5em;
  margin: 12px 0 12px 0;
}

.faq-answer ul li {
  padding-left: 0;
  margin-bottom: 0.5em;
  font-size: inherit;
  line-height: inherit;
  position: static;
}

.faq-answer ul li::before {
  content: none;
}

.footer {
  width: 100%;
  background-color: #303030;
  position: relative;
}
.footer .footer-content {
  max-width: 1170px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 40px 15px 40px;
  text-align: center;
  font-weight: 300;
  position: relative;
  z-index: 12;
}
.footer .footer-logo {
  display: inline-block;
  position: relative;
  margin-right: 5px;
  vertical-align: middle;
}
.footer .footer-info {
  display: inline-block;
  position: relative;
  vertical-align: 20px;
  vertical-align: middle;
}
.footer .footer-logo a {
  width: 135px;
  display: inline-block;
}
.footer .footer-logo img {
  width: 100%;
}
.footer a {
  text-decoration: none;
  transition: 0.4s;
}
.footer .footer-info {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.footer .contact-info {
  display: block;
  text-align: left;
  font-style: normal;
  margin-bottom: 5px;
}
.footer .contact-info .ci-mail {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
}
.footer .contact-info p {
  display: inline-block;
  color: white;
  font-size: 14px;
  line-height: 1.5;
}
.footer .contact-info .ci-icon {
  margin-right: 3px;
  vertical-align: middle;
  color: white;
  display: inline-flex;
  align-items: center;
}
.footer .contact-info a {
  color: white;
}
.footer .contact-info .ci-tel {
  color: white;
}
.footer .copyright {
  width: 100%;
  display: block;
  text-align: left;
  color: white;
  line-height: 1.5;
  font-size: 14px;
}


/* ===================== 響應式設計 ===================== */



/* Desktops and Laptops (1024px to 1200px) */
@media (max-width: 1200px) {
  .s4c-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (769px to 1024px) */
@media (max-width: 1024px) {
  .s2c-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .s4c-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .s4c-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* For s4c-cards: Display grid with 2 columns */
  .s4c-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .s7c-main-review{
    left: 27%;
  }

}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .smw-container {
    padding: 0 15px;
  }
  .s6c-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-left: 0;
    padding-right: 0;
  }
  .s6c-arrow.left {
    position: absolute;
    left: 0;
    top: 70%;
    transform: translateY(-50%);
    margin: 0;
  }
  .s6c-arrow.right {
    position: absolute;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    margin: 0;
  }
  .s6c-step.active {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .s6c-step-img {
    width: 90vw;
    max-width: 320px;
    margin: 0 0 12px 0;
  }
  .s5c-title,
  .s5c-subtitle {
    padding: 0px 40px;
  }
  .sc-title {
    font-size: 32px;
  }
  .smw-hero .s1c-title{
    font-size: 40px;
  }
  .smw-hero .s1c-subtitle{
    font-size: 22px;
    text-align: center;
  }
  .s7c-review-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 0px;
    margin-top: 80px;
  }
  .s7c-review-card:nth-child(2),
  .s7c-review-card:nth-child(3) {
    margin-top: 0;
  }
  .scw-testimonial {
    padding-bottom: 150px;
    padding-top: 60px;
    min-height: 70vh;
  }
  .s7c-main-review {
    display: none;
  }
  
  .s7c-main-review-mobile {
    display: block; /* 手機版顯示 */
    text-align: center;
    margin: 0 auto;
    padding: 0px;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpMobile 0.8s ease-out 0.8s forwards;
  }
  
  .s7c-main-review-mobile img {
    width: 100%;
    height: auto;
  }
  
  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .s7c-cta-wrapper {
    bottom: 60px;
  }

  /* Hero Section Mobile */
  .s1c-triangle-left,
  .s1c-triangle-right-bottom {
    width: 50% !important;
  }
  .s1c-content {
    left: 50%;
    max-width: 100%;
    padding: 0 15px;
    text-align: center ;
  }
  .s1c-title {
    font-size: 32px;
  }
  .s1c-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
  }

  /* Features Section Mobile */
  .s2c-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .s2c-item img {
    max-width: 200px;
  }

  /* Function Section Mobile */
  .s4c-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .swiper-pagination {
    display: block !important; /* Show pagination on mobile */
  }
  .s4c-slider.swiper {
    overflow: hidden; /* Hide overflow on mobile for swiper */
  }
  .s4c-cards-desktop {
    display: none !important; /* Hide desktop cards */
  }
  .s4c-cards-mobile {
    display: block; /* Show mobile cards */
  }
  .s4c-cards-mobile .swiper {
    padding-bottom: 32px;
  }
  .s4c-cards-mobile .swiper-slide {
    display: flex;
    justify-content: center;
  }
  .s4c-cards-mobile .s4c-card {
    min-width: 90vw;
    max-width: 320px;
    margin: 0 auto;
  }
  .s4c-cards { /* Hide s4c-cards when mobile */
    display: none;
  }
  .s4c-mobile-slider { /* Show mobile slider when mobile */
    display: block;
  }

  .compare-table {
    font-size: 16px;
  }
  .compare-th-label, .compare-td-label {
    padding-left: 8px;
  }
  .compare-table th, .compare-table td {
    padding: 20px 16px;
  }

  .compare-pill-ecpay, .compare-pill-competitor{
    padding: 12px 24px;
    font-size: 18px;
    min-width: 260px;
  }
  .compare-table-container{
    padding: 0px;
    box-shadow: none;
  }
  .compare-th-label, .compare-td-label{
    min-width: 110px;
  }
  .hero-logo-circle{
    margin: 0 auto 20px auto;
  }
  .footer .footer-content {
    padding: 30px 15px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer .footer-logo {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    text-align: center;
  }
  .footer .footer-logo a {
    width: 200px;
    margin: 0 auto;
  }
  .footer .footer-info {
    display: block;
    width: 100%;
    text-align: center;
    vertical-align: top;
  }
  .footer .contact-info {
    margin-bottom: 20px;
    text-align: center;
  }
  .footer .contact-info .ci-mail {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .footer .contact-info p {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }
  .footer .copyright {
    text-align: center;
    margin-top: 20px;
  }

}


@media (min-width: 769px) { 
  .s4c-cards {
    display: grid;
  }
  .s4c-mobile-slider {
    display: none;
  }
}

@media (min-width: 2000px) {
  .scw-testimonial{
    min-height: 70vh;
  }
  .s7c-main-review{
    left: 40%;
  }
  .scw-hero{
    height: 1000px;
  }
  .smw-hero .s1c-title{
    font-size: 60px;
  }
  .hero-logo-circle {
    width: 160px;
    height: 160px;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .s2c-item,
  .s2c-item img,
  .s2c-item h3,
  .s2c-item p {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .scw-bg {
    background:
    linear-gradient(135deg, rgba(0, 100, 40, 0.85) 0%, rgba(0, 150, 60, 0.75) 50%, rgba(0, 100, 40, 0.9) 100%),
    url('../images/events/bg2.jpg') center center / cover no-repeat;
    z-index: 0;
  }
}

/* Print Styles */
@media print {
  .scw-testimonial {
    height: auto;
    background: white !important;
  }
  .scw-bg,
  .scw-particles,
  .s7c-cta-button {
    display: none;
  }
}