: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;
}

/* Hero Section - 第一區塊 */
.scw-hero {
  position: relative;
  width: 100%;
  height:640px;
  overflow: hidden;
  background: url('../images/events/hero_bg.jpg') center center/cover no-repeat;
}

/* 添加綠色遮罩層 */
.scw-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* 黑色暗色遮罩 */
  z-index: 1;
  pointer-events: none;
}

.s1c-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  z-index: 1;
  animation: heroBackground 20s infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes heroBackground {
  0% {
    transform: scale(1) translate(-5%, -5%);
  }
  50% {
    transform: scale(1.05) translate(-2.5%, -2.5%);
  }
  100% {
    transform: scale(1.02) translate(-3%, -4%);
  }
}

.s1c-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: overlayPulse 15s infinite ease-in-out;
}

.smw-hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  z-index: 2;
}

.hero-logo-circle {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.hero-logo-circle img {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

.smw-hero .s1c-title{
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 40px;
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.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;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
}
.cta-button img {
  width: 30px;
  height: auto;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
.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);
}

/* CTA 容器置中樣式 */
.compare-cta {
  text-align: center;
  margin-top: 40px;
}

.steps-cta {
  text-align: center;
  margin-top: 50px;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px) scale(0.95);
  }
  60% {
    opacity: 0.8;
    transform: translate(-50%, -50%) translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

/* 第二區塊 - 特色區塊 */
.scw-features {
  padding: 80px 0;
  background: #F4F9F4;
  position: relative;
  overflow: hidden;
}

.scw-features::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -120px;
  width: 300px;
  height: 300px;
  background: linear-gradient(to left, #DEF6DE 30%, rgb(255 255 255 / 0%) 50%, #00000000 70%);
  border-radius: 50%;
  animation: floatCircle1 20s infinite ease-in-out;
  z-index: 0;
}

.scw-features::after {
  content: '';
  position: absolute;
  top: 40%;
  right: -120px;
  width: 250px;
  height: 250px;
  background: linear-gradient(to right, #DEF6DE 30%, rgb(255 255 255 / 0%) 50%, #00000000 70%);
  border-radius: 50%;
  animation: floatCircle2 25s infinite ease-in-out reverse;
  z-index: 0;
}

@keyframes floatCircle1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 1;
  }
}

@keyframes floatCircle2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-25px, 20px) scale(0.9);
    opacity: 0.8;
  }
}

.smw-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.s2c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 32px;
}

.s2c-card {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: transform 0.3s ease;
  will-change: transform, opacity;
  background: linear-gradient(180deg, #e8f5e8 0%, #f4f9f4 30%, #fff 100%);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(40, 136, 58, 0.1);
}

.s2c-card.animate {
  animation: slideUpFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.s2c-card.animation-complete {
  will-change: auto;
}

.s2c-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
  transition: transform 0.3s ease;
  display: block;
  opacity: 0;
  transform: scale(0.8);
}

.s2c-card.animate .s2c-icon {
  animation: iconFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes iconFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.s2c-card:nth-child(1).animate { animation-delay: 0.1s; }
.s2c-card:nth-child(2).animate { animation-delay: 0.3s; }
.s2c-card:nth-child(3).animate { animation-delay: 0.5s; }

.s2c-card:nth-child(1).animate .s2c-icon { animation-delay: 0.3s; }
.s2c-card:nth-child(2).animate .s2c-icon { animation-delay: 0.5s; }
.s2c-card:nth-child(3).animate .s2c-icon { animation-delay: 0.7s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.s2c-card:hover .s2c-icon {
  transform: scale(1.1);
}

.s2c-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.s2c-description {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.s2c-card:hover .s2c-card-title, 
.s2c-card:hover .s2c-description {
  color: #28883A;
}

/* 第三區塊 - compare */
.scw-compare {
  background:
    linear-gradient(135deg, rgb(0 0 0 / 58%) 100%, rgb(0 0 0 / 27%) 100%),
    url('../images/events/compare_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.scw-compare::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -50%;
  width: 200%;
  height: 200px;
  background: linear-gradient(135deg, rgba(68,68,68,0.5) 20%, rgba(34,34,34,0.3) 60%);
  border-radius: 0 0 50% 50%;
  animation: waveFloat 6s ease-in-out infinite;
  z-index: 1;
}

.scw-compare::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -30%;
  width: 160%;
  height: 150px;
  background: linear-gradient(135deg, rgba(136,136,136,0.3) 20%, rgba(34,34,34,0.2) 60%);
  border-radius: 0 0 60% 60%;
  animation: waveFloat 8s ease-in-out infinite reverse;
  z-index: 2;
}

@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-15px) rotate(1deg) scale(1.02);
  }
  66% {
    transform: translateY(-25px) rotate(-1deg) scale(0.98);
  }
}

.scw-compare .wave-layer {
  position: absolute;
  top: -80px;
  left: -40%;
  width: 180%;
  height: 120px;
  background: linear-gradient(1deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 0 0 40% 40%;
  animation: waveFloat 10s ease-in-out infinite;
  z-index: 3;
}



.scw-compare .sc-title {
  margin-top: 20px;
  margin-bottom: 40px;
  color: #fff;
}


.smw-compare {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.sc-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

/* 比較表容器 */
.compare-table-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid transparent;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(76, 175, 80, 0.4) 25%, rgba(255, 255, 255, 0.4) 50%, rgba(76, 175, 80, 0.4) 75%, rgba(255, 255, 255, 0.6) 100%);
  background-origin: border-box;
  background-clip: content-box, border-box;
  border-radius: 16px;
  padding: 0;
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}
.compare-table-container.animate {
  animation: tableFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes tableFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

/* 表格標題 */
.compare-table thead th {
  padding: 24px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  border-bottom: 2px solid #e5e5e7;
}

.compare-th-label {
  background: #f8f9fa;
  color: #1a1a1a;
  width: 25%;
}

.compare-th-competitor {
  background: #f8f9fa;
  color: #6a6a6a;
  border-left: 1px solid #e5e5e7;
  width: 37.5%;
}

.compare-th-ecpay {
  background-color: #207530;
  color: white;
  border-left: 1px solid #e5e5e7;
  width: 37.5%;
  position: relative;
  font-size: 20px;
  box-shadow: 0 -4px 8px rgba(40, 136, 58, 0.3);
}

.compare-th-ecpay::after {
  content: '✓';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #ff9800;
  border-radius: 50%;
  margin-left: 8px;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  vertical-align: text-bottom;
  transform: translateY(-2px);
}

/* 表格內容行 */
.compare-table tbody tr {
  border-bottom:1px solid #efefef;
  position: relative;
  z-index: 1;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background-color: rgba(40, 167, 69, 0.02);
}

.compare-td-label {
  padding: 24px 20px;
  background: #f8f9fa;
  color: #6a6a6a;
  font-weight: bold;
  font-size: 18px;
  text-align: left;
  vertical-align: middle;
}

.compare-td-competitor {
  padding: 24px 20px;
  background: white;
  color: #6a6a6a;
  text-align: center;
  vertical-align: middle;
  border-left: 1px solid #e5e5e7;
}

.compare-td-ecpay {
  padding: 24px 20px;
  background: rgba(40, 167, 69, 0.05);
  color:#207530;
  text-align: center;
  vertical-align: middle;
  position: relative;
  font-weight: bold;
  z-index: 2;
}

.compare-text {
  font-size: 18px;
  line-height: 1.5;
  display: block;
}

.compare-text font {
  font-size: 26px;
  font-weight: bold;
  padding: 0px 6px;
}

.compare-td-ecpay .compare-text {
  font-size: 20px;
  font-weight: bold;
}

.compare-td-fee .compare-text {
  font-size: 20px;
  font-weight: 700;
}

.compare-th-ecpay, .compare-td-ecpay {
  border-top: none !important;
  border-bottom: none !important;
  border-left: 2.5px solid #207530 !important;
  border-right: 2.5px solid #207530 !important;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

/* 所有區塊的副標題統一樣式 */
.sc-subtitle {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #757575;
}

.scw-faq {
  background: #f4f9f4;
  padding: 80px 0;
}
.smw-faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(40,136,58,0.06);
  overflow: hidden;
}
.faq-item.animate {
  animation: faqFadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes faqFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.faq-item:nth-child(1).animate { animation-delay: 0.1s; }
.faq-item:nth-child(2).animate { animation-delay: 0.2s; }
.faq-item:nth-child(3).animate { animation-delay: 0.3s; }
.faq-item:nth-child(4).animate { animation-delay: 0.4s; }
.faq-item:nth-child(5).animate { animation-delay: 0.5s; }
.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-support-cta {
  text-align: center;
  margin-top: 40px;
}

/* 第四區塊*/
.scw-steps {
  padding: 80px 0;
  background: #F4F9F4;
  position: relative;
  overflow: hidden;
}
.smw-steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.scw-steps .sc-title font {
  font-size: 40px;
  font-weight: bold;
  padding: 0px 6px;
  color: var(--primary-color);
}

/* 第四區塊 - 步驟區塊樣式優化 */
.s4c-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  margin-top: 40px;
}
.s4c-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 10px;
  text-align: center;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.s4c-card-title {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.s4c-card:hover .s4c-card-title {
  background: #ffa726;
  transform: scale(1.1);
}
.s4c-icon {
  height: auto;
  width: 100%;
  display: block;
}
.s4c-icon video {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.s4c-icon video::-webkit-media-controls-panel,
.s4c-icon video::-webkit-media-controls,
.s4c-icon video::-webkit-media-controls-enclosure,
.s4c-icon video::-webkit-media-controls-start-playback-button,
.s4c-icon video::-webkit-media-controls-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.s4c-icon video:focus {
  outline: none !important;
  box-shadow: none !important;
}
.s4c-icon video {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.s4c-description {
  font-size: 20px;
  color: #444;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: bold;
}

/* 評論輪播區塊 */
.scw-testimonials {
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 30%, #f4f9f4 70%, #fff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.scw-testimonials::before,
.scw-testimonials::after {
  display: none !important;
}

.scw-testimonials .floating-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.scw-testimonials .floating-decoration-1 {
  top: 18%;
  left: -180px;
  width: 320px;
  height: 320px;
  background: linear-gradient(102deg, #def6de45 60%, #bbf1c7 100%);
  border-radius: 50%;
  animation: floatCircle1 20s infinite ease-in-out;
  z-index: 8;
}
.scw-testimonials .floating-decoration-2 {
  bottom: 10%;
  right: -220px;
  width: 400px;
  height: 400px;
  background: linear-gradient(270deg, #def6de45 60%, #d5ffde 100%);
  border-radius: 50%;
  animation: floatCircle2 25s infinite ease-in-out reverse;
  z-index: 8;
}
@keyframes floatCircle1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(20px, -30px) scale(1.1);
    opacity: 1;
  }
}
@keyframes floatCircle2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-25px, 20px) scale(0.9);
    opacity: 0.8;
  }
}
.smw-testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.testimonials-swiper {
  width: 100%;
  padding: 60px 0;
}
.testimonials-cta {
  text-align: center;
  margin-top: 40px;
}
.swiper-slide.testimonial-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(40,136,58,0.10), 0 1.5px 6px rgba(40,136,58,0.06);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.4s;
  opacity: 0.7;
  transform: scale(0.88);
  min-width: 320px;
  max-width: 370px;
  margin: 0 auto;
  position: relative;
  z-index: 11;
}
.swiper-slide-active.testimonial-card {
  transform: scale(1.08);
  opacity: 1;
  z-index: 12;
}
.testimonial-photo {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(40,136,58,0.10);
}
.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-label {
  background: linear-gradient(90deg, #138c2a 0%, #5cb571 100%);
  color: #fff;
  font-size: 15px;
  border-radius: 35px;
  padding: 4px 18px;
  margin-bottom: 12px;
  display: inline-block;
}
.testimonial-title {
  font-size: 20px;
  font-weight: bold;
  color: #207530;
  margin-bottom: 6px;
  text-align: center;
}
.testimonial-content {
  font-size: 17px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 0;
}
/* Swiper 導覽按鈕與分頁 */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  color: #28883A;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40,136,58,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.testimonials-swiper .swiper-button-next:after,
.testimonials-swiper .swiper-button-prev:after {
  content: '';
  display: none;
}
.testimonials-swiper .swiper-button-next {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4L13 10L7 16' stroke='%2328883A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.testimonials-swiper .swiper-button-prev {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 4L7 10L13 16' stroke='%2328883A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.testimonials-swiper .swiper-button-next:hover {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4L13 10L7 16' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: #28883A;
  box-shadow: 0 4px 16px rgba(40,136,58,0.18);
}
.testimonials-swiper .swiper-button-prev:hover {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 4L7 10L13 16' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: #28883A;
  box-shadow: 0 4px 16px rgba(40,136,58,0.18);
}
.testimonials-swiper .swiper-pagination-bullet {
  background: #c8e6c9;
  opacity: 1;
}
.testimonials-swiper .swiper-pagination-bullet-active {
  background: #28883A;
}


/* 標題進場動畫 */
.sc-title, .s1c-title, .sc-subtitle {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}
.sc-title.animate, .s1c-title.animate, .sc-subtitle.animate {
  animation: titleFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes titleFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用：從上方淡入動畫 */
.fade-in-top {
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeInTop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  80% {
    opacity: 0.8;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 第七區塊 - 內容樣式統一 */
.scw-final-cta {
  position: relative;
  background: url('../images/events/payment-final-bg.jpg') center center / cover no-repeat !important;
  min-height: 420px;
  padding: 100px 0 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.scw-final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgb(33 118 49 / 86%);
  z-index: 1;
  pointer-events: none;
}
.smw-final-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.smw-final-cta .sc-title,
.smw-final-cta .sc-subtitle,
.smw-final-cta .cta-button {
  color: #fff !important;
}
.smw-final-cta h2 {
  /* 套用主標題樣式 */
  @extend .sc-title;
}
.smw-final-cta p {
  /* 套用副標題樣式 */
  @extend .sc-subtitle;
}
.final-cta-btn {
  /* 套用主 CTA 按鈕樣式 */
  @extend .cta-button;
  font-size: clamp(16px, 2.5vw, 20px);
  background: linear-gradient(135deg, #ffa726 0%, #ff9800 50%, #ffa726 100%);
  box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  margin-bottom: 5px;
}
.final-cta-btn:hover {
  background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%);
  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);
}

/* Footer 樣式 */
.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;
  align-items: center;
}
.footer .copyright {
  width: 100%;
  display: block;
  text-align: left;
  color: white;
  line-height: 1.5;
  font-size: 14px;
}

/* ===================== 響應式設計 ===================== */

/* Desktops and Laptops (1024px to 1200px) */
/* 大螢幕平板 (max-width: 1200px) */
@media (max-width: 1200px) {
  .s4c-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .s4c-icon {
    width: 400px;
    height: auto;
  }
  .s4c-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (769px to 1024px) */
@media (max-width: 1024px) {
  .s4c-grid {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .s4c-card {
    padding: 0 15px;
    max-width: 400px;
  }
  .payment-features__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);
  }
  .testimonials-swiper {
    padding: 40px 0;
  }
  .swiper-slide.testimonial-card {
    max-width: 90vw;
    min-width: 260px;
    margin-bottom: 30px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .smw-container {
    padding: 0 15px;
  }

  .s1c-content {
    left: 50%;
    max-width: 100%;
    padding: 0 15px;
  }

  /* 圓形裝飾區塊響應式 */
  .circle-decoration-section {
    padding: 80px 0;
    min-height: 400px;
  }
  
  .circle-container {
    height: 300px;
  }
  
  .circle-large {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 5%;
  }
  
  .circle-medium {
    width: 120px;
    height: 120px;
    top: 65%;
    right: 8%;
  }
  
  .circle-small {
    width: 100px;
    height: 100px;
    bottom: 35%;
    left: 48%;
  }
  
  .flowing-bg-shape {
    opacity: 0.6;
  }
  
  .shape-1 {
    width: 400px;
    height: 250px;
    left: -30%;
  }
  
  .shape-2 {
    width: 350px;
    height: 220px;
    right: -25%;
  }
  
  .shape-3 {
    width: 250px;
    height: 180px;
    left: 25%;
  }

  .s1c-title {
    font-size: 32px;
  }
  .smw-hero .s1c-title {
    font-size: 40px;
  }

  .s1c-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .scw-hero{
    height: 640px;
  }

  /* payment-features Section Mobile */
  .s2c-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .smw-compare {
    padding: 0 15px;
  }
  
  .sc-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .compare-table-container {
    border-radius: 12px;
  }
  
  .compare-table thead th {
    padding: 20px 16px;
    font-size: 20px;
  }
  
  .compare-th-ecpay {
    font-size: 18px;
  }
  
  .compare-td-label {
    padding: 20px 16px;
    font-size: 16px;
  }
  
  .compare-td-competitor,
  .compare-td-ecpay {
    padding: 20px 16px;
  }
  
  .compare-text {
    font-size: 16px;
  }
  
  .compare-th-ecpay {
    font-size: 18px;
  }
  
  .compare-td-ecpay .compare-text {
    font-size: 18px;
  }
  
  /* 手機版橫向滑動設計 */
  .compare-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .compare-table-container::-webkit-scrollbar {
    height: 4px;
  }
  
  .compare-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  
  .compare-table-container::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 2px;
  }
  
  .compare-table {
    min-width: 580px;
  }

  /* Testimonials Mobile */
  .testimonials-swiper {
    padding: 40px 0;
  }
  .swiper-slide.testimonial-card {
    padding: 20px;
    min-width: 220px;
    max-width: 90vw;
    margin-bottom: 30px;
  }
  .testimonial-title {
    font-size: 17px;
  }
  .testimonial-content {
    font-size: 15px;
  }
  .testimonials-swiper .swiper-button-next,
  .testimonials-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  .s4c-grid {
    gap: 30px;
  }
  .s4c-card {
    padding: 0 10px;
    max-width: 320px;
  }
  .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;
  }

  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .s2c-card,
  .s2c-icon,
  .s2c-card-title,
  .s2c-description {
    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/payment-final-bg.jpg') center center / cover no-repeat;
    z-index: 0;
  }
}

/* Print Styles */
@media print {
  .scw-testimonial {
    height: auto;
    background: white !important;
  }
  .scw-bg,
  .scw-particles {
    display: none;
  }
  .s7c-title {
    color: black;
  }
}

@media (min-width: 2000px) {
  .scw-hero {
    height: 1000px;
  }
  .smw-steps{
    max-width: 1800px;
  }
  .hero-logo-circle {
    width: 160px;
    height: 160px;
  }
}
