@charset "UTF-8";

/* ==========================================================================
   1. 全域變數 (Variables)
   ========================================================================== */
:root {
  /* 尺寸設定 */
  --top-h: 48px;
  --total-h: 48px;
  --banner-h-pc: 33.33vw;
  --banner-h-mb: 100vw;

  /* 品牌色 */
  --fuji-green: #26734d;
  --fuji-green-light: #42b983;
  --accent-hover: #26734d;

  /* 淺色模式變數 (Light Mode) */
  --page-bg: #ffffff;
  --header-bg: #ffffff;
  --card-bg: #f5f5f5;
  --search-section-bg: #f0f0f0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-on-dark: #ffffff;
  --border-color: #cccccc;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --mega-menu-bg: rgba(20, 20, 20, 0.95);

  /* 圓角設定 */
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* 深色模式變數 (Dark Mode) */
[data-theme="dark"] {
  --accent-hover: #42b983;
  --page-bg: #101010;
  --header-bg: #1a1a1a;
  --card-bg: #1f1f1f;
  --search-section-bg: #0a0a0a;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --border-color: #333333;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --mega-menu-bg: rgba(10, 10, 10, 0.98);
}

/* 圖片濾鏡 (深色模式下稍微變暗，保護眼睛) */
[data-theme="dark"] img {
  filter: brightness(0.9);
  transition: 0.3s;
}

[data-theme="dark"] img:hover {
  filter: brightness(1);
}


/* ==========================================================================
   2. 基礎設定 (Base)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--total-h);
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

.content {
  flex: 1;
  width: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}


/* ==========================================================================
   3. 通用頁面版型 (Page Layouts)
   ========================================================================== */

/* 內頁主容器 */
.page-main-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  background-color: var(--page-bg);
}

/* 內頁主標題 H1 (通用) */
h1#page-main-title {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto;
  color: var(--text-primary);
  font-size: 2.2rem;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-main-text {
  padding: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  h1#page-main-title {
    margin: 30px auto;
    font-size: 1.8rem;
  }
}

/* 麵包屑 */
.breadcrumb-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--border-color);
}

.breadcrumb a:hover {
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

.breadcrumb-path li.active {
  color: var(--text-primary);
  font-weight: 700;
  pointer-events: none;
}

/* 內頁形象 Banner (Page Banner) */
.page-banner {
  position: relative;
  width: 100%;
  height: 160px; /* PC 高度 */
  background-size: cover;
  background-position: center center;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-banner {
    height: 100px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    display: none;
  }
}


/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--top-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.3s ease-in-out;
}

#site-header.scroll-hide {
  transform: translateY(calc(var(--top-h) * -1));
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  background: var(--header-bg);
  color: var(--text-primary);
}

/* Logo */
.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  display: block;
  width: auto;
  height: 26px;
  transition: opacity 0.3s;
}

.logo-img:hover {
  opacity: 0.8;
}

/* Menu (Desktop) */
.main-nav {
  height: 100%;
}

.menu-list {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  position: static;
  height: 100%;
}

/* Menu Links */
.menu-link,
.menu-link-split {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 4px;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-item:hover .menu-link,
.menu-item:hover .menu-link-split {
  color: var(--accent-hover);border-bottom: 2px solid var(--accent-hover);
}

/* Split Menu Toggle (+) */
.menu-link-split {
  padding-right: 0 !important;
}

.menu-link-text {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 10px;
}

.menu-link-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

[data-theme="dark"] .menu-link-toggle {
  border-left-color: rgba(255, 255, 255, 0.2);
}

/* Active State */
.menu-item.active-page > .menu-link,
.menu-item.active-page > .menu-link-split .menu-link-text {
  color: var(--accent-hover) !important;
  font-weight: bold;
}

@media (min-width: 993px) {
  .menu-item.active-page > .menu-link,
  .menu-item.active-page > .menu-link-split {
    background-color: transparent !important;
    border-bottom: 2px solid var(--accent-hover);
  }
}
/* 消除 Button 預設樣式，使其看起來與一般導覽列文字無異 */
button.menu-link-split,
button.menu-link-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* 確保 hover 時也能正常顯示品牌色 */
.menu-item:hover button.menu-link-split,
.menu-item:hover button.menu-link-toggle {
  color: var(--accent-hover);
}

/* Header Right Area */
.top-right-area {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
}

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

.sq-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 0;
  overflow: hidden;
  filter: grayscale(100%);
  transition: opacity 0.2s;
}

.sq-icon img {
  width: 28px;
}

.sq-icon:hover {
  opacity: 0.7;
  filter: none;
}
@media (max-width: 768px) {
.sq-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 0;
  overflow: hidden;
  filter:none;
  transition: opacity 0.2s;
}
}
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Mega Menu (Common) */
.mega-menu {
  z-index: 999;
  background: var(--mega-menu-bg);
  color: var(--text-on-dark);
  border-top: 1px solid #333;
  overflow: hidden;
  /* [優化] PC版預設動畫：透明度與位移 (較快 0.3s) */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; 
}

.mega-split-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  gap: 40px;
}

.mega-cat-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: var(--fuji-green-light);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mega-img-grid {
  display: grid;
  gap: 20px;
}

.img-card {
  position: relative;
  display: block;
  height: 120px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.img-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.3s;
}

.img-card span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
  color: #ccc;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.3s;
}

.img-card:hover {
  transform: translateY(0);
  border-color: var(--fuji-green-light);
  border: 2px solid ;

}

.img-card:hover span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.img-card:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.accordion-toggle {
  display: none;
}

/* PC Mega Menu Specifics */
@media (min-width: 993px) {
  .menu-list {
    justify-content: center;
    gap: 10px;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
  }

  .menu-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mega-section.sec-personal {
    flex: 3;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sec-personal .mega-img-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mega-section.sec-business {
    flex: 1;
    padding-left: 40px;
  }

  .sec-business .mega-img-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .mega-section.sec-support {
    flex: 1;
    width: 100%;
  }

  .sec-support .mega-img-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   5. Slider & Search (Home Components)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: var(--banner-h-pc);
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.full-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 80px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
}

.slider-nav-btn:hover {
  background: var(--fuji-green);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

.slider-pagination {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
  padding: 8px;
}

.pagination-bullet.active {
  background-color: #fff;
  transform: none;
}

/* Google Search Section */
.google-search-section {
  padding: 20px;
  background-color: var(--search-section-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 8px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  transition: border 0.3s;
}

.search-input:focus {
  border-color: var(--accent-hover);
}

.search-btn {
  padding: 8px 30px;
  background-color: #333;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid #333;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background-color: var(--fuji-green);
  border-color: var(--fuji-green);
}


/* ==========================================================================
   6. 頁面專屬樣式 (Page Specific)
   ========================================================================== */

/* --- A. 產品頁 (Products) 網格系統 --- */
.category-header {
  display: flex;
  flex-wrap: wrap; /* 允許換行，防止爆版 */
  align-items: baseline;
  justify-content: space-between;
  margin-top: 48px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.category-title {
  padding-left: 15px;
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 500;
  border-left: 4px solid var(--fuji-green);
}

.category-en {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  text-align: right;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

.more {
  padding: 20px;
  text-align: right;
}

/* --- 手機版 RWD 調整 (768px 以下) --- */
@media (max-width: 768px) {
  .category-header {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }

  .category-title {
    width: 100%;
    font-size: 1.3rem;
    text-align: left;
  }

  .category-en {
    width: 100%;
    margin-top: 5px;
    font-size: 0.75rem;
    text-align: right;
  }
}

/* 產品 Grid 核心 */
.product-grid {
  display: grid;
  width: 100%;
}

/* 產品卡片樣式 */
.product-card {
  display: block;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--card-bg);
  box-shadow: 0 4px 6px var(--shadow-color);
  overflow: hidden;
  aspect-ratio: 2/1;
}

.card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.3s;
}
.product-card:hover .card-bg {
  transform: scale(1.1);
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
}

/* PC 版: 3欄 */
@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

/* Mobile 版: 2欄 */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    aspect-ratio: 2 / 1;
  }

  .product-card .card-text {
    padding: 10px;
    font-size: 14px;
  }
}

/* --- B. 公司簡介 (About/Inc) --- */
.content-block {
  margin-bottom: 40px;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: var(--fuji-green);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--border-color);
}

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

/* --- C. 最新消息 (News) --- */
.news-list {
  max-width: 900px;
  margin: auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.news-item {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.news-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .news-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.news-date {
  margin-bottom: 5px;
  color: var(--fuji-green);
  font-family: monospace;
  font-size: 1rem;
  font-weight: bold;
}

.news-title {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
}

.news-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 限制顯示 2 行 */
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-item {
    flex-direction: row;
    align-items: baseline;
    gap: 20px;
  }

  .news-date {
    width: 120px;
    flex-shrink: 0;
  }
}

/* --- D. 聯絡我們 (Contact) --- */
.contact-container {
  text-align: center;
} 

.info-box h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: var(--fuji-green);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.info-item {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   [新增] 技術支援頁專屬樣式 (Support Page)
   ========================================================================== */

/* 1. 支援頁面網格 (Support Grid) */
.support-grid {
  display: grid;
  width: 100%;
  gap: 25px;
}

/* 電腦版：每列 3 個 */
@media (min-width: 769px) {
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 手機版：每列 1 個 */
@media (max-width: 768px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* 2. 支援頁面卡片 (Support Card) */
.support-card {
  display: block;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--card-bg);
  box-shadow: 0 2px 5px var(--shadow-color);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
}

/* 卡片背景圖與特效 */
.support-card .card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

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

/* 卡片文字層 (垂直水平置中) */
.support-card .card-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
}

.support-card:hover .card-text {
  background: rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   7. Footer (強制全域深黑色樣式)
   ========================================================================== */
#site-footer {
  margin-top: auto;
  padding: 40px;
  background-color: #111111 !important;
  color: #aaaaaa !important;
  font-size: 13px;
  border-top: 1px solid #333333;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.footer-info h3 {
  margin-bottom: 20px;
  color: #ffffff !important;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-info p {
  color: #aaaaaa !important;
}

.footer-copyright {
  width: 100%;
  padding-top: 20px;
  color: #aaaaaa !important;
  text-align: right;
  border-top: 1px solid #333333;
}

#site-footer a {
  color: #aaaaaa;
  transition: 0.3s;
}

#site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
  }

  .footer-copyright {
    text-align: center;
  }
}


/* ==========================================================================
   8. Mobile Navigation Styles
   ========================================================================== */
@media (max-width: 992px) {
  .hero-slider {
    height: var(--banner-h-mb);
  }

  .slider-nav-btn {
    display: none;
  }

  .slider-pagination {
    display: flex;
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
  }

  .header-container {
    justify-content: space-between;
    padding: 0 0 0 20px;
  }

  .hamburger-btn {
    display: flex;
  }

  .social-group {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--top-h);
    left: 0;
    z-index: 2000;
    width: 100%;
    height: calc(100vh - var(--top-h));
    background: #111;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .menu-list {
    display: block;
    height: auto;
    padding-bottom: 50px;
  }

  .menu-item {
    display: block;
    height: auto;
    border-bottom: 1px solid #222;
  }

  .menu-link,
  .menu-link-split {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 20px;
    color: #eee;
    border-radius: 0;
  }

  .menu-link-toggle {
    width: 30px;
    height: 30px;
  }

  .mega-menu {
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: static;
    width: 100%;
    max-height: 0;
    background: #1a1a1a;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .mega-split-layout {
    display: block;
    padding: 0;
    gap: 0;
  }

  .mega-section {
    padding: 0;
    border: none;
  }

  .mega-img-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 20px;
  }

  .img-card {
    height: 80px;
  }

  .mega-cat-title {
    margin: 0;
    margin-top: 0;
    padding: 10px 20px;
    background: #222;
    color: #fff;
    border: none;
  }

  .accordion-toggle {
    display: inline-block;
    width: 60px;
    height: 30px;
    line-height: 30px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s;
    color: #fff;
  }

  .accordion-toggle.active {
    transform: rotate(45deg);
    color: var(--fuji-green-light);
  }
}

/* ==========================================================================
   9. 佈局與通用輔助類別 (Layout & Utilities)
   ========================================================================== */

/* 文字與間距 */
.text-center { text-align: center !important; }
.margin-bottom-md { margin-bottom: 20px !important; }
.padding-y-lg { padding-top: 48px !important; padding-bottom: 48px !important; }
.padding-md { padding: 16px !important; }

/* 響應式圖片 */
.responsive-img { 
  max-width: 100%; 
  margin: auto;
  height: auto; 
  display: block; 
}

/* 顯示與隱藏 */
.hide { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-pc { display: none !important; }
}

/* 網格系統 (Flexbox) 
   抵消外層間距以實現一致的響應式排列 
*/
.flex-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.flex-col {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  width: 100%; /* 預設手機版 100% (對應 s12) */
}

@media (min-width: 769px) {
  .col-3 { width: 25%; }      
  .col-4 { width: 33.3333%; } 
  .col-8 { width: 66.6666%; } 
  .col-9 { width: 75%; }      
}

/* 內容資訊卡片設計 */
.info-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
  height: 100%;
  line-height: 1.6;
}

/* ==========================================================================
   10. 文章內頁專屬樣式 (Article Page Layout)
   ========================================================================== */

/* 限制文章最大寬度以提供舒適的閱讀行長 */
.article-container {
  max-width: 993px;
}

/* 內容卡片外觀 */
.article-content {
  background-color: var(--card-bg);
  padding:32px 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px var(--shadow-color);
  border: 1px solid var(--border-color);
}

/* 文章主視覺圖 */
.article-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 21 / 9; /* 電影感寬比例 */
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 大標題 */
.article-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 前導引言 (Lead) */
.article-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 35px;
  padding: 18px 25px;
  background-color: rgba(66, 185, 131, 0.08); /* 富士綠微透底色 */
  border-left: 5px solid var(--fuji-green);
  font-weight: 500;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* 中標題 */
.article-subtitle {
  font-size: 1.6rem;
  color: var(--fuji-green);
  margin: 45px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}

/* 內文 */
.article-body {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 35px;
  text-align: justify;
}

/* 表格外部容器 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 45px;
}

/* 共用表格設計 */
.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px; /* 防止手機版過度擠壓 */
}

.article-table th, 
.article-table td {
  padding: 16px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
}

.article-table th {
  background-color: var(--fuji-green);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.article-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .article-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

.article-table tr:hover {
  background-color: rgba(66, 185, 131, 0.05); /* Hover 提示效應 */
}

/* 列表設計 */
.article-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 45px;
}

.article-list li {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 28px;
  color: var(--text-primary);
}

/* 自訂客製化綠色打勾/圓點 list icon */
.article-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--fuji-green);
  font-size: 0.8rem;
}

/* 報名按鈕 */
.margin-y-lg {
  margin-top: 50px !important;
  margin-bottom: 20px !important;
}

.btn-primary {
  display: inline-block;
  background-color: var(--fuji-green);
  color: #ffffff;
  padding: 16px 48px;
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(38, 115, 77, 0.3);
}

.btn-primary:hover {
  background-color: var(--fuji-green-light);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(38, 115, 77, 0.4);
}
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 0px;
height: 0;
overflow: hidden;
	background-color: rgba(0,0,0,0.00);
	z-index: 3;
}
.video-container iframe, .video-container object, .video-container embed {
position: absolute;
top: 0;left: 0;
width: 100%;
height: 100%;}

video {
  width: 100%;
  height: auto;
}
/* 手機版調整 */
@media (max-width: 768px) {
  .article-content {
    padding: 30px 20px;
  }
  
  .article-title {
    font-size: 1.7rem;
  }
  
  .article-hero-img {
    aspect-ratio: 16 / 9;
    margin-bottom: 25px;
  }
  
  .article-lead {
    font-size: 1.05rem;
    padding: 15px;
  }
  
  .btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   11. FDI 沖印中心專屬樣式 (FDI Page)
   ========================================================================== */

/* 第一層黏性：頁籤 (Tabs) */
.menu-bar {
  margin: 0 auto;
  border-bottom: 2px solid var(--border-color);
  max-width: 800px;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0; /* 接在網頁 Header 下方 */
  z-index: 32; 
  background-color: var(--page-bg); 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-link {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-link:hover {
  color: var(--text-primary);
  background-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] .tab-link:hover {
  background-color: rgba(255,255,255,0.1);
}

.tab-link.active {
  color: #fff;
  background-color: var(--fuji-green);
  font-weight: bold;
}

/* FDI 內容區塊結構 */
.content-box {
  display: none;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 60px; /* 底部留白 */
}

.content-box.active {
  display: block;
  animation: fadeIn 0.5s;
}

/* 第二層黏性：地區說明 */
.region-desc {
  text-align: center;
  padding: 8px;
  margin: 0;
  background-color: var(--search-section-bg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 46px; /* Header(48px) + Menu(約54px) */
  z-index: 32;
}

/* FDI 專屬捲動容器 */
.content-box .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  margin-bottom: 0; /* 覆蓋文章的底部間距 */
}

/* FDI 表格樣式 */
.fdi-table {
  width: 100%;
  border-collapse: separate; /* 修正 sticky border 問題 */
  border-spacing: 0;
  white-space: nowrap;
  background-color: var(--card-bg);
  color: var(--text-primary);
  font-size: .9rem;
}

.fdi-table th, 
.fdi-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

/* 第三層黏性：表格標題 */
.fdi-table th {
  background-color: #444;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;        
  position: sticky;
  top: 0; /* Header + Menu + Desc */
  z-index: 28;
}

/* 深色模式修正 */
[data-theme="dark"] .fdi-table th {
  background-color: #222;
  border-bottom: 1px solid #555;
}

/* 第一欄 (店名) 左側鎖定 */
.fdi-table td:first-child,
.fdi-table th:first-child {
  position: sticky;
  left: 0; 
  z-index: 2;
}

/* 表頭的第一欄層級要最高 */
.fdi-table th:first-child {
  z-index: 31;
}

/* 設定第一欄背景色 (淺色模式) */
.fdi-table td:first-child {
  background-color: var(--card-bg);
  border-right: 2px solid var(--border-color);
  font-weight: bold;
  color: var(--fuji-green);
}

/* 設定第一欄背景色 (深色模式) */
[data-theme="dark"] .fdi-table td:first-child {
  background-color: var(--card-bg);
  color: var(--accent-hover);
  border-right: 1px solid #444;
}

[data-theme="dark"] .fdi-table th:first-child {
  background-color: #222;
  border-right: 1px solid #555;
}

/* 連結與圖示 */
.fdi-table a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
}
.fdi-table a:hover { 
  color: var(--accent-hover); 
  text-decoration: underline; 
}
.fdi-table img { 
  width: 18px; 
  height: auto; 
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   12. 韌體更新教學頁專用樣式 (Support Guide Page)
   ========================================================================== */

/* 輔助文字顏色與粗細 */
.text-danger {font-size: large; color: #d9534f !important; }
.text-brand { color: var(--fuji-green) !important; }
.fw-bold { font-weight: bold !important; }

/* 警告與須知區塊 (Notice Box) */
.notice-box {
  background-color: rgba(217, 83, 79, 0.05); /* 淡紅色背景 */
  border-left: 4px solid #d9534f;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

[data-theme="dark"] .notice-box {
  background-color: rgba(217, 83, 79, 0.1);
}

.notice-title {
  color: #d9534f;
  font-size: 1.15rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.notice-box p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

/* 步驟專用列表 (無方塊圖示的列表) */
.step-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 35px;
}

.step-list li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-primary);
}

/* 步驟圖片統一加邊框與圓角，避免融於背景 */
.step-img {
  margin-top: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  max-width: 100%; 
  /* 圖片稍微限寬，避免在電腦版過大 */
  max-height: 350px; 
  width: auto;
}
