/* === 基礎全域設定 === */
.custom-wp-layout {
  font-family: sans-serif; color: #486A97; line-height: 1.6;
  box-sizing: border-box; position: relative; max-width: 1200px;
  margin: 0 auto; padding: 20px;
  padding-top: 90px;
}
.custom-wp-layout * { box-sizing: border-box; }

/* === 1. 頂部導覽列 === */
.top-header {
  position: fixed !important; top: 0 !important; left: 50% !important;
  transform: translateX(-50%) !important; width: 100vw !important; max-width: 100vw !important;
  height: 70px; background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 9999; display: flex; justify-content: center;
}
.top-header-inner {
  width: 100%; max-width: 1200px; position: relative; height: 100%;
  display: flex; justify-content: center; align-items: center; padding: 0 20px;
}
.site-logo { display: flex; align-items: center; height: 100%; }
.site-logo img { max-height: 40px; width: auto; display: block; }
.menu-wrapper {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
}
#menu-toggle { display: none; }
.hamburger-icon {
  font-size: 28px; cursor: pointer; color: #486A97; user-select: none;
  padding: 5px 10px; border-radius: 8px; transition: 0.3s;
}
.hamburger-icon:hover { background-color: #f0f0f0; }
.dropdown-menu {
  display: none; position: absolute; top: 45px; right: 0;
  background: #fff; border: 1px solid #eee; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15); flex-direction: column; overflow: hidden; min-width: 220px;
}
#menu-toggle:checked ~ .dropdown-menu { display: flex; }
.dropdown-menu a {
  padding: 15px 20px; text-decoration: none; color: #486A97;
  border-bottom: 1px solid #f5f5f5; font-weight: bold; transition: 0.2s;
}
.dropdown-menu a:hover { background-color: #f9fbfd; color: #36547C; }

/* === 2. 懸浮按鈕 === */
.right-floating-actions {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 15px; z-index: 999;
}
.expand-btn {
  background: #486A97; color: #fff; text-decoration: none; font-weight: bold;
  padding: 15px; border-radius: 8px 0 0 8px; box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer; width: 110px; transition: all 0.3s ease;
}
.expand-btn .btn-full { display: none; }
.expand-btn:hover { width: 240px; background: #36547C; }
.expand-btn:hover .btn-short { display: none; }
.expand-btn:hover .btn-full { display: inline; }
.expand-btn.btn-line { background: #06C755; }
.expand-btn.btn-line:hover { background: #05A848; }

/* === 3. 核心區塊 === */
.hero-section {
  padding: 80px 20px; text-align: center; margin-bottom: 20px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('https://tu-shian.com/wp-content/uploads/2026/04/突現數位_首頁_桌機.png') !important;
  background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 12px;
}
.hero-section h3, .hero-section h2, .hero-section p { color: #486A97; }
.hero-section h2 { font-size: 28px; margin-bottom: 20px; font-weight: bold; }
.hero-section p { margin-bottom: 10px; font-weight: bold; }

/* === 4. 品牌牆 === */
.brand-wall { padding: 40px 20px; margin-bottom: 20px; background: #fff; text-align: center; }
.brand-slider-wrapper { position: relative; max-width: 1000px; margin: 0 auto; width: 100%; }
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: #fff;
  border: 1px solid #ccc; border-radius: 50%; width: 45px; height: 45px; font-size: 20px;
  cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 10;
  display: flex; justify-content: center; align-items: center; color: #486A97; transition: 0.3s;
}
.scroll-btn:hover { background: #486A97; color: #fff; }
.left-btn { left: 10px; } .right-btn { right: 10px; }
.brand-container {
  display: flex; overflow-x: auto; gap: 20px; padding: 20px 70px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.brand-container::-webkit-scrollbar { display: none; }
.brand-card {
  flex: 0 0 300px; scroll-snap-align: center; background: #f9fbfd;
  border: 1px solid #eee; border-radius: 12px; padding: 20px; display: flex;
  flex-direction: column; align-items: center; transition: 0.3s;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.brand-logo { width: 150px; height: 150px; object-fit: contain; margin-bottom: 15px; background: #fff; padding: 10px; border-radius: 8px; }
.brand-info { font-size: 14px; color: #486A97; line-height: 1.5; text-align: left; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* === 5. 費用方案 === */
.pricing-section { padding: 60px 20px; margin-bottom: 40px; background: #fff; border-radius: 12px; }
.pricing-title { font-weight: bold; font-size: 32px; text-align: center; color: #486A97; margin-bottom: 10px; }
.pricing-subtitle { text-align: center; color: #486A97; margin-bottom: 50px; font-size: 16px; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: #fff; border-radius: 12px; padding: 40px 25px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; border: 1px solid #f0f0f0;
  display: flex; flex-direction: column; transition: 0.3s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.price-card.highlight { border: 2px solid #486A97; box-shadow: 0 10px 30px rgba(72,106,151,0.15); transform: scale(1.05); z-index: 1; }
.price-card.highlight:hover { transform: scale(1.05) translateY(-5px); }
.recommend-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #486A97;
  color: #fff; padding: 6px 18px; border-radius: 20px; font-size: 14px; font-weight: bold; letter-spacing: 1px; white-space: nowrap;
}
.plan-price { font-size: 36px; font-weight: bold; color: #486A97; margin-bottom: 10px; }
.plan-price .currency { font-size: 14px; color: #486A97; font-weight: normal; display: block; margin-bottom: 5px; }
.plan-slogan { font-size: 18px; color: #06C755; font-weight: bold; margin-bottom: 30px; min-height: 54px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 30px 0; text-align: left; flex-grow: 1; }
.plan-features li { position: relative; padding-left: 28px; margin-bottom: 15px; font-size: 15px; color: #486A97; line-height: 1.5; }
.plan-features li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #06C755; font-weight: bold; font-size: 16px; }
.plan-btn {
  display: block; width: 100%; padding: 15px; border-radius: 8px; font-weight: bold;
  text-decoration: none; background: #f5f5f5; color: #486A97; transition: 0.3s; margin-top: auto;
}
.plan-btn:hover { background: #e0e0e0; }
.plan-btn.btn-primary { background: #486A97; color: #fff; }
.plan-btn.btn-primary:hover { background: #36547C; }

/* === 6. 全站頁尾 (公司介紹與常見資訊) === */
.global-footer-wrapper { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 20px; font-family: sans-serif; }
.about-section { padding: 60px 20px; background: #fff; border-radius: 12px; margin-bottom: 20px; }
.about-title { text-align: center; font-size: 32px; font-weight: bold; color: #486A97; margin-bottom: 50px; }
.about-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; max-width: 1100px; margin: 0 auto; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: block; }
.about-formula { font-size: 22px; font-weight: bold; color: #486A97; margin-bottom: 25px; line-height: 1.5; }
.about-formula .highlight-green { color: #06C755; display: block; font-size: 28px; margin-top: 8px; }
.about-services { list-style: none; padding: 0; margin: 0 0 30px 0; }
.about-services li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 16px; color: #486A97; line-height: 1.6; }
.about-services li::before { content: '🎯'; position: absolute; left: 0; top: 0; font-size: 18px; }
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.client-box { background: #f9fbfd; border: 1px solid #eee; padding: 15px 20px; border-radius: 8px; }
.client-box h5 { margin: 0 0 8px 0; color: #486A97; font-size: 15px; border-bottom: 2px solid #06C755; display: inline-block; padding-bottom: 3px; }
.client-box p { margin: 0; font-size: 14px; color: #486A97; line-height: 1.6; }
.about-cta-wrapper { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px dashed #ddd; }
.standard-footer { background: #f9fbfd; padding: 40px 20px; border-radius: 12px; color: #486A97; }
.standard-footer a { color: #486A97; text-decoration: none; transition: 0.2s; }
.standard-footer a:hover { color: #06C755; }
.copyright-text { text-align: center; color: #486A97; font-size: 13px; margin-top: 20px; padding-bottom: 20px; }

/* === 響應式設定 (整合手機版完整優化) === */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .top-header-inner { justify-content: center; }
  .right-floating-actions { display: none; }
  .mobile-floating-bar {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
    background: #486A97; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 1000;
  }
  .mobile-floating-bar a {
    flex: 1; border-right: 1px solid rgba(255,255,255,0.2); padding: 15px 5px;
    color: #fff; text-decoration: none; font-weight: bold; text-align: center; font-size: 14px;
  }
  .mobile-floating-bar a:last-child { border-right: none; }
  .mobile-floating-bar a.btn-line { background: #06C755; }

  .hero-section {
    padding: 60px 15px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('https://tu-shian.com/wp-content/uploads/2026/04/突現數位_首頁_手機.png') !important;
  }
  .hero-section h2 { font-size: 22px; }

  .brand-card { flex: 0 0 260px; }
  .scroll-btn { display: none; }
  .brand-container { padding: 20px 10px; } 

  .pricing-section { padding: 40px 15px; }
  .pricing-title { font-size: 24px; }
  
  /* 🍀 修改點 2: 手機版方案變為左右滑動 🍀 */
  .pricing-cards { 
    display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .pricing-cards::-webkit-scrollbar { display: none; }
  .price-card { flex: 0 0 280px; scroll-snap-align: center; }
  .price-card.highlight { transform: scale(1); }
  .price-card.highlight:hover { transform: translateY(-5px); }

  .about-section { padding: 40px 15px; }
  .about-title { font-size: 24px; margin-bottom: 30px; }
  .about-container { grid-template-columns: 1fr; gap: 30px; }
  .about-image { order: -1; }
  .about-formula { font-size: 20px; }
  .about-formula .highlight-green { font-size: 22px; margin-top: 10px; }
  .about-services li { font-size: 15px; }
  
  /* 🍀 修改點 3: 手機版客戶名單變為上下疊加 🍀 */
  .clients-grid { display: grid; grid-template-columns: 1fr; gap: 15px; } 
  
  .about-cta-wrapper { margin-top: 40px; padding-top: 30px; }
  .about-cta-wrapper h2 { font-size: 20px !important; margin-bottom: 20px !important; }
  .about-cta-wrapper .expand-btn {
    display: block !important; width: 100% !important; box-sizing: border-box;
  }
}
@media (min-width: 769px) { .mobile-floating-bar { display: none; } }
/* === 8. 隱藏 WordPress 佈景主題預設的灰色頁尾 === */
footer, .site-footer, #colophon {
  display: none !important;
}
/* === 9. 隱藏 WordPress 佈景主題預設的頂部標頭 === */
header, .site-header, #masthead {
  display: none !important;
}