:root {
  --primary-color: #1565c0;
  --primary-light: #3b83dc;
  --primary-dark: #0d47a1;
  --accent-color: #ff8f00;
  --text-color: #333333;
  --text-light: #757575;
  --bg-color: #ffffff;
  --bg-light: #f5f8fa;
  --bg-dark: #e9eef2;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --max-width: 1280px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 導航列 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

/* 英雄區塊 */
.hero {
  padding: 120px 0 80px;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color);
  min-height: 7.2rem;
}

.hero h1 span {
  color: var(--primary-color);
  display: block;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
  min-height: 4.5rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  max-width: 650px;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
  z-index: 1;
}

@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 部分區塊樣式 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* 卡片樣式 */
.card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 服務卡片網格 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.service-card {
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: white;
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* 聯絡區塊 */
.contact-cta {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.contact-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-cta .btn {
  background-color: white;
  color: var(--primary-color);
}

.contact-cta .btn:hover {
  background-color: var(--bg-light);
}

/* 頁腳 */
.footer {
  background-color: #1a1a1a;
  color: #f5f5f5;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-info {
  grid-column: span 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer p {
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-nav h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: #aaa;
  transition: var(--transition);
}

.footer-nav ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #aaa;
}

.footer-contact ul li i {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: white;
}

/* 響應式設計 */
@media (max-width: 1100px) {
  .hero-content {
    max-width: 50%;
  }
  .hero-image {
    width: 45%;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-info {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    transform: translateY(-200%);
    transition: 0.3s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .hero {
    padding: 150px 0 100px;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto 80px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    position: relative;
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-info,
  .footer-contact {
    grid-column: span 2;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-info,
  .footer-nav,
  .footer-contact {
    grid-column: span 1;
  }
}

/* 客戶評價區塊 */
.testimonials {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.testimonial-card {
    padding: 25px;
    border-radius: var(--border-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.7;
    display: block;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* 產業優勢區塊 */
.industry-focus {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.industry-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0wIDBoNjB2NjBIMHoiLz48cGF0aCBkPSJNMzYgMzRoLTJWMTZoMTZ2MmgtMnYxNmgydjEwSDM2di0xMHptLTQtMTZoLTd2MmgydjE2aC0ydjJoMTB2LTJoLTN2LTE4eiIgZmlsbC1vcGFjaXR5PSIuMDUiIGZpbGw9IiMxNTY1YzAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=');
    opacity: 0.2;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.7;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.2);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--primary-dark);
    position: relative;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-direction: column;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* 影片模態對話框樣式 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    align-items: center; /* 垂直置中 */
    justify-content: center; /* 水平置中 */
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px; /* 影片播放器通常較寬 */
    margin: auto; /* 自動邊距實現居中 */
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.video-modal-close:hover {
    color: var(--text-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    background-color: black;
    border-radius: var(--border-radius);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Podcast 模態對話框特定樣式 */
#podcastModal .video-modal-content { /* 沿用並覆寫 */
    max-width: 600px; /* Podcast 播放器不需要太寬 */
}

.podcast-container {
    text-align: center;
}

.podcast-container h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.podcast-container p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.podcast-container audio {
    width: 100%;
    margin-top: 10px;
    border-radius: var(--border-radius);
    outline: none; /* 移除預設的外框 */
}

/* 移除 WebKit 瀏覽器中 audio 元素的預設下載按鈕 */
.podcast-container audio::-webkit-media-controls-enclosure {
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
}

.podcast-container audio::-webkit-media-controls-panel {
    /* 可在此調整控制面板的樣式 */
}

.unmute-notice {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    display: none;
    align-items: center;
    z-index: 10;
}

.unmute-notice button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
} 