/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #1f5bff;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, .font-primary {
  font-family: "Raleway", sans-serif;
}


/*--------------------------------------------------------------
#  彈跳視窗
--------------------------------------------------------------*/
/* 彈跳視窗樣式 */
.modal {
  display: none; /* 預設隱藏 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
  animation: fadeIn 0.5s; /* 背景淡入動畫 */
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 25% auto;
  padding: 30px;
  width: 80%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s; /* 彈窗下滑動畫 */
  font-family: 'Open Sans', sans-serif; /* 使用 Google 字體 */
  text-align: center;
}

.modal-content h2 {
  font-size: 24px;
  color: #333333;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 18px;
  color: #555555;
  margin-bottom: 20px;
}


.modal-content button {
  background-color: #6d6d6d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button:hover {

  background-color: #6d6d6d;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 40px; /* 按鈕間距 */
  margin-top: 20px;
}

.modal-content .login-button {
  display: inline-block;
  background: linear-gradient(135deg, #6277a3, #2575fc); /* 按鈕漸層背景 */
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 18px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(95, 91, 100, 0.5); /* 按鈕光暈效果 */
}

.modal-content .login-button:hover {
  transform: translateY(-3px); /* 懸浮時向上移動 */
  box-shadow: 0 4px 10px rgba(95, 91, 100, 0.5); /* 按鈕光暈效果 */
 
  color: white; /* 確保懸停時文字為白色 */
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #aaaaaa;
  cursor: pointer;
}

.close:hover {
  color: #333333;
}

/* 動畫效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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





/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #494749;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #ee7843;
  color: #fff;
}

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

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 72px;
  transition: all 0.5s;
  z-index: 997;
  transition: all 0.5s;
  background: #fff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo h1 {
  font-size: 30px;
  margin: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
}

#header .logo h1 a, #header .logo h1 a:hover {
  color: #7a6960;
  text-decoration: none;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 60px;
}

#main {
  margin-top: 72px;
  flex: 1; /* 讓主要內容區域填滿剩餘空間 */
 
  
  
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  color: #4e4039; 
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: #5a5959;    /*首頁home顏色*/
}

.navbar .getstarted {
  background: #6769e8;
  color: #fff;
  padding: 10px 25px;
  margin-left: 30px;
  border-radius: 50px;
  border: 2px solid #fff; /* 外框顏色為白色，粗細為 2px */
}


.navbar .getstarted:hover {
  color: #ffffff;
  background: #638adf;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: #eb5d1e;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover > ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #7a6960;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  margin-left: 10px; /* 保持左側間距 */
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(58, 54, 54, 0.9); /* 透明灰色 */
  transition: 0.3s;
}


.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 30px;
  bottom: 200px;
  left: 30px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
  border-radius: 8px; /* 新增圓角 */
}


.navbar-mobile a {
  padding: 10px 20px;
  font-size: 15px;
  color: #7a6960;
}

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a {
  color: #b838f3;
}

.navbar-mobile .getstarted {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: #eb5d1e;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}



/*--------------------------------------------------------------
# user 
--------------------------------------------------------------*/
.user-profile {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 5px 15px;
  margin-left: 20px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-left: 10px; /* 左邊留 10px 空間 */
 
}

.user-dropdown-container {
  position: relative; /* 讓下拉選單相對於此元素定位 */
  display: inline-block;
  cursor: pointer;
  border-radius: 30px; /* 保留圓角設定 */
  padding: 5px 16px;
  background-color: #f8f8f8; /* 保留背景色 */
  margin-left: 20px; /* 保持左側間距 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 保留陰影 */
  border: 1px solid #ddd; /* 淺灰色邊框 */
  margin-left: 20px;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px; /* 圖標與文字間距 */
  font-size: 16px;
  font-weight: bold;
  color: #333; /* 保留文字顏色 */
}

.user-dropdown-btn:hover {
  background: #f7f7f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user-dropdown-btn i {
  margin-right: 8px; /* 圖標與文字的間距 */
}

.user-name {
  font-size: 14px;
  font-weight: bold;
  color: #4d50c4;
}

/* 下拉選單樣式 */
.user-dropdown-menu {
  display: none; /* 默認隱藏 */
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
  min-width: 150px; /* 設置選單寬度 */
 
}

/* 選單項目樣式 */
.user-dropdown-menu-item {
  display: flex;
  align-items: center;
  padding: 5px 5px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s, color 0.3s;
  gap: 10px; /* 圖標與文字間距 */
}

.user-dropdown-menu-item i {
  font-size: 2rem; /* 圖標大小 */
  color: #4d50c4;
}

/* 彈出效果 */
.user-dropdown-container:hover .user-dropdown-menu {
  display: block; /* 懸停時顯示選單 */
}




/*--------------------------------------------------------------
# register
--------------------------------------------------------------*/
/* 確保 input-group 層級正確排列 */
.input-group {
  position: relative; /* 確保子元素可以定位 */
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 10px 40px 10px 10px; /* 增加右邊的 padding 以避免圖標重疊 */
  box-sizing: border-box;
}

.icon-right {
  position: absolute;
  right: 20px; /* 將圖標固定在右側 */

  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  cursor: pointer;
}



/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  background: #f3f0ff;
  border-bottom: 2px solid #fcebe3;
 
}

#hero h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 56px;
  color: #4e4039;
}

#hero h2 {
  color: #a08f86;
  margin: 15px 0 0 0;
  font-size: 24px;
}

.custom-title {
  font-size: 42px;  /* 設定字體大小 */
  font-weight: bold; /* 加粗文字 */
  text-align: center; /* 文字置中 */
  line-height: 36px;
  display: block; /* 讓 span 變成區塊級元素，獨占一行 */
  margin-bottom: 50px; /* 設定與下方元素的間距 */
}
.custom-title2 {
  font-size: 42px;  /* 設定字體大小 */
  font-weight: bold; /* 加粗文字 */
  text-align: center; /* 文字置中 */
  line-height: 36px;
  display: block; /* 讓 span 變成區塊級元素，獨占一行 */
  
}
.slogan-text {
  text-align: center;
  font-size: 20px; /* 或你想要的大小 */
  font-weight: 500; /* 可選：讓字稍微粗一點 */
  color: #333;      /* 可選：調整顏色 */
}



@media (max-width: 991px) {
  #hero {
    height: calc(60vh - 72px);
  }
  #hero .animated {
    -webkit-animation: none;
    animation: none;
  }
  #hero .hero-img {
    text-align: center;
  }
  #hero .hero-img img {
    width: 50%;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 22px;
    line-height: 36px;
    text-align: center; /* 文字置中 */
    margin-left: 0; /* 移除左邊距 */
    margin-right: 0; /* 確保不會有額外的右邊距 */
    margin-bottom: 20px;
}

  #hero h2 {
    font-size: 18px;
    line-height: 24px;
  }
  #hero .hero-img img {
    width: 70%;
  }
  .custom-title {
    font-size: 22px;  /* 設定字體大小 */
    font-weight: bold; /* 加粗文字 */
    text-align: center; /* 文字置中 */
    line-height: 36px;
    display: block; /* 讓 span 變成區塊級元素，獨占一行 */
    margin-bottom: auto; /* 設定與下方元素的間距 */
  }
  .custom-title2 {
    font-size: 22px;  /* 設定字體大小 */
    font-weight: bold; /* 加粗文字 */
    text-align: center; /* 文字置中 */
    line-height: 36px;
    display: block; /* 讓 span 變成區塊級元素，獨占一行 */
    
  }
}

@media (max-width: 575px) {
  #hero .hero-img img {
    width: 80%;
  }
}

@media (max-height: 600px) {
  #hero {
    height: calc(120vh);
  }
}

@-webkit-keyframes up-down {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes up-down {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 50px 0;

}

.section-bg5 {
  padding: 50px 0;
 
}

.section-bg {
  background-color: #fef8f5;
}

.section-bg2 {
  background-color: #f8f9fa;
}
.section-bg3 {
  padding: 30px 0;
  background-color: #f8f9fa;
}
.section-title {
  text-align: center;
  padding-bottom: 30px;
}
.section-title2 {
  text-align: center;
  padding-bottom: 10px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 0;
  line-height: 1px;
  margin-bottom: 15px;
  color: #000000;
}

.section-title p {
  padding-bottom: 15px;
  margin-bottom: 15px;
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: #4e4039;
}

.section-title p::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 2px;
  background: #eb5d1e;
  bottom: 0;
  left: calc(50% - 30px);
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.inner-page {
  padding: 0;
  margin: 0;
  height: 100vh;
  overflow: hidden;

}
.breadcrumbs {
  padding: 15px 0;
  background-color: #fef5f1;
  min-height: 40px;
}

.breadcrumbs h2 {
  font-size: 24px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #6c757d;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}
/*--------------------------------------------------------------
/*--------------------------------------------------------------
# 基本佈局
--------------------------------------------------------------*/

.content-wrapper {
  display: flex; /* Flexbox 管理佈局 */
  align-items: flex-start; /* 垂直方向頂部對齊 */
  gap: 20px; /* 選單與主要內容之間的間距 */
  padding: 20px;
}

/*--------------------------------------------------------------
# 側邊選單樣式
--------------------------------------------------------------*/

/* 側邊選單樣式 */
.floating-menu {
  width: 500px;
  margin-top: 30px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 移除列表的點點樣式 */
.floating-menu ul {
  list-style-type: none; /* 移除點點 */
  padding: 0;
  margin: 0;
}

/* 子選單樣式 */
.floating-menu ul ul {
  list-style-type: none; /* 移除子選單的點點 */
  padding-left: 3px; /* 子選單縮進 */
}

.floating-main-title {
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  color: #333;
  transition: background-color 0.3s ease;
}

.floating-main-title:hover {
  background-color: #e6e6e6;
  border-radius: 5px;
}

.floating-hidden {
  display: none; /* 預設隱藏 */
  margin-left: 15px;
}

.floating-hidden.show {
  display: block; /* 顯示子選單 */
}

.floating-link {
  text-decoration: none;
  color: #007bff;
  font-size: 1em;
  padding: 8px;
  display: block;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.floating-link:hover {
  color: #0056b3;
  background-color: #f1f1f1;
  border-radius: 5px;
}


/*--------------------------------------------------------------
# 主要內容樣式
--------------------------------------------------------------*/

#portfolio-details {
  flex: none; /* 取消 flex 設置 */
  padding: 0;
}

.portfolio-details-slider img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.portfolio-details {
  padding: 20px;
  box-shadow: 0px 0 20px rgba(122, 105, 96, 0.08);
}

.portfolio-info {
  padding: 20px;
  box-shadow: 0px 0 20px rgba(122, 105, 96, 0.08);
  margin-top: 40px;
}

.portfolio-details .portfolio-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #6b6b6b;
}


/*--------------------------------------------------------------
# 響應式設計
--------------------------------------------------------------*/

/* 手機畫面：最大寬度 768px */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column; /* 選單與主要內容改為垂直排列 */
    gap: 10px; /* 水平間距縮小 */
  }

  .floating-menu {
    width: 100%; /* 滿屏寬 */
    margin-top: 0;
    padding: 10px; /* 減少內邊距 */
    border: none; /* 移除邊框 */
  }

  #portfolio-details {
    width: 100%; /* 確保主內容區域佔滿寬度 */
    flex: none; /* 取消 flex 設置 */
    margin-top: 20px; /* 主內容與選單之間的間距 */
  }

  .portfolio-details-slider img {
    max-width: 90%; /* 圖片縮小以適應小螢幕 */
  }

  textarea {
    width: 95%; /* 讓文字框在小螢幕下更寬 */
    height: 150px; /* 高度縮減 */
  }

  .portfolio-details .portfolio-info {
    padding: 15px; /* 減少資訊區域的內邊距 */
  }

  .portfolio-details .portfolio-info h3 {
    font-size: 18px;
  }

  button {
    padding: 8px 15px;
    font-size: 12px;
  }
}

/* 超小螢幕：最大寬度 480px */
@media (max-width: 480px) {
  .content-wrapper {
    padding: 10px; /* 減少父容器的內邊距 */
  }

  .floating-menu {
    width: 100%;
    margin-top: 0;
  }

  #portfolio-details {
    width: 100%; /* 確保主內容區域佔滿寬度 */
    flex: none; /* 取消 flex 設置 */
    margin-top: 10px;
  }

  .portfolio-details-slider img {
    max-width: 100%; /* 圖片寬度佔滿 */
  }

  textarea {
    width: 100%;
    height: 120px;
  }

  button {
    padding: 5px 10px;
    font-size: 10px;
  }

  .portfolio-details .portfolio-info {
    padding: 10px;
  }

  .portfolio-details .portfolio-info h3 {
    font-size: 16px;
  }
}
/*--------------------------------------------------------------
# quiz
--------------------------------------------------------------*/
.quiz-box {
  background-color: #e9e3f3;
  
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-top: 90px; /* 增加這行來下移元素 */
}


.quiz-box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  margin-top: 30px;
}

.quiz-box h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.quiz-box p {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center; /* 將文字置中 */
}


.additional-info {
  text-align: center; /* 將文字置中 */
  margin-top: 30px;
  font-size: 16px;
  padding: 10px; /* 保持內邊距讓內容易讀 */
  border: 1px solid #ccc; /* 設置框線 */
  border-radius: 20px; /* 圓角設置為 10px */
  background-color: #ffffff; /* 底色設置為白色 */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 添加陰影 */
  width: 70%; /* 設置寬度為父元素的 70%，你可以根據需要進一步調整 */
  max-width: 800px; /* 設置最大寬度為 800px，避免太大 */
  margin-left: auto; /* 讓框框水平居中 */
  margin-right: auto; /* 讓框框水平居中 */
}




.additional-info h4 {
  font-size: 25px;
  margin-top: 15px;
  margin-bottom: 10px;

}


.additional-info ul {
  list-style-type: disc;

}

.quiz-buttons a {
  margin: 10px;
  padding: 10px 20px;
  margin-top: 50px ;
  text-decoration: none;
  font-weight: bold;
}

.quiz-buttons .btn-primary {
  background-color: #51316e;
  color: white;
  border-radius: 20px;
  border: 1px solid black; /* 設置黑色邊框 */
  transition: all 0.3s ease; /* 添加過渡效果，使特效變得順滑 */
}

.quiz-buttons .btn-primary:hover {
  background-color: #6a428a; /* 懸停時改變背景顏色 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 添加陰影效果 */
  transform: scale(1.05); /* 讓按鈕在懸停時微微放大 */
}

.quiz-buttons .btn-secondary {
  background-color: #424242;
  color: white;
  border-radius: 20px;
  border: 1px solid black; /* 設置黑色邊框 */
  transition: all 0.3s ease; /* 添加過渡效果，使特效變得順滑 */
}

.quiz-buttons .btn-secondary:hover {
  background-color: #5a5a5a; /* 懸停時改變背景顏色 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 添加陰影效果 */
  transform: scale(1.05); /* 讓按鈕在懸停時微微放大 */
}


/* 針對手機設備的響應設計 */
@media (max-width: 768px) {
  .quiz-box {
    padding: 20px; /* 減少內邊距，適應小螢幕 */
    border-radius: 15px; /* 減少圓角，保持視覺整潔 */
    margin-top: 40px; /* 減少上方距離，適應螢幕 */
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* 減少陰影 */
  }

  .quiz-box h3 {
    font-size: 20px; /* 縮小標題字體大小 */
    margin-bottom: 5px; /* 減少標題底部的距離 */
  }

  .quiz-box p {
    font-size: 18px; /* 縮小段落字體大小 */
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .additional-info {
    font-size: 14px; /* 減小字體大小，適應小螢幕 */
    padding: 10px; /* 減少內邊距 */
    width: 90%; /* 增加寬度以更好地適應手機屏幕 */
    max-width: none; /* 移除最大寬度限制 */
    margin-top: 20px; /* 減少上方距離 */
  }

  .additional-info h4 {
    font-size: 24px; /* 減小標題字體大小 */
    margin-top: 20px;
    margin-bottom: 5px;
  }

  .quiz-buttons a {
    margin: 5px;
    padding: 8px 15px; /* 減少按鈕內邊距 */
    font-size: 16px; /* 縮小按鈕字體大小 */
    margin-top: 20px; /* 減少按鈕之間的距離 */
  }

  .quiz-buttons .btn-primary, .quiz-buttons .btn-secondary {
    border-radius: 30px; /* 減少按鈕圓角 */
  }

  .quiz-buttons .btn-primary:hover, .quiz-buttons .btn-secondary:hover {
    transform: scale(1.03); /* 減少懸停時的放大效果 */
  }

  .additional-info ul {
    list-style-type: none; /* 移除手機上不必要的列表樣式 */
    padding-left: 0; /* 移除左側內縮 */
  }
}


/* 針對橫向平板的響應設計 */
@media (min-width: 768px) and (max-width: 1024px) {
  .quiz-box {
    padding: 40px; /* 增加內邊距讓內容不顯擁擠 */
    border-radius: 20px; /* 保持較大的圓角，提供平板視覺效果 */
    margin-top: 30px; /* 調整上方距離以適應橫向視圖 */
  }
  .quiz-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .quiz-box h3 {
    font-size: 26px; /* 略微增大標題字體以適應平板橫向 */
    margin-bottom: 15px; /* 增加下方距離 */
  }

  .quiz-box p {
    font-size: 22px; /* 略微增大段落字體 */
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .additional-info {
    font-size: 18px; /* 調整文字大小，使其在橫向平板上更清晰 */
    padding: 20px; /* 增加內邊距，讓框內文字更易閱讀 */
    width: 80%; /* 增加寬度以更好地適應平板寬屏 */
    margin-top: 10px; /* 調整上方距離 */
    margin-left: auto;
    margin-right: auto;
  }

  .additional-info h4 {
    font-size: 28px; /* 調整標題字體大小以適應橫向顯示 */
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .quiz-buttons a {
    margin: 15px;
    padding: 12px 25px; /* 增加按鈕的內邊距，使其更容易點擊 */
    font-size: 18px; /* 略微增大按鈕字體大小 */
  }

  .quiz-buttons .btn-primary, .quiz-buttons .btn-secondary {
    border-radius: 20px; /* 保持圓角設置 */
    border: 1px solid black; /* 設置黑色邊框 */
  }

  .quiz-buttons .btn-primary:hover, .quiz-buttons .btn-secondary:hover {
    transform: scale(1.08); /* 增加懸停時的放大效果，使按鈕更顯著 */
  }

  .additional-info ul {
    list-style-type: disc; /* 確保列表顯示合適 */
    padding-left: 20px; /* 調整左側內縮 */
  }
}





/*--------------------------------------------------------------
# Test
--------------------------------------------------------------*/
/* 基本樣式不變，會適應桌面尺寸 */
.test {
  padding: 30px;
  margin: 0;
  height: 79vh;
  /* display: flex; 使用 Flexbox 來讓容器內元素置中 */
  justify-content: center; /* 水平置中 */
  align-items: center; /* 垂直置中 */
}

.timer-container {
  display: flex;
  justify-content: center; /* 水平置中 */
  margin-bottom: 30px; /* 計時器與題目間距 */
}

.timer {
  font-size: 28px;
  color: #a5657b;
  font-weight: bold;
  display: flex;
  justify-content: center; /* 水平置中 */
  align-items: center; /* 垂直置中 */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #834f60;
  background-color: #fff5f8;
}

.test-question-container h2 {
  font-size: 35px;
  margin-top: 20px;
  margin-bottom: 50px;
  line-height: 1.5;
  color: #444444;
  text-align: center; /* ✅ 讓標題置中 */
}


.test-options {
  margin-bottom: 25px;
}

.test-options button.option {
  display: block;
  width: 100%;
  padding: 20px;
  margin: 20px 0;
  font-size: 20px;
  border: 2px solid #d1c4e9;
  border-radius: 20px;
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.test-options button.option:hover {
  background: linear-gradient(135deg, #d1c4e9, #b39ddb);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.test-options button.option:active {
  transform: translateY(0px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

#prevButton {
  margin-left: 10px;
  margin-bottom:20px;
}

.next-button {
  margin-right: 10px; /* 確保右邊的按鈕有適當的空間 */
}

#submitButton {
  margin-right: 10px; /* 如果使用 Submit 按鈕，保留相同的間距 */
}

#submitButton {
  padding: 12px 25px;
  font-size: 18px;
  border: none;
  background: linear-gradient(135deg, #4CAF50, #388E3C); /* 醒目的綠色 */
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  display: inline-block; /* 確保隱藏時不改變結構 */
  
}

#submitButton:hover {
  background: linear-gradient(135deg, #66BB6A, #43A047); /* 更亮的綠色 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

#submitButton:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* 當按鈕隱藏時 */
#submitButton[style*="display: none"] {
  display: none !important;
}



.test-navigation button {
  padding: 12px 25px;
  font-size: 18px;
  border: none;
  background: linear-gradient(135deg, #757575, #424242);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  margin-bottom:20px;
}

.test-navigation button:hover {
  background: linear-gradient(135deg, #9e9e9e, #616161);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.test-navigation button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.question-indicators {
  display: flex;
  justify-content: center; /* 水平置中 */
  margin-bottom: 20px; /* 圓圈與題目之間的間距 */
}

/* 點擊後選項顏色變深 */
.test-options button.option.active {
  background: #382346 ; /* 更深的顏色 */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: white;
  transform: translateY(-3px);
}




/* 圓圈在已作答的題目上顯示深色 */
.circle.answered {
    background-color: #5f2886; /* 深色背景 */
    color: white; /* 白色文字 */
}

/* 預設的圓圈顏色 */
.circle {
    background-color: #a17682; /* 預設灰色 */
    color: #fff; /* 白色文字 */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    cursor: pointer;
}

/* 被選中的圓圈 */
.circle.active {
    background-color: #485ebe; /* 被選中的圓圈顯示藍色 */
}

#customAlert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景透明黑 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#customAlert .modal-content {
  position: relative;
  display: flex;
  flex-direction: column; /* 讓內容垂直排列 */
  justify-content: center; /* 垂直置中 */
  align-items: center; /* 水平置中 */
  width: 100%;
  max-width: 500px; /* 添加最大寬度限制 */
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  color: #333;
}

#customAlert .modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block; /* 保持按鈕為行內塊 */
}



@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
}

/* RWD */
@media only screen and (max-width: 768px) {
  /* 當螢幕寬度小於或等於 768px 時，進行調整 */

  .test {
    padding: 20px; /* 減少內邊距 */
    height: auto;  /* 自動調整高度以適應內容 */
  }

  .timer {
    font-size: 24px; /* 調整字體大小 */
    width: 60px;
    height: 60px;
    
  }

  .test-question-container h2 {
    font-size: 32px; /* 減少標題字體大小 */
    margin-top: 10px;
    margin-bottom: 50px; /* 減少標題與選項的間距 */
  }

  .test-options button.option {
    padding: 20px;
    font-size: 18px; /* 減小按鈕文字大小 */
    margin: 15px 0; /* 減少按鈕間距 */
  }

  .test-navigation button {
    padding: 10px 20px;
    font-size: 16px; /* 減小按鈕文字大小 */
  }
}

@media only screen and (max-width: 480px) {
  /* 當螢幕寬度小於或等於 480px 時，進行調整 */

  .test {
    padding: 10px; /* 進一步減少內邊距 */
  }

  .timer {
    font-size: 20px; /* 調整字體大小 */
    width: 50px;
    height: 50px;
  }

  .test-question-container h2 {
    font-size: 28px; /* 減少標題字體大小 */
    margin-bottom: 30px; /* 減少標題與選項的間距 */
  }

  .test-options button.option {
    padding: 15px;
    font-size: 16px; /* 減小按鈕文字大小 */
  }

  .test-navigation button {
    padding: 8px 15px;
    font-size: 14px; /* 減小按鈕文字大小 */
  }
 
}
/* 檢討頁面的彈窗樣式 */
.review-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* 使用flex來居中顯示彈窗 */
}

.review-popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 80%;  /* 根據需要調整大小 */
    max-width: 600px;  /* 最大寬度 */
    margin: auto;  /* 自動水平居中 */
    margin-top: 100px;
    position: relative; /* 使關閉按鈕相對定位 */
  }

.close-btn {
  color: #aaa;
  font-size: 70px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 檢討列表的樣式 */
.review-item {
  margin-bottom: 20px;
}

.review-item p {
  margin: 5px 0;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}




/*--------------------------------------------------------------
# Course
--------------------------------------------------------------*/
#course {
  margin-top: 50px; /* 讓它與 #hero 有間距，避免擠在一起 */
}
.services .icon-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin: 0  0 40px 0;
  background: #fff;
  box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  transition: all 0.3s ease-in-out;
  border-radius: 15px;
  text-align: center;
  border-bottom: 3px solid #fff;
}

.services .icon-box:hover {
  transform: translateY(-5px);
  border-color: #ef7f4d;
}

.services .icon i {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 15px;
  color: #ef7f4d;
}

.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .title a {
  color: #111;
}

.services .description {
  font-size: 15px;
  line-height: 28px;
  margin-bottom: 0;
}



/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #fff;

  color: #212529;
  font-size: 14px;
  background: #ffffff;
}


#footer .footer-top {
  padding: 30px 0 1px 0;
  background: #f8f9fa;
}


#footer .footer-top .footer-contact {
  margin-bottom: 1px;
}

#footer .footer-top .footer-contact h4 {
  font-size: 22px;
  margin: 0 0 30px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}

#footer .footer-top .footer-contact p {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif;
  color: #5c5c5c;
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: bold;
  color: #212529;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {   /*footer 箭頭顏色*/
  padding-right: 2px;
  color: #7a96f3;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #5c5c5c;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  text-decoration: none;
  color: #a851f8;   /*footer 滑鼠懸停顏色*/
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #eb5d1e;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #ef7f4d;
  color: #fff;
  text-decoration: none;
}

#footer .copyright {
  text-align: center;
  float: left;
}

#footer .credits {
  float: right;
  text-align: center;
  font-size: 13px;
  color: #212529;
}

#footer .credits a {
  color: #eb5d1e;
}

@media (max-width: 575px) {
  #footer .copyright, #footer .credits {
    float: none;
    -moz-text-align-last: center;
    text-align-last: center;
    padding: 3px 0;
  }
}
/*--------------------------------------------------------------
# Post Wrap Section
--------------------------------------------------------------*/

.custom-post-wrap-section {
  padding: 10px 15px;
  background-color: #f8f9fa;
}

/* Container Styling */
.custom-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Row Styling */
.custom-post-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.custom-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom:100px;
}

/* Article Styling */
.custom-post-item {
  flex: 1 1 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}


/* Meta Information */
.custom-post-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.custom-post-meta a {
  color: #007bff;
  text-decoration: none;
}

.custom-post-meta a:hover {
  text-decoration: underline;
}

/* Title Styling */
.custom-post-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 20px 0;
  color: #212529;
}

/* Hero Image */
.custom-hero-image {
  text-align: center;
  margin-top: 30px;
}

.custom-hero-image img {
  max-width: 85%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.custom-hero-image img:hover {
  transform: scale(1.05);
}

/* Button Group */
.custom-button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Buttons Styling */
.custom-highlight-btn {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #ced4da;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.custom-highlight-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #007bff;
}

/* Button Icons */
.custom-highlight-btn i {
  font-size: 1.4rem;
}

/* Specific Icons for Buttons */
.custom-icon-grammar::before {
  content: "📝"; /* Grammar Button Icon */
  font-style: normal;
}

.custom-icon-words::before {
  content: "🔠"; /* Words Button Icon */
  font-style: normal;
}

/* Article Content */
.custom-post-description {
  margin-top: 30px;
  font-size: 1.3rem;
  line-height: 1.8;
  text-align: justify;
  color: #343a40;
}

/* Highlighted Styles */
.custom-highlight-bold {
  font-weight: bold;
  color: #003366; /* Deep Blue */
}

.custom-highlight-grammar {
  background-color: #ffff99; /* Light Yellow */
  padding: 0 3px;
  border-radius: 3px;
}
/* Highlighted Grammar */
.highlight-grammar {
  background-color: #ffff99; /* 淺黃色 */
  padding: 0 2px;
  border-radius: 3px;
}

/* Highlighted Bold */
.highlight-bold {
  font-weight: bold;
  color: #003366; /* 深藍色 */
}

/* From Uiverse.io by alexmaracinaru */ 
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 40px auto; /* 修改這裡，讓按鈕與上方文字有更大的垂直距離 */
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  background: #b1dae7;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}

.cta span {
  position: relative;
  font-family: "Ubuntu", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #234567;
}

.cta svg {
  position: relative;
  top: 0;
  margin-left: 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #234567;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.cta:hover:before {
  width: 100%;
  background: #b1dae7;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.95);
}
/* RWD 調整 */

@media screen and (max-width: 768px) {
  .cta {
    margin-left: 20px ; /* 更小的垂直邊距 */
    padding: 8px 12px; /* 調整按鈕內邊距 */
  }

  .cta span {
    font-size: 16px; /* 縮小字體大小 */
  }

  .cta svg {
    width: 12px;
    height: 8px; /* 縮小箭頭尺寸 */
  }

  .cta:before {
    width: 40px; /* 縮小圓形背景大小 */
    height: 40px;
  }
  
  .loginbtn{
   
    padding: 8px 12px; 
  }
}

@media screen and (max-width: 480px) {
  .cta {
    margin-left: 20px ; /* 更小的垂直邊距 */
    padding: 8px 2px; /* 再次縮小按鈕內邊距 */
  
  }

  .cta span {
    font-size: 16px; /* 更小的字體大小 */
  }

  .cta svg {
    width: 10px;
    height: 6px; /* 繼續縮小箭頭尺寸 */
  }

  .cta:before {
    width: 35px; /* 縮小圓形背景大小 */
    height: 35px;
  }
}
/*----首頁文章----*/
.articles-wrapper {
  padding: 20px;
  background-color: #f8f9fa; /* 設定背景顏色 */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* 加點陰影 */
}

/* 整個 section 主要樣式 */
#learning-modules {
  padding: 60px 0;
  background-color: #f8f9fa;
}

/* 內部內容包裝 */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 卡片排列 */
.module-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* 單張卡片 */
.module-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 300px;
  transition: transform 0.3s ease-in-out;
}

.module-card:hover {
  transform: scale(1.05);
}

/* 卡片內的圖片 */
.module-image {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.module-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 標題 */
.module-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 0;
  color: #333;
}

/* 描述 */
.module-description {
  font-size: 16px;
  color: #666;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .module-grid {
      flex-direction: column;
      align-items: center;
  }

  .module-card {
      width: 90%;
  }
}



/* 主區塊樣式 */
#intro-section {
  width: 100%;
  background: #f3f0ff;
  border-bottom: 2px solid #fcebe3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

/* 內部容器 */
.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 90%;
}

/* 左側內容區（標題 + 按鈕） */
.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  text-align: left;
}

/* 標題樣式 */
.intro-title {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.3;
  color: #333;
  margin-bottom: 20px;
}

/* 右側 3D 模型 */
.intro-image {
  display: flex;
  justify-content: center;
  flex: 1;
}

/* 3D 模型樣式 */
model-viewer {
  width: 100%;
  max-width: 400px;
  height: 350px;
}

/* 響應式調整（手機版） */
@media (max-width: 768px) {
  .intro-container {
      flex-direction: column;
      text-align: center;
  }

  .intro-content {
      align-items: center;
  }

  .intro-title {
      font-size: 28px;
      text-align: center;
  }

  .intro-image {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

  .model-viewer {
    display: block !important; /* 強制確保手機版顯示 */
    max-width: 300px;
    height: 300px;
}
}


.Articles-list{
  margin-top: 0;
  margin-bottom: 10px;

  font-size: 30px;
}


/* 主卡片區塊 */
.platform-card {
  background: linear-gradient(135deg, #6a11cb, #2575fc); /* 漸層背景 */
  padding: 30px;
  border-radius: 15px;  /* 圓角 */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* 立體陰影 */
  color: #fff;  /* 白色字體 */
  text-align: center;
  max-width: 700px;
  margin: 40px auto;
  animation: fadeIn 1s ease-in-out;
}

/* 標題 */
.platform-title {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* 主要文字內容 */
.platform-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* 關鍵字高亮 */
.highlight {
  color: #ffdd57;  /* 金黃色 */
  font-weight: bold;
}

/* 行動呼籲 */
.platform-cta {
  font-size: 20px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 15px;
  box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out;
}

/* 滑鼠懸停效果 */
.platform-cta:hover {
  transform: scale(1.05);
}

/* 動畫效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


