/* =====================================================================
  Metal AWP CC  Gallery Page Styles
===================================================================== */
.banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  width: 100%;
}

.banner-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .banner-content h1 {
    font-size: 1.5rem;
  }
  .banner-content p {
    font-size: 1rem;
  }
}

/* Metal Gallery Section */
.metal-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center; /* 內容居中 */
  min-height: auto;
}

/* 平板響應式 */
@media (max-width: 1024px) and (min-width: 769px) {
  .metal-gallery {
    margin: 30px auto 0 auto;
    padding: 16px;
  }
}

/* 手機橫屏和小平板 */
@media (max-width: 768px) and (min-width: 481px) {
  .metal-gallery {
    margin: 2em auto; /* 水平居中 */
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    align-items: center; /* 內容居中 */
    width: 100%;
    max-width: 1200px; /* 最大寬度限制 */
  }
}

/* 手機直屏 */
@media (max-width: 480px) {
  .metal-gallery {
    margin: 15px auto 0 auto;
    padding: 10px;
    align-items: center; /* 內容居中 */
  }
}

.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
  justify-items: center;
  align-items: center;
}

/* 平板響應式（768px - 1024px） */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 0.8em;
  }
}

/* 手機橫屏和小平板（481px - 768px） */
@media (max-width: 768px) and (min-width: 481px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 0.6em;
  }
}

/* 手機直屏（最大480px） */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 0.5em;
  }
}

.gallery-page {
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
  width: 100%;
  position: relative;
  min-height: 200px;
}

.gallery-page[style*="display:none"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.gallery-grid img {
  width: 100%;
  max-width: 260px;
  height: 200px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f8f8f8;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 特大圖片樣式（跨兩行） */
.gallery-img-large,
.tall-img {
  grid-row: span 2 !important;
  height: 420px !important; /* 兩個圖片的高度 + gap */
}

/* 響應式模式下的圖片樣式 */
@media (max-width: 768px) {
  .gallery-grid img {
    width: 100% !important;
    max-width: none !important;
    height: 120px !important;
    object-fit: cover !important;
    margin: 0 !important;
    justify-self: center !important;
    align-self: center !important;
    border-radius: 6px !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }

  /* 響應式模式下的特大圖片 */
  .tall-img,
  .gallery-img-large {
    grid-row: span 2 !important;
    height: 248px;
  }
}

.gallery-pagination {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 100;
}

/* 平板響應式 */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-pagination {
    margin-top: 30px;
  }
}

/* 手機橫屏和小平板 */
@media (max-width: 768px) and (min-width: 481px) {
  .gallery-pagination {
    margin-top: 25px;
  }
}

/* 手機直屏 */
@media (max-width: 480px) {
  .gallery-pagination {
    margin-top: 20px;
  }
}

.gallery-pagination .arrow {
  font-size: 2em;
  color: #215c2a;
  cursor: pointer;
  user-select: none;
  flex: 0 0 1.5em;
  width: 1.5em;
  text-align: center;
  transition: opacity 0.2s;
}
.gallery-pagination .arrow.invisible {
  opacity: 0;
  pointer-events: none;
}
.gallery-pagination .gallery-btn-group {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0.5em;
}
.gallery-pagination .arrow {
  margin: 0;
}
.gallery-pagination .gallery-btn {
  margin: 0 0.25em;
}

.gallery-pagination button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s;
}

/* 手機響應式按鈕大小 */
@media (max-width: 768px) {
  .gallery-pagination button {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .gallery-pagination .arrow {
    font-size: 1.8em;
    flex: 0 0 1.3em;
    width: 1.3em;
  }

  .gallery-pagination .gallery-btn-group {
    margin: 15px 0;
    gap: 0.3em;
  }
}

@media (max-width: 480px) {
  .gallery-pagination button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .gallery-pagination .arrow {
    font-size: 1.6em;
    flex: 0 0 1.2em;
    width: 1.2em;
  }

  .gallery-pagination .gallery-btn-group {
    margin: 12px 0;
    gap: 0.2em;
  }
}
.gallery-pagination button.active {
  background: #1a4d1a;
  color: #fff;
}

.gallery-pagination .arrow:active {
  background: #1a4d1a;
  color: #fff;
  transform: scale(0.92);
}
.gallery-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 桌面版：4列 */
  gap: 32px;
  justify-items: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s;
  /* 保持絕對定位以支持動態高度調整 */
}

/* 平板響應式 */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-page {
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 24px;
  }
}

/* 手機橫屏和小平板 */
@media (max-width: 768px) and (min-width: 481px) {
  .gallery-page {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 20px;
  }
}

/* 手機直屏 */
@media (max-width: 480px) {
  .gallery-page {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 16px;
  }
}

/* 響應式模式下的特殊樣式 */
@media (max-width: 768px) {
  .metal-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 20px 15px !important;
    margin: 0 !important;
  }

  .gallery-grid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    justify-items: center !important;
    align-items: center !important;
    display: block !important;
    padding: 0 !important;
    position: relative !important;
    min-height: auto !important;
  }

  .gallery-page {
    position: static !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    justify-items: center !important;
    align-items: center !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .gallery-page[style*="display:none"] {
    display: none !important;
  }

  /* 隱藏分頁按鈕的樣式 */
  .gallery-pagination[style*="display: none"] {
    display: none !important;
  }
}

.gallery-page[style*="display:none"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  /* 完全移到底層，不干擾任何事件 */
}

.gallery-page:not([style*="display:none"]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
/* .gallery-grid.shrink class 已移除，由JavaScript動態調整高度 */
.tall-img {
  grid-row: 1 / span 2;
  grid-column: 1 / 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================================================================
    Contact Section Styles
============================================================================== */
.contact-section {
  width: 100%;
  background: #fff;
  padding: 60px 0 80px 0;
  display: block;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.contact-title {
  font-size: 38px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0px;
  letter-spacing: 4px;
  color: #22282d;
}

.contact-underline {
  width: 60px;
  height: 1px;
  background: #0d8023;
  margin: 18px auto 40px auto;
  border-radius: 2px;
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin: 0 auto;
}

.contact-form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 12px;
  text-transform: uppercase;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  margin-bottom: 0;
  transition: border-color 0.2s;
}

.contact-input:focus {
  border-color: #0d8023;
  outline: none;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-submit-btn {
  padding: 0 28px;
  height: 55px;
  width: 120px;
  background: #0d8023;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-submit-btn:hover {
  background: #2ecc40;
}

.contact-info {
  margin-left: 8%;
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 32px;
}

.contact-icon {
  min-width: 90px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.contact-office-title {
  font-size: 20px;
  font-weight: 350;
  margin-bottom: 12px;
  color: #22282d;
  text-align: left;
}

.contact-office-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  text-align: left;
}
.contact-office-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

@media (max-width: 768px) {
  .contact-office-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .contact-icon {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-right: 8px;
  }
  .contact-office-title, .contact-office-desc {
    display: block;
    text-align: left;
    width: 100%;
    word-break: break-word;
    margin: 0;
  }
  .contact-section {
    padding: 0 24px;
  }
  .contact-title,
  .contact-underline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }
  .contact-form, .contact-info {
    width: 80%;
    margin-top: 0;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
  }
  .contact-form form {
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
  }
  .contact-info {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    align-items: flex-start;
    width: 90%;
    box-sizing: border-box;
    order: -1;
  }
  .contact-office-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
  .contact-icon {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-right: 8px;
  }
  .contact-office-title, .contact-office-desc {
    display: block;
    text-align: left;
    width: 100%;
    word-break: break-word;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .contact-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .contact-form, .contact-info {
    width: 80%;
    margin-top: 0;
    align-items: center;
  }
  .contact-form form {
    align-items: center;
  }
.contact-info {
    margin-left: 0%;
}
}

/* ============================================================================== */
/* Footer Styles */
/* ============================================================================== */
.footer {
    width: 100%;
    background: #fafafa;
    padding: 48px 0 40px 0;
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 400;
    margin-top: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 0 0 #ededed inset;
}


/* ==============================================================================
    Culture Section Styles
============================================================================== */
/* 文化切換區塊 */
.culture-switch-section {
  position: relative;
  width: 100%;
  height: 350px;
  margin-top: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.culture-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s;
  z-index: 1;
}
.culture-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 40, 45, 0.6);
  z-index: 2;
  pointer-events: none;
}
.culture-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.culture-title {
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 10px;
  transition: opacity 0.3s, transform 0.4s ease;
}
.culture-underline {
  width: 60px;
  height: 1px;
  background: #0d8023;
  margin: 0 auto 18px auto;
  border-radius: 2px;
  opacity: 0.5;
}
.culture-desc {
  font-size: 20px;
  margin-bottom: 30px;
  color: #fff;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(.4,1.6,.6,1);
  will-change: opacity, transform;
}
.culture-switch-btns {
  display: flex;
  gap: 30px;
  justify-content: center;
}
.culture-btn.diamond-btn {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 2px;
  position: relative;
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}
.culture-btn.diamond-btn:hover {
  border-color: rgba(255,255,255,1);
  transform: rotate(45deg) scale(1.1);
}
.culture-btn.diamond-btn.active {
  border-color: #fff;
  transform: rotate(45deg) scale(1.1);
}
.culture-btn.diamond-btn.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  transition: all 0.3s ease;
}
/* ==============================================================================
    Service Section Styles
============================================================================== */
.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.service-img-default {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s;
}
.service-img-hover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  background: rgba(54, 54, 54, 0.658);
  pointer-events: none;
}
.service-hover-text {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  margin: 0;
  padding: 0 20px;
  width: auto;
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .service-img-default {
  opacity: 1;
}
.service-card:hover .service-img-hover {
  opacity: 1;
}
.service-card:hover .service-hover-text {
  opacity: 1;
}
/* 服務項目區塊分隔線與綠線 */
.service-divider {
  width: 100%;
  height: 1px;
  background: #ededed;
  margin: 0 0 48px 0;
}
.service-underline {
  width: 60px;
  height: 1px;
  background: #27ae60;
  margin: 18px auto 0 auto;
  border-radius: 2px;
}
/* 服務項目區塊 */
.service-section {
  width: 100%;
  background: #fff;
  padding: 0px 0 40px 0;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .service-section {
    text-align: center;
  }
}
.service-title {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #222;
  margin-bottom: 0.2em;
  line-height: 1.1;
}
.service-cards {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.service-card {
  background: #fff;
  border: 1px solid #bababa;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px 2px 0 0;
}
.service-label {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  }
.service-label-main {
  color:#0d8023;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 100%;
  width: 100%;
  text-align: center;
  transition: opacity 0.3s, transform 0.3s;
  text-align: center;
   overflow: hidden;
   white-space: normal;
   word-break: break-all;
}

.service-card:hover .service-label-main {
  max-height: 48px;
  width: 250px;;
  padding: 20px 35px 12px 35px;
  overflow: hidden;
  word-break: break-all;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .service-label-desc {
  opacity: 1;
  transform: translateY(0) scale(1.08);
  pointer-events: auto;
  animation: labelDescPop 0.32s cubic-bezier(.4,1.6,.6,1);
}
@keyframes labelDescFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 只針對汽車廢零件卡片做動畫 */

@keyframes labelDescPop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
}
/* ==================================================================================================
  Timeline Section Styles
================================================================================================== */
.timeline-section {
  padding: 60px 20px;
  min-height: 500px;
  position: relative;
  box-sizing: border-box;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

/* 垂直線只在 section 範圍內顯示 - 壓在圓點下方 */
.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -202.7px; /* 負值往左移，正值往右移 */
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e8e8e8;
  z-index: 0; /* 讓垂直線在圓點下方 */
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  min-height: 60px;
}

/* 左側標題和年份區域 - 縮小寬度 */
.timeline-label {
  flex: 0 0 30%;
  text-align: left;
  padding-right: 20px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #0d8023;
  margin-bottom: 2px;
}

.timeline-year {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
  margin-bottom: 0;
}

/* 中間的點區域 - 使用用戶調整的百分比定位 */
.timeline-dot-col {
  position: absolute;
  left: 26.5%;
  top: 8px;
  z-index: 2;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 3px solid #0d8023;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-dot:hover {
  transform: scale(1.2);
  background: #0d8023;
}

/* 右側內容區域 - 增加寬度 */
.timeline-content {
  flex: 0 0 62%;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  padding-top: 8px;
}


/* 動畫效果 */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.2s;
}


@media (max-width: 768px) {
  .timeline-section::before {
    display: none;
  }
  .timeline-item {
    background: #fff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 18px;
    padding: 16px 10px 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    border-left: 3px solid #e8e8e8;
  }
  .timeline-dot-col,
  .timeline-dot {
    display: none !important;
  }
  .timeline-label {
    padding-right: 8px;
    flex: 0 0 auto;
    font-weight: 500;
    color: #0d8023;
    font-size: 1rem;
  }
  .timeline-content {
   padding: 0 20px;
    font-size: 0.98rem;
    color: #333;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
  }
}
/* ==============================================================================
    About Section Styles
============================================================================== */
.about-section {
    padding: 90px 300px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.about-gallery,
.about-content {
  flex: 1; /* 兩者等寬，占用剩餘空間 */
}
.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
}
.about-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}
.about-gallery img {
  width: auto;
  height: auto;
  max-width: 48%;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: inline-block;
}
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 320px;
}
.about-title {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #222;
  margin-bottom: 0.2em;
  line-height: 1.1;
}
.about-dot {
  color: #27ae60;
  font-size: 2rem;
  vertical-align: middle;
}
.about-underline {
  width: 60px;
  height: 1px;
  background: #27ae60;
  margin-bottom: 32px;
  border-radius: 2px;
}
.about-desc {
  font-size: 16px;
  color: #666;
  line-height: 2.1;
  letter-spacing: 0.05em;
}


@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .about-gallery {
    width: 80vw;
  }
  .about-content {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .about-section {
    padding: 60px 40px;
  }
  .about-container {
    gap: 40px;
  }
  .about-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 10vw;
  }
  .about-container {
    flex-direction: column;
  }
  .about-content {
    order: -1;
    margin-bottom: 16px;
  }
  .about-gallery {
    order: 0;
  }
  .about-gallery img {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  .about-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-desc {
    font-size: 18px;
}
  .about-container {
    padding: 0 50px;
    }
  .about-section {
    padding: 24px 2vw;
  }
  .about-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }
  .about-gallery {
    width: 90vw;
    max-width: 90vw;
    gap: 0.3rem;
  }
  .about-gallery img {
    max-width: 100%;
    margin-bottom: 0.3rem;
  }
  .about-content {
    padding: 0;
  }
}
/* ==============================================================================
    Navigation{ICON} Styles
============================================================================== */
/* SVG icon hover: 白色區域變綠，線條維持白色 */
/* SVG icon hover: 白色區域變綠，線條維持白色 */
.user-icon .user-svg path {
  transition: fill 0.3s;
}
.user-icon:hover .user-svg path {
  fill: #27ae60;
}
.globe-icon .globe-svg ellipse,
.globe-icon .globe-svg line {
  transition: stroke 0.3s;
}
.globe-icon .globe-svg ellipse {
  background: none;
}
.globe-icon .globe-svg ellipse[fill="none"] {
  fill: none;
}
.globe-icon .globe-svg ellipse[fill="white"] {
  transition: fill 0.3s;
}
.globe-icon:hover .globe-svg ellipse,
.globe-icon:hover .globe-svg line {
  stroke: #fff;
}
.globe-icon:hover .globe-svg ellipse[fill="none"] {
  fill: #27ae60;
}

/* ==============================================================================
    Navigation Styles
============================================================================== */
.navbar {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
}

.nav-logo h2 {
    color: #fff; /* 桌面版預設白色 */
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* 桌面版滾動後變深色 */
.navbar.scrolled .nav-logo h2 {
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: #2c3e50;
}

/* 只有滾动後才變綠色 */
.navbar.scrolled .nav-link:hover {
    color: #0d8023;
}

/* 圖標樣式 */
.nav-icon {
    font-size: 1.2rem;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    align-items: center;
}

.navbar.scrolled .nav-icon .ri-user-3-line,
.navbar.scrolled .nav-icon .ri-global-line {
    color: #22282d;
}

.navbar:not(.scrolled) .user-icon:hover .user-outline::before,
.navbar:not(.scrolled) .user-icon:hover .user-outline::after {
    border-color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) scale(1.1);
}

.navbar.scrolled .nav-icon:hover .ri-user-line,
.navbar.scrolled .nav-icon:hover .ri-earth-line {
    color: #0d8023;
}

.nav-toggle { display: none; }

/* ==============================================================================
    Desktop and Mobile Navigation Separation
============================================================================== */
/* Desktop Navigation - 預設顯示 */
.desktop-nav {
    display: flex;
}

/* Mobile Navigation - 預設隱藏 */
.mobile-nav {
    display: none;
}

/* Mobile Icons - 預設隱藏，只在響應式版本顯示 */
.mobile-icons {
    display: none;
    gap: 4px;
    align-items: center;
    order: 2;
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.mobile-icons .nav-icon {
    color: #22282d;
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 6px;
    background: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-icons .nav-icon:hover {
    background: #f0f0f0;
    color: #0d8023;
}
.nav-icons .nav-icon {
    color: #22282d;
    font-size: 1.4rem;
    padding: 8px;
    border-radius: 6px;
    background: none;
    transition: background 0.2s, color 0.2s;
}

.nav-icons .nav-icon:hover {
    background: #f0f0f0;
    color: #0d8023;
}

/* 下拉菜單樣式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 26px 0 0 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-9px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.dropdown-link:hover {
    background: transparent;
    color: #0d8023;
}

/* 手機下拉選單樣式 */
.mobile-icons .dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 120px;
  padding: 8px 0;
  margin-top: 0;
  z-index: 9998;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-9px);
  transition: all 0.3s ease;
}

.mobile-icons .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeInDown 0.2s ease-out;
  z-index: 3000;
}

.mobile-icons .dropdown-menu li {
  margin: 0;
  padding: 0;
}

.mobile-icons .dropdown-menu .dropdown-link {
  display: block;
  padding: 10px 16px;
  color: #2c3e50;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  border: none;
  background: none;
}

.mobile-icons .dropdown-menu .dropdown-link:hover {
  background: rgba(13, 128, 35, 0.1);
  color: #0d8023;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==============================================================================
    Navigation Styles 2
============================================================================== */
.nav2bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px 0;
    transition: all 0.3s ease;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.9);;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.nav2-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav2-logo h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav2-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav2-item {
    position: relative;
}

.nav2-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

/* 圖標樣式 */
.nav2-icon {
    font-size: 1.2rem;
    padding: 8px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.nav2-link:hover,
.nav2-icon:hover .ri-user-line,
.nav2-icon:hover .ri-earth-line {
    color: #0d8023;
}
/* 下拉菜單樣式 */
.dropdown2 {
    position: relative;
}

.dropdown2-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown2-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background:rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 26px 0 0 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown2:hover .dropdown2-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown2-link {
    display: block;
    padding: 12px 24px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.dropdown2-link:hover {
    background: transparent;
    color: #0d8023;
    padding-left: 28px;
}

/* ==============================================================================
   HERO Section Styles
=============================================================================== */
.hero {
position: relative;
height: 100vh;
overflow: visible;
box-sizing: border-box;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel img {
    filter: grayscale(50%) brightness(80%);
    position: relative;
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    transition: filter 0.3s;
    z-index: 1;
}
.hero-dot {
  color: #27ae60;
  font-size: 5rem;
}
@keyframes hero-carousel-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(33, 40, 45, 0.6);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 3;
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 500;
}

.hero-title {
    font-size: 75px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-top: 0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    width:100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: auto;
    height: auto;
    cursor: pointer;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-weight: 300;
    padding: 10px;
}

.carousel-btn:active {
    transform: scale(1.1);
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.scroll-arrow {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #0d8023;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scroll-arrow:hover {
    background: #13be32;
    transform: scale(1.05);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 15;
}

/* hero 菱形 */
.dot {
    width: 16px;
    height: 16px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(45deg);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: relative;
}

.dot:hover {
    border-color: rgba(255, 255, 255, 1);
    transform: rotate(45deg) scale(1.1);
}

.dot.active {
    border-color: #fff;
    transform: rotate(45deg) scale(1.1);
}

.dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #fff;
    transform: translate(-50%, -50%);
    border-radius: 1px;
    transition: all 0.3s ease;
}
/* =====================================================================================================================
    hero  Responsive Design
===================================================================================================================== */
@media (max-width: 1024px) {
  .hero {
    position: relative;
    height: 50vh;
    overflow: visible;
    }
  .hero-carousel, .hero-slide {
    aspect-ratio: 16/9;
    height: auto !important;
    min-height: 0 !important;
  }
  .hero-background {
    background-size: contain !important;
    background-position: center !important;
  }
  .hero-title {
    font-size: 50px;
    margin-bottom: 10px;
}
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .hero-dot {
  font-size: 2rem;
}
  .scroll-arrow {
    width: 30px;
    height: 30px;
}
  .hero-dots {
    top: auto;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  /* HERO Section Responsive (<=768px) */
  .hero {
    position: relative;
    height: 35vh;
    overflow: visible;
  }
  .hero-carousel,
  .hero-slide {
    aspect-ratio: 6/3;
    height: auto !important;
    min-height: 0 !important;
  }
  .hero-carousel img,
  .hero-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
  }
  .hero-background {
    background-size: contain !important;
    background-position: center !important;
  }
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    letter-spacing: 2px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
  }
  .hero-dot {
    font-size: 2rem;
  }
  .scroll-arrow {
    width: 30px;
    height: 30px;
  }
  .hero-dots {
    position: absolute;
    top: auto;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
  }
  .hero-dots .dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
}

@media (max-width: 480px) {
  .hero {
    position: relative;
    height: 35vh;
    overflow: visible;
    }
  .hero-carousel, .hero-slide {
    aspect-ratio: 4/3;
    height: auto !important;
    min-height: 0 !important;
  }
  .hero-background {
    background-size: contain !important;
    background-position: center !important;
  }
  .hero-title {
    font-size: 50px;
    margin-bottom: 10px;
}
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .hero-dot {
  font-size: 2rem;
}
  .scroll-arrow {
    width: 30px;
    height: 30px;
  }
  .hero-dots {
    top: auto;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==============================================================================
    Image Lightbox Styles
============================================================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background-color 0.2s;
  user-select: none;
}

.lightbox-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 15px;
  border-radius: 15px;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 触摸滑动效果 */
.lightbox-image {
  transition: transform 0.2s ease;
  touch-action: pan-y; /* 允许垂直滚动，限制水平滚动 */
}

.lightbox-image.swiping {
  transition: none; /* 滑动时禁用过渡效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
  .lightbox-close {
    top: -35px;
    font-size: 24px;
  }

  .lightbox-nav {
    font-size: 20px;
    padding: 8px 12px;
  }

  .lightbox-prev {
    left: -50px;
  }

  .lightbox-next {
    right: -50px;
  }

  .lightbox-counter {
    bottom: -35px;
    font-size: 12px;
    padding: 4px 12px;
  }

  /* 移动设备上隐藏导航按钮，主要依靠滑动 */
  .lightbox-nav {
    opacity: 0.7;
  }

  .lightbox-nav:hover {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-close {
    top: -30px;
    font-size: 20px;
  }

  .lightbox-nav {
    font-size: 18px;
    padding: 6px 10px;
  }

  .lightbox-prev {
    left: -40px;
  }

  .lightbox-next {
    right: -40px;
  }
}

/* ===========================================================================
    login.html Styles
=========================================================================== */
    body {
      background: #fff;
      margin: 0;
      font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
      flex-direction: column;
    }

    .login-container {
        max-width: 600px;
        width: 100%;
        margin: 80px auto 0 auto;
        text-align: center;
        padding: 48px 32px;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    .login-form {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .login-input, .login-btn {
        box-sizing: border-box;
    }
    .login-title { font-size: 38px; font-weight: 500; letter-spacing: 8px; margin-bottom: 18px; margin-top: 40px; }
    .login-dot { display: inline-block; width: 5px; height: 5px; background: #0d8023; border-radius: 50%;}
    .login-underline {
      width: 60px;
      height: 1px;
      background: #191b1d;
      margin: 0 auto 32px auto;
      border-radius: 2px;
    }
    .login-form { margin-top: 32px; }
    .login-input {
      width: 100%;
      padding: 18px 24px;
      font-size: 12px;
      border: 1px solid #e0e0e0;
      margin-bottom: 18px;
    }
    .login-input:focus { border-color: #0d8023; outline: none; }
    .login-btn { width: 100%; padding: 16px 0; background: #0d8023; color: #fff; font-size: 18px; font-weight: 500; border: none; border-radius: 2px; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
    .login-btn:hover { background: #13be32; }
    .login-footer { width: 100%; background: #f6f6f6; color: #666; font-size: 1rem; letter-spacing: 2px; font-weight: 400; text-align: center; padding: 32px 0 24px 0; position: fixed; left: 0; bottom: 0; }
    @media (max-width: 600px) { .login-container { max-width: 98vw; margin-top: 40px; } }

/* =====================================================================================================================
    nav  Responsive Design
===================================================================================================================== */

@media (max-width: 768px) {
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

  body.nav-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100vw;
  }

  /* 響應式版本 - 隱藏桌面導航，顯示行動導航 */
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    top: 38px;
    left: 0;
    width: 100vw;
    height: auto;
    max-height: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
    z-index: 99998;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .mobile-nav.active {
    max-height: 60vh;
    height: auto;
    overflow-y: auto;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
  }

  /* 當有下拉選單展開時，mobile-nav 高度撐滿螢幕 */
  .mobile-nav.active .dropdown.active .dropdown-menu {
    /* 讓 dropdown-menu 可滾動 */
    max-height: 40vh;
    overflow-y: auto;
  }
  .mobile-nav.active.dropdown-open {
    max-height: 100vh;
    height: 100vh;
  }

  /* 響應式版本 - Logo顯示深色 */
  .nav-logo h2 {
    color: #2c3e50;
    font-size: 1rem;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    border-bottom:rgba(255, 255, 255, 0.98) ;
  }

  .nav-logo {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    max-width: 50vw;
    min-width: 0;
    overflow: hidden;
    font-size: 1.1rem;
    transition: max-width 0.3s;
  }

  /* 響應式版本 - 顯示 mobile-icons */
  .mobile-icons {
    display: flex;
    order: 2;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 9998;
  }

  .mobile-icons .nav-icon {
    position: relative;
    z-index: 9999;
  }

  /* 響應式版本 - nav-toggle 調整為 order 3 */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #22282d;
    cursor: pointer;
    z-index: 99996;
    order: 3;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    margin-right: 12px;
  }

  .nav-toggle:active, .nav-toggle:focus {
    background: #f0f0f0;
    outline: none;
  }

  .nav-item {
    width: 100%;
    text-align: left;
    transition: background 0.2s ease;
  }

  .nav-item:hover {
    background: rgba(13, 128, 35, 0.05);
  }

  .nav-link {
    color: #2c3e50;
    padding: 10px 32px;
    width: 100%;
    display: block;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .nav-link:hover {
    color: #0d8023;
    padding-left: 40px;
  }

  /* Mobile Navigation - 下拉選單樣式 */
  .mobile-nav .dropdown {
    position: relative;
  }

  .mobile-nav .dropdown-menu {
    position: static;
    background: none;
    box-shadow: none;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: auto;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
  }

  .mobile-nav .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 8px 0;
  }

  .mobile-nav .dropdown-link {
    display: block;
    padding: 12px 48px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
  }

  .mobile-nav .dropdown-link:hover {
    background: none;
    color: #0d8023;
    padding-left: 56px;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  }
}
