body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* 導覽列樣式 */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3d1fa3 !important;
}

/* 主要色彩 */
.text-primary, a {
  color: #3d1fa3 !important;
}

.btn-primary, .bg-primary {
  background: #3d1fa3 !important;
  border-color: #3d1fa3 !important;
  color: white !important;
}

.btn-outline-primary {
  color: #3d1fa3 !important;
  border-color: #3d1fa3 !important;
}

.btn-outline-primary:hover {
  background: #3d1fa3 !important;
  color: white !important;
}

/* Hero 區塊 */
.hero-section {
  padding-top: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* 左側裝飾性幾何元素 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(61, 31, 163, 0.15) 0%, 
    rgba(61, 31, 163, 0.08) 50%, 
    transparent 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  animation: slideInLeft 1.5s ease-out;
  z-index: 1;
}

/* 右側裝飾性幾何元素 */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(173, 181, 189, 0.12) 50%, 
    rgba(173, 181, 189, 0.18) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  animation: slideInRight 1.5s ease-out 0.3s both;
  z-index: 1;
}

/* 左側滑入動畫 */
@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 右側滑入動畫 */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 標題動畫 */
.animate-title {
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* 文字動畫 */
.animate-text {
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* 按鈕動畫 */
.animate-buttons {
  animation: fadeInUp 1s ease-out 1.1s both;
}

/* 圖片動畫 */
.animate-image {
  animation: fadeInScale 1.2s ease-out 0.3s both;
}

/* 從下方淡入動畫 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 圖片縮放淡入動畫 */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 當有背景圖片時的樣式 */
.hero-section[style*="background-image"] {
  background: none !important;
  background-image: inherit !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-image {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.hero-image img {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 15px 15px 15px 5px;
}

.hero-image:hover img {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* 小幾何圖案裝飾 */
.hero-image::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(61, 31, 163, 0.1) 0%, rgba(61, 31, 163, 0.05) 100%);
  border-radius: 50%;
  z-index: 4;
  animation: fadeInScale 1s ease-out 1.5s both;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 5px;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, rgba(173, 181, 189, 0.08) 0%, rgba(173, 181, 189, 0.03) 100%);
  border-radius: 50%;
  z-index: 4;
  animation: fadeInScale 1s ease-out 1.8s both;
}

/* 確保內容在動畫圓圈之上 */
.hero-section .container {
  position: relative;
  z-index: 3;
}

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

/* Hero 背景裝飾圖片 */
.hero-bg-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  border-radius: 12px;
  opacity: 0.1;
  filter: blur(1px);
  transition: all 0.3s ease;
}

.hero-bg-1 {
  top: 10%;
  right: 10%;
  width: 200px;
  height: 150px;
  object-fit: cover;
}

.hero-bg-2 {
  bottom: 20%;
  left: 5%;
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.hero-bg-3 {
  top: 50%;
  right: 5%;
  width: 160px;
  height: 100px;
  object-fit: cover;
}

/* 服務卡片 */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: block;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  color: inherit;
  text-decoration: none;
}

/* 確保連結內的文字顏色保持原樣 */
a .service-card {
  color: inherit;
}

a:hover .service-card {
  color: inherit;
  text-decoration: none;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* 焦點主題卡片 */
.topic-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.topic-icon {
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #3d1fa3;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
  background: #3d1fa3;
  color: white;
}

/* 最新消息列表 */
.news-list {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
  gap: 1rem;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin: 0 -1rem;
}

.news-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-date {
  font-weight: 600;
  color: #3d1fa3;
  font-size: 0.9rem;
}

.news-content {
  color: #333;
  font-weight: 500;
}

/* 聯絡資訊 */
.contact-info {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info i {
  font-size: 1.2rem;
  width: 24px;
}

.contact-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-image img {
  transition: transform 0.3s ease;
}

.contact-image:hover img {
  transform: scale(1.02);
}

/* 響應式設計 */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 3rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-bg-img {
    display: none;
  }
}

@media (max-width: 767px) {
  .navbar-brand img {
    height: 32px;
  }
  
  .service-card, .topic-card {
    margin-bottom: 1rem;
  }
  
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .news-image {
    width: 100%;
    height: 120px;
  }
  
  .news-content-wrapper {
    width: 100%;
  }
  
  .news-date {
    min-width: auto;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* 按鈕樣式 */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.75rem 2rem;
}

/* 背景色 */
.bg-light {
  background-color: #f8f9fa !important;
}

/* 文字樣式 */
.display-6 {
  font-weight: 700;
}

.lead {
  font-weight: 400;
  color: #6c757d;
}

.text-muted {
  color: #6c757d !important;
} 

/* 聯絡卡片 */
.contact-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

/* 資訊卡片 */
.info-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 關於頁面樣式 */
.about-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 3rem;
  transition: all 0.3s ease;
}

.about-card:hover .about-icon {
  transform: scale(1.1);
}

/* 特色卡片 */
.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* 服務頁面樣式 */
.service-detail-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* 價格頁面樣式 */
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

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

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3d1fa3;
}

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

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: #3d1fa3;
  margin-right: 0.5rem;
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3d1fa3, #5a2fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.pricing-card:hover .pricing-icon {
  transform: scale(1.1);
}

/* 響應式設計補充 */
@media (max-width: 767px) {
  .about-content {
    padding: 1.5rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .service-detail-card {
    padding: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
}

/* 巢狀下拉選單樣式 */
.dropdown-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-top: -1px;
  display: none;
}

.dropdown-item.dropdown-toggle:hover + .dropdown-submenu,
.dropdown-submenu:hover {
  display: block;
}

.dropdown-item.dropdown-toggle::after {
  content: "▶";
  margin-left: 0.5em;
  font-size: 0.8em;
}

/* 確保下拉選單在桌面版正確顯示 */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
  
  .dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
    display: none;
  }
  
  .dropdown-item.dropdown-toggle:hover + .dropdown-submenu,
  .dropdown-submenu:hover {
    display: block;
  }
}

/* 相關連結下拉選單樣式 */
#linksDropdown + .dropdown-menu {
  min-width: 300px;
  max-width: 400px;
  width: auto;
}

#linksDropdown + .dropdown-menu .dropdown-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  margin: 2px 4px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

#linksDropdown + .dropdown-menu .dropdown-item:hover {
  background-color: #3d1fa3 !important;
  color: white !important;
  transform: translateX(5px);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  z-index: 1000;
  min-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
} 