/*
Theme Name: 會計事務所主題
Description: 專業會計事務所 WordPress 主題
Version: 1.0
Author: Claude Code
*/

/* 導入 Taipei Sans TC Beta 字體 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap");

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Taipei Sans TC Beta", "Noto Sans TC", "Microsoft JhengHei", Arial,
    sans-serif;
}

/* 移除滾軸自定義樣式，使用瀏覽器預設 */

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

/* 防止 RWD 出現左右橫向捲軸 */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

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

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.6s ease;
  animation: slideDownHeader 1.6s ease-out;
}

@keyframes slideDownHeader {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #d32f2f, #ff6b6b);
  transition: width 0.2s ease;
  z-index: 1001;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding-top: 1.5rem;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo .logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8));
}

.nav-menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu-wrapper .main-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  padding-right: 25px;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.6s ease;
  padding: 10px 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.main-menu li a:hover {
  color: #d32f2f;
}

.main-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #d32f2f;
  transition: all 0.6s ease;
  transform: translateX(-50%);
}

.main-menu li a:hover::after {
  width: 100%;
}

.main-menu li a.active {
  color: #d32f2f;
  font-weight: 600;
}

.main-menu li a.active::after {
  width: 100%;
}

/* 下拉選單 */
.menu-has-dropdown {
  position: relative;
}

.menu-has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.menu-has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1100;
  margin-top: 10px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.menu-has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #333 !important;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
  background: #fef2f2;
  color: #d32f2f !important;
}

.dropdown-menu li a::after {
  display: none !important;
}

.menu-contact {
  display: none;
}

.contact-button {
  flex-shrink: 0;
  margin-right: -3rem;
}

.contact-button .btn-contact {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  padding: 8px 45px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 20.8px;
  display: inline-block;
  transition: all 0.6s ease;
  border: none;
  cursor: pointer;
}

.contact-button .btn-contact:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8e0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 10001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.6s ease;
}

/* 鎖定背景滾動（手機選單展開時） */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Footer Styles */
.site-footer {
  background: #c53030;
  color: white;
  padding: 80px 0 32px;
  position: relative;
  clip-path: polygon(
    0 0,
    15% 0,
    25% 80px,
    75% 80px,
    85% 0,
    100% 0,
    100% 100%,
    0 100%
  );
  margin-top: 80px;
}

/* Footer 連結樣式：移除底線與藍色，繼承父層顏色 */
.site-footer a,
.site-footer a:hover,
.site-footer a:focus,
.site-footer a:visited {
  text-decoration: none;
  color: inherit;
}

/* 防止電話號碼和其他文字被瀏覽器自動轉換成藍色連結 */
a[href^="tel:"] {
  color: inherit !important;
  text-decoration: none !important;
}

/* 聯絡資訊文字樣式（通用於所有裝置） */
.contact-text-info,
.contact-text-info a {
  color: inherit !important;
  text-decoration: none !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 24px 0 24px 0;
  margin-bottom: 16px;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-logo {
  height: 100px;
  width: auto;
}

.footer-center {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: start;
  margin: 0 60px;
  position: relative;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.footer-center::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* 在地址與聯絡資訊中間加入分隔線 */
.footer-center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.5);
}

.footer-center::after {
  display: none;
}

.info-label {
  color: white;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 25px;
  min-width: 64px;
  text-align: center;
  white-space: nowrap;
}

.info-text {
  color: white;
  font-size: 15px;
  font-weight: 400;
}

.footer-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: inline-block;
  transition: transform 0.6s ease;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.07);
}

.social-icon img {
  width: 36px;
  height: 36px;
  display: block;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.65);
}

.copyright p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* WAGI 連結特效 */
.wagi-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0 4px;
  transition:
    color 0.6s ease,
    transform 0.6s ease;
  display: inline-block;
}

.wagi-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2),
    #ffffff,
    rgba(255, 255, 255, 0.2)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s ease;
  border-radius: 2px;
}

.wagi-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

.wagi-link:hover::after {
  transform: scaleX(1);
}

h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 25px;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .main-navigation {
    position: relative;
  }

  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  .page-content {
    margin-top: 100px;
  }

  /* 只在真正的平板和手機上顯示漢堡選單 */
  .mobile-menu-toggle {
    display: none;
    /* 先隱藏，在更小的斷點才顯示 */
  }

  .nav-menu-wrapper {
    display: flex;
    /* 桌面版保持顯示 */
    opacity: 1;
    transition: opacity 0.15s ease;
  }

  .nav-menu-wrapper .main-menu {
    flex-direction: row;
    /* 桌面版保持水平排列 */
    padding: 0;
    gap: 40px;
  }

  .menu-contact {
    display: none;
    /* 桌面版隱藏聯絡我們選項 */
  }

  .contact-button {
    display: flex;
    /* 桌面版保持顯示聯絡按鈕 */
  }

  /* iPad Pro 與平板：點擊漢堡選單後展開下拉選單 */
  .nav-menu-wrapper.mobile-active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 1;
  }

  .nav-menu-wrapper.mobile-active .main-menu {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .nav-menu-wrapper.mobile-active .main-menu li {
    width: 100%;
  }

  .nav-menu-wrapper.mobile-active .main-menu li a {
    display: block;
    padding: 14px 20px;
  }

  /* 行動版：為各頁 Hero 區塊預留固定 header 高度，避免被遮擋 */
  .hero-section,
  .about-hero-section,
  .news-hero-section,
  .accounting-hero-section,
  .company-hero-section,
  .contact-hero-section,
  .warehouse-hero-section {
    margin-top: 100px !important;
  }

  .site-footer {
    clip-path: polygon(
      0 0,
      10% 0,
      20% 40px,
      80% 40px,
      90% 0,
      100% 0,
      100% 100%,
      0 100%
    );
    margin-top: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: clamp(16px, 5vw, 32px);
    text-align: center;
    flex: 1;
    justify-content: center;
    padding: clamp(16px, 4vw, 24px) 0;
  }

  .footer-center {
    margin: 0;
    gap: clamp(12px, 4vw, 24px);
  }

  .footer-center::after {
    display: none;
  }

  .footer-logo {
    width: clamp(140px, 30vw, 200px);
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: contain;
  }

  .social-icon img {
    width: 100%;
    height: 100%;
  }

  /* Footer 行動版重新排序：Logo → 社群 → 兩欄資訊 */
  .footer-left,
  .footer-right,
  .footer-center {
    width: 100%;
  }

  .footer-left {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .footer-right {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .footer-center {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    position: relative;
  }

  h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
}

/* Responsive Design - 真正的平板和手機 (768px 以下) */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    /* 只在真正的平板和手機上顯示 */
  }

  .nav-menu-wrapper {
    display: none;
    /* 隱藏桌面選單 */
    opacity: 0;
  }

  .nav-menu-wrapper.mobile-active {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 1;
  }

  .nav-menu-wrapper.mobile-active .main-menu {
    flex-direction: column;
    padding: 20px;
    gap: 0px !important;
  }

  .nav-menu-wrapper.mobile-active .main-menu li {
    width: 100%;
  }

  .nav-menu-wrapper.mobile-active .main-menu li a {
    display: block;
    padding: 14px 20px;
  }

  .menu-contact {
    display: list-item;
    /* 手機版顯示聯絡我們選項 */
  }

  .contact-button {
    display: none;
    /* 手機版隱藏聯絡按鈕 */
  }

  /* 手機版下拉選單 */
  .menu-has-dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: #f9f9f9;
    padding: 0;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .menu-has-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 20px 12px 40px !important;
    font-size: 15px !important;
  }
}

/* Responsive Design - Large Tablet/iPad Pro Landscape (1025px ~ 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .main-navigation {
    position: relative;
  }

  .mobile-menu-toggle {
    display: none;
    /* 大螢幕桌面版不顯示漢堡選單 */
  }

  .nav-menu-wrapper {
    display: flex;
    /* 保持桌面選單 */
  }

  .contact-button {
    display: flex;
    /* 保持聯絡按鈕 */
  }
}

/* Responsive Design - Mobile 特殊調整 */
@media (max-width: 768px) {
  /* 保留小螢幕的特殊調整 */
  .nav-container {
    height: 90px;
    align-items: center;
    padding-top: 1.5rem;
  }

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

  /* 小尺寸行動版：略縮小 Hero 與頂部間距 */
  .hero-section,
  .about-hero-section,
  .news-hero-section,
  .accounting-hero-section,
  .company-hero-section,
  .contact-hero-section,
  .warehouse-hero-section {
    margin-top: 90px !important;
  }

  /* 兩欄資訊置中與標籤/文字縮放 */
  .contact-info-item {
    align-items: center;
    text-align: center;
    gap: clamp(6px, 1.8vw, 10px);
  }

  .info-label {
    font-size: clamp(11px, 1.8vw, 13px);
    padding: clamp(4px, 1vw, 6px) clamp(10px, 2.5vw, 12px);
  }

  .info-text {
    font-size: clamp(13px, 2.2vw, 15px);
  }

  /* 社群 icon 等比例縮放 */
  .social-icons {
    gap: clamp(10px, 3vw, 16px);
  }

  .social-icon {
    width: clamp(40px, 10vw, 52px);
    aspect-ratio: 1 / 1;
  }

  /* 中間分隔線高度隨寬度比例縮放 */
  .footer-center::before {
    height: clamp(40px, 10vw, 60px);
  }

  /* 下方版權區塊字級縮放 */
  .copyright p {
    font-size: clamp(12px, 2.8vw, 14px);
  }

  /* 輪播按鈕原設定保留 */
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    height: 90px;
    align-items: center;
    padding-top: 1.5rem;
  }

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

  /* 小尺寸行動版：略縮小 Hero 與頂部間距 */
  .hero-section,
  .about-hero-section,
  .news-hero-section,
  .accounting-hero-section,
  .company-hero-section,
  .contact-hero-section,
  .warehouse-hero-section {
    margin-top: 90px !important;
  }

  /* 極小裝置再微調 footer 間距與比例 */
  .footer-content {
    gap: clamp(12px, 6vw, 24px);
  }

  .footer-right {
    margin: clamp(4px, 2.5vw, 12px) 0 0;
  }

  .social-icon {
    width: clamp(36px, 12vw, 48px);
  }

  .footer-center::before {
    height: clamp(36px, 12vw, 56px);
  }

  h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global reveal animation (不影響排版：僅使用 transform/opacity) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 1.2s ease,
    opacity 1.2s ease;
  will-change: transform, opacity;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* 僅淡入（不動位移），用於本身已使用 transform/絕對定位 或 特定費用說明區塊 */
.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.reveal-fade.is-inview {
  opacity: 1;
}

/* 動畫減少偏好：尊重使用者系統設定 */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .fade-in,
  .fade-in.visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

/* 全域保險：不論斷點，當加上 mobile-active 一律顯示下拉（避免其他規則覆蓋） */
.main-navigation {
  position: relative;
}

.nav-menu-wrapper.mobile-active {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}

.nav-menu-wrapper.mobile-active .main-menu {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}

.nav-menu-wrapper.mobile-active .main-menu li {
  width: 100%;
}

.nav-menu-wrapper.mobile-active .main-menu li a {
  display: block;
  padding: 14px 20px;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

/* 頁面模板樣式 */
.page-content {
  margin-top: 100px;
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin: 0;
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border-radius: 2px;
}

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

/* 響應式設計 - 頁面模板 */
@media (max-width: 768px) {
  .page-content {
    margin-top: 80px;
    padding: 40px 0;
  }

  .page-header {
    margin-bottom: 40px;
  }

  .page-title {
    font-size: 36px;
  }

  .page-title::after {
    width: 60px;
    height: 3px;
    bottom: -10px;
  }
}

@media (max-width: 480px) {
  .page-content {
    margin-top: 0;
    padding: 30px 0;
  }

  .page-header {
    margin-bottom: 30px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-title::after {
    width: 50px;
    height: 2px;
    bottom: -8px;
  }

  .page-body {
    padding: 0 15px;
  }
}

/* 404 page responsive image */
.not-found {
  display: block;
  width: 100%;
  margin-top: 100px;
  /* 與固定 header 保持距離 */
}

.not-found__figure {
  /* 使用圖片實際寬高比產生 aspect-ratio */
  aspect-ratio: var(--img-w, 16) / var(--img-h, 9);
  width: min(1200px, 100%);
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}

.not-found__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 保持完整顯示不裁切 */
}

/* 讓整個圖片區塊可點擊，游標顯示為可點擊狀態 */
.not-found__back-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
}

@media (max-width: 768px) {
  .not-found {
    margin-top: 80px;
  }

  .not-found__figure {
    width: 100%;
  }
}

/* 聯絡我們區塊樣式（從公司設立頁複製） */
.contact-us-section {
  padding: 80px 0;
  background: #fff;
}

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

.contact-us-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-us-image {
  margin-bottom: 30px;
}

.contact-us-image img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.contact-us-text {
  font-size: 27px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* 聯絡我們區塊中的按鈕樣式 - 與 header 按鈕一模一樣 */
.contact-us-section .contact-button {
  margin-top: 2rem;
  margin-left: -2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-us-section .btn-contact {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  padding: 8px 45px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 20.8px;
  display: inline-block;
  transition: all 0.6s ease;
  border: none;
  cursor: pointer;
}

.contact-us-section .btn-contact:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8e0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* 聯絡我們區塊 RWD（對齊倉儲物流頁） */
@media (max-width: 1024px) {
  .contact-us-section {
    padding: 60px 0;
  }

  .contact-us-image img {
    max-width: 80%;
  }

  .contact-us-text p {
    font-size: 24px;
  }

  .contact-us-section .contact-button {
    margin-top: 1.5rem;
    margin: 20px 0 0;
  }

  .contact-us-section .btn-contact {
    padding: 8px 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .contact-us-section {
    padding: 50px 0;
  }

  .contact-us-image img {
    max-width: 90%;
  }

  .contact-us-text p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    line-height: 1.4;
    font-size: 20px;
  }

  /* RWD端換行 */
  .contact-us-text p .rwd-break {
    display: block;
  }

  .contact-us-section .contact-button {
    margin-top: 1.25rem;
    margin: 20px 0 0;
  }

  .contact-us-section .btn-contact {
    padding: 8px 35px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-us-section {
    padding: 40px 0;
  }

  .contact-us-image img {
    max-width: 95%;
  }

  .contact-us-text p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    line-height: 1.4;
    font-size: 18px;
  }

  .contact-us-section .contact-button {
    margin-top: 1rem;
    margin: 20px 0 0;
  }

  .contact-us-section .btn-contact {
    padding: 8px 30px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .contact-us-section {
    padding: 30px 0;
  }

  .contact-us-image img {
    max-width: 100%;
  }

  .contact-us-text p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
  }

  .contact-us-section .contact-button {
    margin-top: 0.75rem;
    margin: 20px 0 0;
  }

  .contact-us-section .btn-contact {
    padding: 8px 25px;
    font-size: 13px;
  }
}

/* 滾動動畫增強樣式 */
/* 為不同類型的元素添加不同的動畫方向 */
.hero-section.scroll-animate {
  transform: translateY(100px);
}

.acc-section.scroll-animate,
.tax-section.scroll-animate,
.company-section.scroll-animate,
.warehouse-section.scroll-animate {
  transform: translateY(80px);
}

.about-hero-section.scroll-animate {
  transform: scale(0.95) translateY(50px);
}

.content-section.scroll-animate {
  transform: translateX(-50px);
}

.contact-us-section.scroll-animate {
  transform: translateY(60px);
}

/* 特殊元素動畫 */
.acc-title.scroll-animate,
.tax-title.scroll-animate,
.company-title.scroll-animate,
.warehouse-title.scroll-animate {
  transform: translateY(30px);
}

.acc-subtitle.scroll-animate,
.tax-desc.scroll-animate,
.company-desc.scroll-animate,
.warehouse-desc.scroll-animate {
  transform: translateY(20px);
}

.acc-desc.scroll-animate {
  transform: translateY(25px);
}

/* 按鈕動畫增強 */
.acc-actions.scroll-animate,
/* .tax-cta.scroll-animate, */
/* 移除營業稅按鈕動畫 */
.company-cta.scroll-animate,
.warehouse-cta.scroll-animate {
  transform: translateY(40px) scale(0.9);
}

/* 圖片動畫 */
.hero-image.scroll-animate {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.hero-image.scroll-animate.animate-in {
  transform: scale(1);
  filter: brightness(1);
}


/* 文字內容動畫 */
.handwritten-text.scroll-animate {
  transform: rotate(-2deg) scale(0.95);
}

.handwritten-text.scroll-animate.animate-in {
  transform: rotate(0deg) scale(1);
}

/* 聯絡我們區塊動畫 */
.contact-us-image.scroll-animate {
  transform: translateY(30px) scale(0.9);
}

.contact-us-text.scroll-animate {
  transform: translateX(-30px);
}

.contact-button.scroll-animate {
  transform: translateY(20px) scale(0.95);
}

/* 表單動畫 */
.contact-form.scroll-animate {
  transform: translateY(40px);
}

.form-group.scroll-animate {
  transform: translateX(-20px);
}

/* 動畫時間和緩動函數優化 */
.scroll-animate {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.btn.scroll-animate {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 動畫性能優化 */
.scroll-animate {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 減少動畫的設備 */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate.animate-in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* 響應式動畫調整 */
@media (max-width: 768px) {
  .scroll-animate {
    transform: translateY(30px) !important;
  }

  .scroll-animate.animate-in {
    transform: translateY(0) !important;
  }

  .content-section.scroll-animate {
    transform: translateY(30px) !important;
  }

  .content-section.scroll-animate.animate-in {
    transform: translateY(0) !important;
  }

  .handwritten-text.scroll-animate {
    transform: translateY(20px) scale(0.98) !important;
  }

  .handwritten-text.scroll-animate.animate-in {
    transform: translateY(0) scale(1) !important;
  }
}

/* 動畫完成後的狀態保持 */
.scroll-animate.animate-in {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
  filter: none;
}

/* 測試頁面動畫樣式 */
.test-section.scroll-animate {
  transform: translateY(100px);
}

.test-title.scroll-animate {
  transform: translateY(50px);
}

.test-subtitle.scroll-animate {
  transform: translateY(30px);
}

.test-content.scroll-animate {
  transform: translateY(40px);
}

.test-card.scroll-animate {
  transform: translateY(60px) scale(0.95);
}

.test-image.scroll-animate {
  transform: scale(0.8) rotate(10deg);
}

.test-button.scroll-animate {
  transform: translateY(30px) scale(0.9);
}
