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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  line-height: 1.6;
  color: #202020;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2 {
  font-weight: 700;
}

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

header {
  background: #FF6100;
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 70px;
  width: auto; 
  max-width: 100%;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-menu .bar {
  width: 2rem;
  height: 0.25rem;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FF6100;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 5;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav li {
  margin: 2rem 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem;
}

.hero {
  background: #FF6100;
  color: white;
  padding: 0rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  text-align: left;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.3rem;
  opacity: 0.9;
}

.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.hero-image {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
}

.color-part {
  color: black;
}
.color-part2 {
  color: orange;
}

.video-section {
  padding: 4rem 0;
  background: #ffffff;
}

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

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

.intro-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.intro-content {
  text-align: center;
  max-width: 830px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-content .title-logo {
  max-width: 180px;
  height: auto;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.intro-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.services-section {
  padding: 4rem 0;
  background: white;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.heading-section .services-header {
  margin-bottom: 0;
}

.services-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #FF6100;
}

.service-number {
  color: #FF6100;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

.learn-more-btn, .cta-btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
  min-height: 44px;
  line-height: normal;
  text-align: center;
}

.learn-more-btn {
  background: #202020;
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
}

.learn-more-btn:hover {
  background: #444;
}

.cta-btn {
  background: white;
  color: #FF6100;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background-color: #f0f0f0;
}

.detail-section {
  padding: 4rem 0;
}

.detail-section:not(.circles-section) {
  border-bottom: 1px solid #eee;
}

.detail-section:nth-of-type(even) {
  background: #f8f9fa;
}

.circles-section {
  background: #f8f9fa;
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.detail-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.detail-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: #FF6100;
}

.detail-content p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.detail-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style-position: outside;
}

.detail-content li {
  margin-bottom: 0.5rem;
  color: #555;
}

.cta-section {
  background: #FF6100;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

footer {
  background: #202020;
  color: white;
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #FF6100;
}

.footer-section p {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

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

.footer-section a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #FF6100;
}

.footer-section .logo-img {
  width: 100%;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: #888;
}
a {
  color: inherit;
  text-decoration: none; 
  border-bottom: 2px solid #FF6100; 
  padding-bottom: 1px;
}
a:hover { 
  border-bottom-width: 3px;
} 

.container1 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  text-align: center;
}

.circle1 {
  width: 200px;
  height: 200px;
  background-color: #FF6100;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  text-align: center;
  margin-bottom: 20px;
}

.circle-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2;
}

.circle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.circle-list li {
  background: white;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  color: #555;
  position: relative;
  padding-left: 30px;
}

.circle-list li:before {
  content: "•";
  position: absolute;
  left: 12px;
  color: #FF6100;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 768px) {
  .container1 {
    gap: 30px;
  }

  .circle-item {
    max-width: 250px;
  }

  .circle1 {
    width: 180px;
    height: 180px;
  }

  .circle-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container1 {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .circle-item {
    max-width: 280px;
  }

  .circle1 {
    width: 160px;
    height: 160px;
  }

  .circle-text {
    font-size: 15px;
  }
}

#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #FF6100;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 18px;
}

#back-to-top-btn:hover {
  background-color: #555;
}

/* === RESPONSIVE STYLES === */

@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* For smaller mobile phones */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-image {
    max-width: 280px;
  }

  .intro-content h2, .services-header h2, .cta-section h2 {
    font-size: 2rem;
  }

  .detail-content h2 {
    font-size: 1.8rem;
  }

  .logo-img {
    height: 60px;
  }

  .mobile-nav a {
    font-size: 1.8rem;
  }
}




header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-panel {
  position: absolute;
  min-width: 120px;
  background: linear-gradient(to bottom, #FF8033, #FF6100);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
  border-radius: 6px;
  padding: 0px 0;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-panel a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.dropdown-panel a:hover {
  color: #FFF5CC;
  padding-left: 20px;
}

.flowchart {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.mechianism-section ol {
  list-style: none !important;
  padding-left: 1.5rem;
}

.mechianism-section ol ol {
  list-style: none !important;
}

.subnav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.subnav .subnav-list {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav .subnav-link {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 18px;
  color: #7EBAC9;
  font-weight: 500;
  transition: color .2s ease;
}

.subnav .subnav-link:hover {
  color: #9BBF88;
}

.subnav .subnav-item.active .subnav-link {
  color: #9BBF88 !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
th, td {
  text-align: left;
  vertical-align: middle;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #5F6368;
}

th {
   background-color: #E0E0E0;
   color: #3C4043;
   font-weight: 600;
}

.stat-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(10,10,10,0.3);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 1rem;
  color: #5F6368;
  font-weight: 500;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card:nth-child(1) .stat-number {
  color: #FF8033;
}
.stat-card:nth-child(2) .stat-number {
  color: #202020;
}
.stat-card:nth-child(3) .stat-number {
  color: #BBDAAC;
}
.stat-card:nth-child(4) .stat-number {
  color: #AEDCE7;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.data-card {
  margin-bottom: 2rem;
}
.data-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3C4043;
  margin-bottom: 0.5rem;
}
.multi-bar {
  display: flex;
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.chart-container {
  position: relative;
  width: 100%;
  height: auto !important;
  margin-bottom: 1.5rem;
  margin: 0 auto 1.5rem;
}
.pie-chart-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto 1.5rem;
}
.pie-chart-container canvas { 
  width: 400px !important;
  height: 400px !important;
  display: block;
}
.pie2-chart-container {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto 1.5rem;
}
.hist-chart-container canvas { 
  width: 600px !important;
  height: 300px !important;
  display: block;
}
.hist-chart-container {
  position: relative;
  width: 600px;
  height: 300px;
  margin: 0 auto 1.5rem;
}
.pie2-chart-container canvas { 
  width: 500px !important;
  height: 500px !important;
  display: block;
}
.percentage-cell {
  position: relative;
}
.percentage-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255,97,0,0.1);
}
.percentage-text {
  position: relative;
  z-index: 1;
  padding-left: 8px;
}
#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #FF6100;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 18px;
}
#back-to-top-btn:hover {
  background-color: #555;
}
#back-to-top-btn.show { display: block; }
#back-to-top-btn { z-index: 9999; }

.nav-links .nav-link {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}