/**
 * 全速科技官方網站 - 主要樣式
 * @version 1.0.0
 * @date 2026-01-08
 */

/* CSS Variables */
:root {
  --site-blue-color: #004289;
  --site-yellow-color: #f0ca22;
  --primary-color: #004289;
  --primary-dark: #004289;
  --secondary-color: #f0ca22;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  /* 標題字體大小 */
  --section-title-size: 2.5rem;
  --section-bg-blue: #e8f4fd;
}

/* 首頁標題統一大小 */
.section-title,
.certificate-title,
.parallax-content h2,
.about-text h2,
.contact-info h2 {
  font-size: var(--section-title-size);
}

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

a:hover {
  text-decoration: none;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family:
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* 錨點滾動偏移 - 避免被固定導航列遮住 */
section[id],
.section[id] {
  scroll-margin-top: 100px;
}

/* 深藍字色群組設定 */
.contact-item h4,
.contact-item p,
.contact-info > p,
.service-card p,
.service-card p {
  color: var(--site-blue-color);
}

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

.site-btn {
  padding: 8px 16px;
  background: var(--site-yellow-color) !important;
  color: var(--site-blue-color) !important;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.site-btn:hover {
  background: var(--site-blue-color) !important;
  color: var(--site-yellow-color) !important;
  transform: translateY(-2px);
}

.feature-title h3,
.service-card h3 {
  font-size: 1.4rem !important;
}

.hero .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 5px 0;
  font-size: 0.875rem;
}

.top-bar-inner {
  padding-left: 0;
  padding-right: 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 60px;
  align-items: center;
}

.top-bar-contact a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-contact a:hover {
  color: var(--secondary-color);
}

.top-bar-cta {
  display: none;
}

/* Header */
.header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 65px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

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

/* Navigation CTA Button */
.nav .nav-cta-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav .nav-cta-btn::after {
  display: none;
}

.nav .nav-cta-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle .material-icons-outlined {
  font-size: 1.125rem;
  transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle .material-icons-outlined {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  margin-top: 15px;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  transform: none;
  border: 5px solid transparent;
  border-bottom-color: var(--white);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  margin-right: 15px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 124px;
  background: url("../images/hero-bg.jpg") right calc(100% + 60px) / cover
    no-repeat;
}

.hero-text {
  margin-top: -120px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-text h1 span {
  color: var(--secondary-color);
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow:
    1px 1px 6px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 66, 138, 0.4);
}

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

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

.hero-visual {
  display: none;
}

.hero-icon {
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px dashed rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.hero-illustration {
  width: 280px;
  height: 280px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Section Common */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: left;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
}

/* Services Section */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.service-card::before {
  display: none;
}

.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(0, 66, 138, 0.25);
}

.service-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--secondary-color);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon .material-icons-outlined {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service-text {
  flex: 1;
}

.service-card h3 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 600;
}

/* News Section - Hidden */
.news {
  display: none;
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f4fd 100%);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 20px;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-card-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-card-content {
  padding: 30px;
}

.news-card-date {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.5;
  margin-top: 15px;
}

.news-card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}

.news-card-link:hover {
  gap: 10px;
}

/* News List Section */
.news-section {
  background: var(--white);
}

.news-section .section-header {
  text-align: left;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 66, 138, 0.15);
}

.news-item-image {
  width: 200px;
  min-width: 200px;
  position: relative;
  padding-bottom: 112.5px; /* 16:9 比例 (200 * 9/16 = 112.5) */
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.news-item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-item:hover .news-item-image img {
  transform: scale(1.1);
}

.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.news-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  min-width: 0;
}

.news-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.4;
  flex: 1;
  transition: var(--transition);
}

.news-item-date {
  font-size: 0.875rem;
  color: var(--site-blue-color);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 7px;
}

.news-item-excerpt {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Clients Logo Section */
.clients {
  background: #e8f4fd;
  padding: 70px 0;
}

.clients .section-header {
  text-align: left;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  transition: var(--transition);
  background: var(--white);
  border-radius: var(--radius-sm);
  min-height: 90px;
}

.client-logo:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.client-logo img {
  object-fit: contain;
}

.clients-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.clients-nav-btn.prev {
  left: 10px;
}

.clients-nav-btn.next {
  right: 10px;
}

.clients-nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.clients-nav-btn .material-icons-outlined {
  font-size: 1.5rem;
}

/* Parallax Section */
.parallax-section {
  position: relative;
  padding: 70px 0;
  background:
    linear-gradient(rgba(0, 66, 138, 0.85), rgba(0, 51, 102, 0.9)),
    url("../images/parallax-bg.jpg") center/cover no-repeat fixed;
  color: var(--white);
  text-align: center;
}

.parallax-content h2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.parallax-content p {
  font-size: 1.25rem;
  max-width: 100%;
  margin: 0 0 30px 0;
  color: var(--white);
}

/* Tech Sharing Section */
.tech-sharing {
  background: var(--bg-light);
}

.tech-sharing .section-header {
  text-align: left;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding-bottom: 30px;
}

.tech-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tech-card:hover {
  box-shadow: 0 5px 15px rgba(0, 66, 138, 0.2);
}

.tech-card-image {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  overflow: hidden;
  flex-shrink: 0;
}

.tech-card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.tech-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tech-card:hover .tech-card-image img {
  transform: scale(1.1);
}

.tech-card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tech-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 6px;
}

.tech-card-excerpt {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.tech-card-date {
  font-size: 0.875rem;
  color: var(--site-blue-color);
  margin-top: auto;
}

.tech-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.tech-nav-btn.prev {
  left: 10px;
}

.tech-nav-btn.next {
  right: 10px;
}

.tech-nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.tech-more-link-wrapper {
  text-align: center;
  margin-top: 30px;
}

.tech-more-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tech-more-link:hover {
  color: var(--primary-dark);
}

/* Testimonials Section */
.testimonials {
  background: var(--white);
}

.testimonials .section-header {
  text-align: left;
  margin-bottom: 30px;
}

.testimonials .section-title {
  margin-bottom: 5px;
}

.testimonials .section-subtitle {
  margin-bottom: 0;
}

.testimonial-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 25px;
  height: 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 66, 138, 0.2);
  background: var(--white);
}

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

.testimonial-content {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 0;
  flex: 1;
  overflow-y: auto;
}

.testimonial-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-logo img {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Features Section */
.features,
.news-section {
  background: #e8f4fd;
}

.features .section-header {
  text-align: left;
}

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

.feature-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.feature-title {
  background: var(--secondary-color);
  padding: 20px 25px;
  order: 1;
  position: relative;
  z-index: 20;
}

.feature-title h3 {
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  text-align: center;
}

.feature-image {
  width: 100%;
  height: auto;
  order: 2;
}

.feature-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-item:hover .feature-image img {
  transform: scale(1.05);
}

.feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 66, 138, 0.95);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.4s ease;
  z-index: 10;
}

.feature-item:hover .feature-overlay {
  opacity: 1;
  transform: translateY(0);
}

.feature-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: left;
}

.feature-overlay p {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-color);
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

/* Certificate Section */
.certificate {
  background: #f9f9f9;
  padding: 60px 0 0 0;
}

.certificate-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.certificate-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 0;
}

.certificate-wrapper {
  width: 100%;
}

.certificate-image {
  width: 100%;
  display: block;
}

/* About Section */
.about {
  position: relative;
  padding: 70px 0;
  background: var(--primary-color);
  color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.about-text h2 span {
  color: var(--secondary-color);
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 2;
  margin-bottom: 30px;
}

.about-list {
  list-style: none;
  padding-left: 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-list li:last-child {
  border-bottom: none;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card h4 {
  font-size: 1.125rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 1.0625rem;
}

.stat-number,
.stat-label {
  color: var(--site-yellow-color);
  font-weight: 700;
}

/* Contact Section */
.contact {
  background: var(--bg-light);
}

.contact label,
.contact p,
.contact .checkbox-item label {
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.contact-info > p {
  font-size: 1.0625rem;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-icon .material-icons-outlined {
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.contact-item p {
  font-size: 1rem;
  margin: 0;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checkbox-item label {
  font-size: 0.9375rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Captcha */
.captcha-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.captcha-image {
  background: #e1e8ed;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--primary-color);
  user-select: none;
}

.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.captcha-input {
  flex: 1;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e8ed;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--site-yellow-color);
  color: var(--site-blue-color);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--site-blue-color);
  color: var(--site-yellow-color);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.8;
  font-weight: 600;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.footer-bottom p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a:hover {
  color: var(--site-yellow-color);
}

.uk-slider-items {
  gap: 10px;
  padding-bottom: 10px;
}

/* Slider Navigation Arrows - 使用 Material Symbols 直角箭頭 */
.uk-slidenav {
  background: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

/* 隱藏 UIkit 預設的 SVG */
.uk-slidenav svg {
  display: none !important;
}

/* 使用 Material Symbols 的直角箭頭 */
.uk-slidenav::before {
  font-family: "Material Symbols Outlined";
  font-size: 28px;
  color: white;
  font-weight: 600;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 24;
  transition: var(--transition);
}

/* 前一個按鈕：arrow_back_ios */
.uk-slidenav[uk-slidenav-previous]::before {
  content: "arrow_back_ios";
  margin-left: 9px; /* 微調置中 */
}

/* 下一個按鈕：arrow_forward_ios */
.uk-slidenav[uk-slidenav-next]::before {
  content: "arrow_forward_ios";
  margin-left: 2px; /* 微調置中 */
}

/* Hover 狀態 */
.uk-slidenav:hover {
  background: var(--secondary-color);
}

.uk-slidenav:hover::before {
  color: var(--primary-color);
}

/* Off-canvas Mobile Menu */
.offcanvas-nav {
  background: #ffffffc2;
}

.offcanvas-nav .uk-offcanvas-bar {
  background: var(--white);
  padding: 30px 25px;
  width: 280px;
}

.offcanvas-nav .uk-offcanvas-close {
  color: var(--text-color);
  top: 20px;
  right: 20px;
}

.offcanvas-logo {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.offcanvas-logo img {
  height: 40px;
}

.offcanvas-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.offcanvas-menu a {
  display: block;
  padding: 15px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.offcanvas-menu a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.offcanvas-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.offcanvas-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.offcanvas-contact .material-icons-outlined {
  font-size: 1.125rem;
  color: var(--primary-color);
}

.offcanvas-cta {
  margin-top: 25px;
}

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

/* Off-canvas Submenu */
.offcanvas-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas-submenu-toggle .material-icons-outlined {
  font-size: 1.25rem;
  transition: var(--transition);
}

.offcanvas-submenu-parent.active
  .offcanvas-submenu-toggle
  .material-icons-outlined {
  transform: rotate(180deg);
}

.offcanvas-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
}

.offcanvas-submenu-parent.active .offcanvas-submenu {
  max-height: 400px;
  margin-top: 10px;
}

.offcanvas-submenu li {
  border-bottom: 1px solid #eee;
}

.offcanvas-submenu li:last-child {
  border-bottom: none;
}

.offcanvas-submenu a {
  padding: 12px 20px;
  font-size: 0.9375rem;
}

.uk-dotnav > * > * {
  background: #ccc;
}

.uk-dotnav > .uk-active > * {
  background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1300px) {
  .hero-visual {
    display: none;
  }
  .hero-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px 30px;
  }
}

/* 導航列 RWD - 960px 切換為漢堡選單 */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 15px;
  }
  .nav.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    padding: 10px 15px;
    margin-top: 10px;
  }
  .nav-cta-btn {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .top-bar-contact {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header {
    top: 0;
  }
  .hero {
    padding-top: 80px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-icon {
    width: 250px;
    height: 250px;
  }
  .shield-icon {
    font-size: 5rem;
  }
  .section-title,
  .certificate-title,
  .parallax-content h2,
  .about-text h2,
  .contact-info h2 {
    font-size: 2rem;
  }
  .news-item {
    flex-direction: column;
  }
  .news-item-image {
    width: 100%;
    min-width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
  }
  .news-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .about-text {
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
  .parallax-section,
  .about {
    background-attachment: scroll;
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .tech-card-image {
    height: 150px;
  }
  .tech-card-content {
    padding: 15px;
  }
  .tech-card-title {
    font-size: 1rem;
  }
  .hero-text h1 {
    white-space: normal;
    font-size: 2.5rem;
  }
  .certificate-title {
    font-size: 1.75rem;
  }
  .certificate-subtitle {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .btn {
    padding: 12px 25px;
    font-size: 0.9375rem;
  }
  .section-title,
  .certificate-title,
  .parallax-content h2,
  .about-text h2,
  .contact-info h2 {
    font-size: 1.75rem;
  }
  .news-item-title {
    font-size: 1rem;
  }
  .news-item-excerpt {
    font-size: 0.9375rem;
  }
  .service-card {
    padding: 30px 20px;
  }
  .contact-form {
    padding: 25px;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .tech-card-image {
    height: 180px;
  }
  .certificate-subtitle {
    font-size: 1rem;
  }
  .certificate {
    padding: 40px 0 0 0;
  }
}
