/* 自架字體 - Noto Sans TC */
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-700.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #fd373b;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #666666;
  --border-gray: #e5e5e5;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 80px;
  width: auto;
}

.logo-text-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-red);
}

.nav-cta-btn {
  background: var(--primary-red) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta-btn:hover {
  background: #b91c1c !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hero-section {
  padding: 140px 0 80px;
  margin-top: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-background::before {
  background-image: url('/hero1.webp');
  animation: fadeInOut1 12s infinite;
}

.hero-background::after {
  background-image: url('/hero2.webp');
  animation: fadeInOut2 12s infinite;
}

@keyframes fadeInOut1 {
  0%, 45%, 100% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
}

@keyframes fadeInOut2 {
  0%, 45%, 100% {
    opacity: 0;
  }
  50%, 95% {
    opacity: 1;
  }
}


.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.hero-description {
  font-size: 18px;
  color: white;
  margin-bottom: 40px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Noto Sans TC', sans-serif;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  border: 2px solid white;
}

.btn-primary:hover {
  background: #e02f33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 55, 59, 0.3);
  border-color: white;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--white);
  transform: translateY(-2px);
}

section {
  padding: 50px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #fd373b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 36px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.target-audience-section {
  background: var(--bg-light);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.audience-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.audience-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.audience-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--primary-red);
}

.audience-icon svg {
  width: 100%;
  height: 100%;
}

.audience-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.audience-card p {
  text-align: left;
}
.video-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.video-section::before {
  display: none; /* Removed the dotted background pattern */
}

.video-section::after {
  display: none; /* Removed large floating circle */
}

@keyframes backgroundMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

@keyframes floatCircle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(-30px, 20px) scale(1.1);
    opacity: 0.2;
  }
  50% {
    transform: translate(20px, -30px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(-20px, -20px) scale(1.05);
    opacity: 0.25;
  }
}

.video-section .container {
  position: relative;
  z-index: 1;
}

.animated-circles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(253, 55, 59, 0.02);
  border: 1px solid rgba(253, 55, 59, 0.05);
  opacity: 0.6;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 10%;
  animation: float1 35s ease-in-out infinite;
}

.circle-2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 8%;
  animation: float2 40s ease-in-out infinite;
}

.circle-3 {
  display: none; /* Reduced number of circles */
}

.circle-4 {
  display: none; /* Reduced number of circles */
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15px, -10px) scale(1.05);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-20px, -15px) rotate(90deg);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.05;
  }
  50% {
    transform: translate(50px, -30px) scale(1.2);
    opacity: 0.1;
  }
}

@keyframes float4 {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-30px, 20px);
  }
  50% {
    transform: translate(20px, 40px);
  }
  75% {
    transform: translate(40px, -20px);
  }
}

.video-preview {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-preview:hover {
  transform: scale(1.02);
}

.video-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  transition: all 0.3s ease;
}

.video-preview:hover .play-button {
  background: var(--primary-red);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
  width: 40px;
  height: 40px;
  margin-left: 5px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal-content {
  background: transparent;
  padding: 0;
  max-width: 1400px;
  width: 90%;
  max-height: 90vh;
}

.video-modal-content .modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  z-index: 1001;
}

.video-modal .video-wrapper {
  margin: 0;
  max-width: 100%;
}

.video-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.highlight-item {
  background: white;
  border: 2px solid var(--primary-red);
  padding: 25px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.highlight-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.media-section {
  background: var(--bg-light);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.media-card {
  background: var(--white);
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.media-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.media-source {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 30px 15px 30px;
  width: fit-content;
}

.media-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 30px 15px 30px;
  line-height: 1.4;
}

.media-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 30px 60px 30px;
}

.media-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: block;
  position: absolute;
  bottom: 30px;
  right: 30px;
}

.media-link:hover {
  color: #e02f33;
}

.institutes-section {
  background: var(--bg-light);
  padding: 50px 0;
  overflow: hidden;
}

.institutes-carousel {
  margin-top: 30px;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.institutes-track {
  display: flex;
  gap: 50px;
  align-items: center;
  animation: scroll-left 40s linear infinite;
}

.institute-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.institute-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.institutes-track:hover {
  animation-play-state: paused;
}

.testimonials-section {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-red);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.testimonial-author {
  font-size: 14px;
  color: var(--primary-red);
  font-weight: 600;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

.about-section {
  background: var(--bg-light);
}

.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px;
}

.company-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 30px;
  display: block;
}

.about-intro h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.about-intro p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.award-card {
  background: var(--white);
  padding: 40px 35px;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.award-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.award-trophy {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  object-fit: contain;
}

.award-year {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.award-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.award-subtitle {
  font-size: 16px;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 15px;
}

.award-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #ffffff;
  padding: 40px 0 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow), var(--primary-red));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
}

.footer-column p {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: transform 0.2s ease;
}

.footer-item:hover {
  transform: translateX(4px);
}

.footer-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.8;
}

.youtube-icon {
  flex-shrink: 0;
  color: #b0b0b0;
}

.footer-column a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 14px;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  display: inline-block;
  padding: 2px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 13px;
  color: #666666;
  margin-bottom: 4px;
}

.footer-bottom a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--primary-red);
}

/* 返回頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 900px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-red);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    border-bottom: 1px solid var(--border-gray);
    padding: 20px 0;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-section {
    padding: 120px 0 80px;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
    flex-direction: column;
  }

  .features-grid,
  .audience-grid,
  .media-grid,
  .testimonials-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .video-highlights {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-item {
    justify-content: center;
  }

  .footer-item:hover {
    transform: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 14px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 30px 20px;
  }
}

/* Tech Section */

/* Purchase Section */
.purchase-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 40px auto;
}

.pricing-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-red);
}

.pricing-card.enterprise {
  border: 2px solid var(--primary-red);
}

.pricing-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.pricing-price {
  margin-bottom: 25px;
}

.pricing-price .currency {
  font-size: 20px;
  color: var(--primary-red);
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-red);
}

.pricing-price .unit {
  font-size: 18px;
  color: var(--text-secondary);
}

.custom-pricing {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-red);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 16px;
  position: relative;
  padding-left: 28px;
  text-align: left;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: white;
}

.contact-info {
  margin-top: 50px;
  padding: 50px 40px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.contact-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item svg,
.contact-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-red);
  flex-shrink: 0;
  object-fit: contain;
}

.contact-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 4px 0;
}

.contact-item a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-red);
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    flex-wrap: wrap;
    gap: 30px;
  }

  .contact-info {
    padding: 40px 20px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-red);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.faq-question h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  padding-top: 8px;
}

.faq-answer {
  padding-left: 60px;
}

.faq-answer p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-item {
    padding: 25px 20px;
  }

  .faq-question {
    gap: 15px;
  }

  .faq-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .faq-question h3 {
    font-size: 18px;
  }

  .faq-answer {
    padding-left: 50px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

.pricing-btn {
  width: 100%;
  text-align: center;
}


/* Process Section */
.process-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #fef8f8 50%, #fff5f5 100%);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(253, 55, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(253, 55, 59, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.process-section .section-title {
    color: var(--primary-red);
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
}

.process-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.process-step {
    flex: 1;
    background: white;
    padding: 40px 35px;
    text-align: center;
    position: relative;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    margin-right: -30px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.process-step:first-child {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    border-radius: 20px 0 0 20px;
}

.process-step:last-child {
    clip-path: none;
    margin-right: 0;
    border-radius: 0 20px 20px 0;
}

.process-step:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(253, 55, 59, 0.2);
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    z-index: 10;
}

/* Removed step-number styles as numbers are no longer used */

.step-icon {
    width: 80px;
    height: 80px;
    margin: 25px auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(253, 55, 59, 0.1) 0%, rgba(253, 55, 59, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: linear-gradient(135deg, rgba(253, 55, 59, 0.15) 0%, rgba(253, 55, 59, 0.08) 100%);
    transform: rotate(5deg);
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
}

.step-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 968px) {
    .process-section {
        padding: 60px 0;
    }
    
    .process-section .section-title {
        font-size: 32px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 30px;
        margin-top: 60px;
    }
    
    .process-step {
        max-width: 400px;
        width: 100%;
        margin-right: 0;
        clip-path: none;
        border-radius: 20px;
        padding: 40px 30px;
    }
    
    .process-step:first-child,
    .process-step:last-child {
        clip-path: none;
        border-radius: 20px;
    }
    
    .process-step:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
}

/* ===== 增強響應式設計 ===== */

/* 大平板 (1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-cards {
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* 小平板 (768px) - 補充樣式 */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 60px 0;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .media-card {
    max-width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-card {
    max-width: 100%;
  }

  .institutes-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer {
    padding: 32px 0 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-bottom {
    padding-top: 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

/* 手機 (480px) - 補充樣式 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  section {
    padding: 48px 0;
  }

  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .feature-card,
  .audience-card {
    padding: 24px 16px;
  }

  .media-image {
    height: 180px;
  }

  .media-title {
    font-size: 16px;
  }

  .media-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .testimonial-card {
    padding: 20px 16px;
  }

  .testimonial-text {
    font-size: 14px;
  }

  .award-card {
    padding: 24px 16px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-title {
    font-size: 18px;
  }

  .pricing-price .amount {
    font-size: 36px;
  }

  .faq-item {
    padding: 20px 16px;
  }

  .faq-question {
    flex-direction: column;
    gap: 12px;
  }

  .faq-answer {
    padding-left: 0;
  }

  .faq-question h3 {
    font-size: 16px;
    padding-top: 0;
  }

  .footer {
    padding: 24px 0 12px;
  }

  .footer-column h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-column p,
  .footer-column a {
    font-size: 13px;
  }

  .footer-item {
    gap: 6px;
    padding: 3px 0;
  }

  .footer-icon {
    width: 16px;
    height: 16px;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* 超小螢幕 (360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .pricing-price .amount {
    font-size: 32px;
  }
}

/* 橫向手機 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
  }
}

/* 高解析度螢幕優化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .footer-icon,
  .contact-icon {
    image-rendering: -webkit-optimize-contrast;
  }
}
