/*
Theme Name: 香港風水館
Description: 專為風水顧問和命理師設計的專業WordPress主題
Version: 1.0.0
Author: 王師傅
Author URI: https://your-website.com
Text Domain: fengshui-hk
Tags: 風水, 命理, 顧問, 香港, 傳統文化, 響應式, SEO優化
*/

/* ==========================================================================
   重置和基礎樣式
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 防止移動端菜單打開時頁面滾動 */
body.mobile-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   顏色變量
   ========================================================================== */

:root {
  --primary-color: #c41e3a;
  --secondary-color: #d4af37;
  --accent-color: #8b0000;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --border-color: #e0e0e0;
  --background-light: #f8f8f8;
  --background-dark: #2c2c2c;
  --white: #ffffff;
  --black: #000000;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --error-color: #dc3545;
  --info-color: #17a2b8;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   容器和佈局
   ========================================================================== */

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

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
}

/* 移动端强制单列布局 */
@media (max-width: 991px) {
  .content-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .sidebar {
    order: 2; /* 侧边栏移到主内容下方 */
  }

  .main-content {
    order: 1; /* 主内容在上方 */
  }
}

.main-content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* ==========================================================================
   頂部通知欄
   ========================================================================== */

.top-notice {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-text {
  font-weight: 500;
}

.notice-contact {
  display: flex;
  gap: 20px;
}

.notice-phone,
.notice-email {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-normal);
  font-size: 13px;
}

.notice-phone:hover,
.notice-email:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* ==========================================================================
   頭部樣式 - 桌面端
   ========================================================================== */

.site-header {
  background: var(--white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.site-branding {
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
}

.site-title a:hover {
  transform: translateY(-1px);
}

.logo-icon {
  font-size: 32px;
}

.site-description {
  color: var(--text-light);
  font-size: 14px;
  margin: 5px 0 0 42px;
}

/* 桌面端導航 */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-menu li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: var(--transition-normal);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--primary-color);
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-normal);
}

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

/* 桌面端聯繫信息 */
.desktop-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 18px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

.contact-value:hover {
  color: var(--primary-color);
}

.btn-consultation {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

.btn-consultation:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* ==========================================================================
   移動端菜單按鈕
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 4px;
  position: absolute;
  transition: var(--transition-normal);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* 漢堡菜單動畫 */
.mobile-menu-toggle.active .hamburger-inner {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-inner::before {
  top: 0;
  transform: rotate(0deg);
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

.menu-text {
  font-size: 12px;
  color: var(--text-color);
  transition: var(--transition-normal);
}

.mobile-menu-toggle.active .menu-text {
  color: var(--primary-color);
}

/* ==========================================================================
   移動端導航菜單 - 修改為從header下方開始
   ========================================================================== */

.mobile-navigation {
  position: fixed;
  top: 0; /* 這個值會通過JavaScript動態設置 */
  left: 0;
  width: 100%;
  height: calc(100vh - 0px); /* 這個值會通過JavaScript動態設置 */
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-navigation.active {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-navigation.active .mobile-menu-container {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-light);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.mobile-logo .logo-icon {
  font-size: 24px;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-color);
  font-size: 18px;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.mobile-menu-close:hover {
  background: var(--primary-color);
  color: var(--white);
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

/* 移動端導航菜單 */
.mobile-nav {
  margin-bottom: 30px;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin-bottom: 5px;
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-normal);
  border-radius: 0;
  position: relative;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(5px);
}

.mobile-nav-menu a i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.mobile-nav-menu a span {
  font-size: 16px;
}

/* 移動端聯繫區域 */
.mobile-contact-section {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.mobile-contact-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 15px 0;
  color: var(--text-color);
  text-align: center;
}

.mobile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: var(--background-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition-normal);
}

.mobile-contact-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.mobile-contact-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details .contact-label {
  font-size: 12px;
  opacity: 0.8;
}

.contact-details .contact-value {
  font-weight: 600;
  font-size: 14px;
}

.mobile-cta {
  text-align: center;
}

.btn-mobile-consultation {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: 0 3px 10px rgba(196, 30, 58, 0.3);
}

.btn-mobile-consultation:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

/* ==========================================================================
   麵包屑導航
   ========================================================================== */

.breadcrumb-wrapper {
  background: var(--background-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-normal);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   文章卡片樣式
   ========================================================================== */

.posts-container,
.posts-grid {
  display: grid;
  gap: 30px;
}

.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

.post-category a {
  color: var(--white);
  text-decoration: none;
}

.post-content {
  padding: 25px;
}

.entry-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.entry-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

.entry-title a:hover {
  color: var(--primary-color);
}

.entry-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.entry-meta span,
.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-meta a,
.post-meta a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-normal);
}

.entry-meta a:hover,
.post-meta a:hover {
  color: var(--primary-color);
}

.entry-summary,
.post-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more-link,
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.read-more-link:hover,
.read-more:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* ==========================================================================
   浮動元素
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 20px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  }
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.back-to-top button {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-normal);
  box-shadow: 0 3px 15px rgba(196, 30, 58, 0.3);
}

.back-to-top button:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

/* ==========================================================================
   響應式設計 - 媒體查詢
   ========================================================================== */

/* 大屏幕 (1200px 以上) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .nav-menu {
    gap: 35px;
  }

  .site-title {
    font-size: 32px;
  }

  .logo-icon {
    font-size: 36px;
  }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .nav-menu {
    gap: 25px;
  }

  .header-contact {
    gap: 15px;
  }

  .contact-info {
    display: none;
  }
}

/* 平板屏幕 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 15px;
  }

  /* 隱藏桌面端導航和聯繫信息 */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }

  /* 顯示移動端菜單按鈕 */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-content {
    justify-content: space-between;
  }

  .site-title {
    font-size: 24px;
  }

  .logo-icon {
    font-size: 28px;
  }

  .site-description {
    font-size: 12px;
    margin-left: 38px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
  }

  .notice-contact {
    gap: 15px;
  }

  .notice-phone,
  .notice-email {
    font-size: 12px;
  }

  .mobile-menu-container {
    width: 300px;
  }
}

/* 手機屏幕 (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
  .container {
    padding: 0 15px;
  }

  /* 隱藏桌面端導航和聯繫信息 */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }

  /* 顯示移動端菜單按鈕 */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-main {
    padding: 15px 0;
  }

  .site-title {
    font-size: 22px;
  }

  .logo-icon {
    font-size: 26px;
  }

  .site-description {
    font-size: 11px;
    margin-left: 36px;
  }

  .top-notice {
    padding: 8px 0;
    font-size: 13px;
  }

  .notice-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .notice-contact {
    gap: 15px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .mobile-menu-container {
    width: 280px;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .back-to-top {
    bottom: 70px;
    right: 15px;
  }
}

/* 超小屏幕 (479px 以下) */
@media (max-width: 479px) {
  .container {
    padding: 0 10px;
  }

  /* 隱藏桌面端導航和聯繫信息 */
  .desktop-nav,
  .desktop-contact {
    display: none !important;
  }

  /* 顯示移動端菜單按鈕 */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .header-main {
    padding: 12px 0;
  }

  .site-title {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 24px;
  }

  .site-description {
    font-size: 10px;
    margin-left: 34px;
  }

  .top-notice {
    padding: 6px 0;
    font-size: 12px;
  }

  .notice-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .notice-contact {
    gap: 12px;
  }

  .notice-phone,
  .notice-email {
    font-size: 11px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .mobile-menu-container {
    width: 100%;
    max-width: 100vw;
  }

  .mobile-contact-section {
    padding: 0 15px 15px;
  }

  .whatsapp-float {
    bottom: 10px;
    right: 10px;
  }

  .whatsapp-float a {
    padding: 10px 14px;
    font-size: 13px;
    gap: 8px;
  }

  .back-to-top {
    bottom: 60px;
    right: 10px;
  }

  .back-to-top button {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* 移动端布局修复 */
@media (max-width: 767px) {
  .content-wrapper {
    grid-template-columns: 1fr !important;
    gap: 25px;
    margin-top: 30px;
  }

  /* 确保所有flex容器在移动端垂直排列 */
  .header-content,
  .notice-content,
  .footer-bottom-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  /* 移动端卡片布局 */
  .posts-grid,
  .services-grid,
  .footer-widgets {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

@media (max-width: 479px) {
  .content-wrapper {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-top: 25px;
  }

  /* 超小屏幕优化 */
  .container {
    padding: 0 10px;
  }

  /* 确保内容不会水平挤压 */
  * {
    min-width: 0;
    word-wrap: break-word;
  }
}

/* 確保在所有大屏幕設備上隱藏移動端元素 */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-navigation {
    display: none !important;
  }
}

/* 確保在所有小屏幕設備上隱藏桌面端元素 */
@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }

  .desktop-contact {
    display: none !important;
  }
}

/* ==========================================================================
   其他樣式保持不變...
   ========================================================================== */

.single-article {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 40px;
}

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

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 30px 0 15px 0;
  color: var(--text-color);
}

.entry-content h2 {
  font-size: 28px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.entry-content h3 {
  font-size: 24px;
  color: var(--primary-color);
}

.entry-content h4 {
  font-size: 20px;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  background: var(--background-light);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-light);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* 側邊欄樣式 */
.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: var(--white);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-medium);
}

.widget-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

/* 頁腳樣式 */
.site-footer {
  background: var(--background-dark);
  color: var(--white);
  margin-top: 60px;
}

.footer-top {
  padding: 60px 0 40px 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* 響應式調整 - 頁腳 */
@media (max-width: 767px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    padding: 40px 0 30px 0;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
