:root {
  --toshiba-green: #00502D;
  --toshiba-green-dark: #004129;
  --bg-light: #f9f9f9;
  --text-main: #171717;
  --text-muted: #525252;
  --text-light: #a3a3a3;
  --border-color: #e5e5e5;
  --font-main: 'Noto Sans TC', sans-serif;
}

/* ==========================================================================
   Typography System (全站偶數規範管控區)
   ========================================================================== */
html {
  font-size: 16px;
}

/* 1. 基礎鎖定 (從小到大排列) */
.text-xs {
  font-size: 12px;
  line-height: 1.6;
}

/* 全站基礎文字規範 (p, .text-base) */
body,
p,
.text-base {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
}


.text-sm {
  font-size: 14px;
  line-height: 1.6;
}
.dyson-btn {
  font-size: 16px;
  line-height: 1.6;
}


/* 標籤預設尺寸 (補足 Tailwind Reset) */
html body h1 {
  font-size: 40px;
  font-weight: 900;
}

html body h2 {
  font-size: 32px;
  font-weight: 900;
}

html body h3,
html body .card-title {
  font-size: 28px;
  font-weight: 900;
}

html body h4 {
  font-size: 24px;
  font-weight: 700;
}

html body h5 {
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 768px) {
  html body h1 {
    font-size: 60px;
  }

  html body h2 {
    font-size: 40px;
  }
}

/* 確保動畫內部的 span 永遠跟隨父層標籤設定的尺寸 */
.title-split-reveal span,
.section-title span {
  font-size: inherit;
  line-height: inherit;
}

/* 2. 進階鎖定 (響應式優化) */
@media (min-width: 768px) {
  html body p {
    font-size: 18px;
  }
}

/* 標題前的小綠圓圈 */
.dot-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dot-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--toshiba-green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

body {
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.editorial-shadow {
  box-shadow: 0 32px 64px -12px rgba(0, 41, 24, 0.06);
}

.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Toshiba Shared Components */
.toshiba-news-card {
  background-color: #ffffff;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.toshiba-news-card:hover {
  box-shadow: none;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-pagination-bullet-active {
  background: var(--toshiba-green);
}

.swiper-pagination {
  z-index: 40;
  bottom: 24px;
}

.hero-height {
  height: 560px;
}

@media (min-width: 768px) {
  .hero-height {
    height: 80vh;
    min-height: 700px;
    max-height: 900px;
  }
}

.video-crop {
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.1);
  transform-origin: center center;
}

html body .contact-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #171717;
  background-color: transparent;
  color: var(--text-main);
  padding-top: 1.25rem;
  padding-bottom: 8px;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: all 0.3s ease;
}

html body .contact-input:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: #171717;
}

/* 浮動標籤核心動畫 - 樣式與購買日期同步 */
.floating-group {
  position: relative;
}

.floating-label {
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-size: 1rem;
  /* 調回 16px */
  color: #a3a3a3;
  /* 預設 Placeholder 淺色 */
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
}

/* 共用的上浮標籤樣式 */
.field-label-active,
.contact-input:focus~.floating-label,
.contact-input:not(:placeholder-shown)~.floating-label {
  top: -8px;
  /* 往上多拉一點間距 */
  font-size: 0.875rem;
  /* 14px */
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}



/* 日期選擇器樣式優化 */
input[type="date"].contact-input {
  color: #a3a3a3;
  /* 使用 slate-400 作為預設顏色 */
}

input[type="date"].contact-input:focus,
input[type="date"].contact-input:valid {
  color: #171717;
  /* 選擇後變為深色 */
}

/* 檔案上傳區域 Hover 反饋 */
.contact-input[type="file"] {
  padding-right: 80px;
}

.contact-input[type="file"]:hover {
  border-color: var(--toshiba-green);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.animate-fadeIn {
  opacity: 0;
}

body.hero-ready .swiper-slide-active .animate-fadeIn {
  animation: fadeIn 1s forwards;
}

/* Ken Burns 效果：改用 Transition 以確保在 Swiper 切換時比例連續不跳動 */
.ken-burns-img {
  transform: scale(1.15);
  /* 初始放大比例 */
  will-change: transform;
  transition: transform 6.5s linear;
  /* 與投影片停留時間相匹配 */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 當投影片啟動時（包含循環生成的 duplicate），開始緩慢縮放 */
body.hero-ready .swiper-slide-active .ken-burns-img,
body.hero-ready .swiper-slide-duplicate-active .ken-burns-img {
  transform: scale(1.0);
}

/* Inner Page Banner Zoom Out Effect */
@keyframes bannerZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1.0);
  }
}

.banner-zoom-out {
  transform: scale(1.15);
  will-change: transform;
}

.banner-zoom-out.active {
  animation: bannerZoomOut 4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Parallax Container: 啟動硬體加速以提升視差流暢度 */
.parallax-wrapper {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Dyson Style Ripple Button */
.dyson-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
  border-radius: 28px;
}

.dyson-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  padding-top: 300%;
  background: #004129;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1;
  transition: transform 0.6s ease;
}

.dyson-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.dyson-btn:hover {
  color: #fff;
}

/* Title Staggered Reveal and Line Animation */
.title-split-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.title-split-reveal.active span {
  opacity: 1;
  transform: translateY(0);
}

.line-reveal {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 200ms;
}

.line-reveal.center-line {
  transform-origin: center;
}

.line-reveal.active {
  transform: scaleX(1);
}

.btn-underline {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding-bottom: 4px;
  overflow: hidden;
}

.btn-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00502D;
}

.btn-underline:hover::after {
  animation: samsungSwipe 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 移除點點背景，改為純淺灰色背景 */
.dynamic-dot-grid {
  position: relative;
  background-color: #f9f9f9;
}

.dynamic-dot-grid>section {
  position: relative;
  z-index: 10;
}

/* Mega Menu Styles */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  background: white;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #f5f5f5;
  z-index: 100;
  transform: translateY(10px);
  pointer-events: none;
}

.mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 110;
  pointer-events: auto;
}

.mega-menu-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem 2rem;
}

.mega-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mega-product-image {
  width: 100px;
  aspect-ratio: 1/1;
  margin: 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.mega-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  transform: scale(0.7);
  /* Doubled from 0.35 to 0.7 */
}

.mega-product-card:hover .mega-product-image img {
  transform: scale(0.75);
}

.mega-product-title {
  font-weight: 900;
  color: #000;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.mega-product-card:hover .mega-product-title {
  color: #00502D;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background: white;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

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

.mobile-menu-header {
  padding: 1.5rem 2rem 0.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mobile-menu-body {
  padding: 0.5rem 2rem calc(2rem + env(safe-area-inset-bottom)) 2rem;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  width: 100%;
  text-align: left;
  /* border removed */
}

/* 處理 HTML 內聯類別 !border-b-0 的優先權 */
.mobile-nav-link.\!border-b-0 {
  border-bottom: none !important;
}

.mobile-nav-link-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* border removed */
  transition: border-color 0.3s;
}

/* 關鍵：展開時隱藏標題下方的線條邏輯已移至文件末尾統一管理 */

.mobile-nav-separator {
  width: 1px;
  height: 1.25rem;
  background-color: #d4d4d4;
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: transparent;
  border-radius: 0;
  /* border removed */
  /* 這是關鍵：展開內容底部的線條 */
}

.mobile-accordion-content.active {
  max-height: 500px;
  margin: 1rem 0;
}

.mobile-sub-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #262626;
  font-weight: 700;
}

.mobile-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
}

.mobile-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  padding: 1rem 0.5rem;
  border-radius: 28px;
  text-decoration: none;
}

.mobile-product-image {
  width: 80px;
  aspect-ratio: 1/1;
  margin: 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.mobile-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.7);
}

.mobile-product-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1c1c;
}

/* Fixed Nav Backdrop on Hover */
.nav-hover-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 40;
  backdrop-filter: blur(4px);
}

.group:hover~.nav-hover-backdrop {
  opacity: 1;
  visibility: visible;
}

@keyframes samsungSwipe {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }

  10% {
    transform: scaleX(0);
    transform-origin: right;
  }

  11% {
    transform: scaleX(0);
    transform-origin: left;
  }

  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Scroll Reveal Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  /* 僅針對必要屬性進行過渡以提升效能 */
  transition: transform 1.2s ease, opacity 1.2s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Swipe Reveal from Center Animation - Clean Start */
.reveal-swipe-center {
  clip-path: inset(0 50% 0 50%);
  -webkit-clip-path: inset(0 50% 0 50%);
  opacity: 0;
  transition: clip-path 2.0s cubic-bezier(0.19, 1, 0.22, 1), -webkit-clip-path 2.0s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
  will-change: clip-path, -webkit-clip-path, opacity;
}

.reveal-swipe-center.active {
  clip-path: inset(0 0 0 0) !important;
  -webkit-clip-path: inset(0 0 0 0) !important;
  opacity: 1 !important;
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.5s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reveal-slide-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.reveal-fade.active {
  opacity: 1;
}

.hp-scroll-wrapper {
  position: relative;
  height: 350vh;
  /* 增加到 350vh 提供更優雅的滑動節奏 */
  /* 增加捲動深度以適應藝廊水平寬度 */
}

.hp-sticky-box {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 160px;
  /* 拉大項目間距至 160px */
  padding-left: 0;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 100%;
  max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
  /* 固定間距以便計算比例 */
}

/* 圖片裝裱效果 */
.gallery-image-frame {
  width: calc((100% - 80px) * 0.6);
  /* 改用 100% 進行響應式計算 */
  background: transparent;
  padding: 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.gallery-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}


.gallery-text-content {
  width: calc((100% - 80px) * 0.4);
  /* 改用 100% 進行響應式計算 */
  position: relative;
  padding-right: 0;
}

/* 手機版優化：上下排版 */
@media (max-width: 767px) {
  .hp-scroll-wrapper {
    height: auto !important;
    /* 取消桌機版 350vh 高度 */
  }

  .hp-sticky-box {
    position: relative !important;
    height: auto !important;
    padding: 60px 0;
  }

  .gallery-track {
    flex-direction: column !important;
    transform: none !important;
    gap: 80px;
  }

  .gallery-item {
    flex-direction: column !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    gap: 30px;
  }

  .gallery-image-frame,
  .gallery-text-content {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .bg-number {
    font-size: 120px;
    top: -40px;
    left: -10px;
  }
}

/* Preloader Styles (AAPD Style) */
.preloader-wrapper {
  position: fixed;
  inset: 0;
  /* 確保上下左右完全貼齊邊界 */
  width: 100%;
  height: 100%;
  /* 基本高度填充 */
  height: 100dvh;
  /* 針對行動裝置動態高度的精準計算 */
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  padding-bottom: env(safe-area-inset-bottom);
  /* 考慮 iPhone 底部安全區域 */
}

.preloader-wrapper.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 220px;
  height: auto;
  opacity: 0;
  transform: scale(1.2);
  animation: logoReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.preloader-bar-container {
  width: 100%;
  height: 1.5px;
  background: rgba(0, 0, 0, 0.06);
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInSimple 0.8s ease forwards 0.5s;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #000000;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInSimple {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
       Entry Content Styles (參考 BissiMo 樣式規範)
       ========================================================================== */
.entry-content {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* Headings */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-main);
  line-height: 1.25em;
  font-weight: bold;
  margin-top: 48px;
  margin-bottom: 1em;
  border: none;
  padding: 0;
  background: none;
}

.entry-content h2 {
  font-size: 30px;
}

.entry-content h3 {
  font-size: 28px;
}

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

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

.entry-content h6 {
  font-size: 18px;
}

/* 排除第一個元素的上邊距 */
.entry-content>*:first-child {
  margin-top: 0;
}

/* Paragraphs */
.entry-content p {
  margin-top: 1.25em;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-top: 1em;
  line-height: 1.88em;
  color: var(--text-muted);
  font-size: 18px;
}

@media (max-width: 767.98px) {

  .entry-content p,
  .entry-content li {
    font-size: 16px;
  }
}

.entry-content li:first-child {
  margin-top: 0;
}

/* Unordered List Custom Marker */
.entry-content ul {
  list-style-type: none;
  padding-left: 1.5rem;
}

.entry-content ul>li {
  position: relative;
}

.entry-content ul>li:before {
  content: "";
  display: inline-block;
  position: absolute;
  top: 14px;
  left: -1.25rem;
  width: 6px;
  height: 6px;
  background-color: var(--toshiba-green);
  border-radius: 50%;
}

/* Ordered List */
.entry-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}

.entry-content ol>li {
  list-style-type: decimal;
  margin-top: 1em;
}

/* Nested Lists Spacing */
.entry-content li>ul,
.entry-content li>ol {
  margin-top: 1em;
  margin-bottom: 0;
}

/* Links inside content */
.entry-content a {
  color: var(--toshiba-green);
  text-decoration: underline;
  word-break: break-all;
  /* 解決超長連結斷行問題 */
  transition: opacity 0.3s;
}

.entry-content a:hover {
  opacity: 0.7;
}

/* Video Container */
.entry-content iframe,
.entry-content video {
  max-width: 100%;
  border-radius: 4px;
}

/* Horizontal Rule */
.entry-content hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* Image Captions */
.entry-content .wp-caption {
  margin: 40px auto;
  text-align: center;
}

.entry-content .wp-caption img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.entry-content .wp-caption-text {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.6;
  text-align: center;
}

/* Blockquote */
.entry-content blockquote {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f8fafc;
  border-left: 4px solid var(--toshiba-green);
  font-style: italic;
}

/* ==========================================================================
       Modern News Layout (參考參考圖片)
       ========================================================================== */
.article-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.article-meta-author {
  font-weight: 700;
  color: #000;
  margin-top: 1rem;
  font-size: 0.875rem;
  /* 14px */
}

.article-meta-date {
  font-size: 0.875rem;
  /* 14px */
  font-weight: 700;
  color: #94a3b8;
  /* slate-400 */
  margin-top: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-category-tag {
  display: inline-block;
  background-color: #00502D;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* Layout with Sidebar */
.article-with-sidebar {
  display: flex;
  gap: 4rem;
  position: relative;
  align-items: flex-start;
  /* 讓 sidebar 可以 sticky */
}

.article-sidebar {
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 120px;
  /* 距離頂部間距 */
  z-index: 10;
}

/* Full Bleed Image (打破容器寬度) */
.full-bleed-image {
  width: 100vw;
  height: 500px;
  /* 設定固定高度 */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  overflow: hidden;
}

.full-bleed-image>img {
  position: absolute;
  top: -10%;
  /* 向上偏移 10% 以補償 120% 高度的中心點 */
  left: 0;
  width: 100%;
  height: 120%;
  /* 確保高度大於容器提供視差空間 */
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

@media (max-width: 767px) {
  .full-bleed-image {
    height: 300px;
    /* 手機版高度縮減 */
  }
}

.sidebar-social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  color: #404040;
  transition: all 0.3s;
}

.sidebar-social-btn:hover {
  background-color: #f5f5f5;
  color: #000;
  border-color: #d4d4d4;
}

.sidebar-social-btn i {
  font-size: 1.1rem;
}

.article-main-body {
  flex: 1;
  min-width: 0;
}

/* Lead Text Paragraph */
.lead-text {
  font-size: 1.375rem;
  /* ~22px */
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 2rem;
}

@media (max-width: 1023px) {
  .article-with-sidebar {
    flex-direction: column;
    gap: 0;
  }

  .article-sidebar {
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 2rem;
    padding-top: 0;
    position: static;
    top: auto;
    width: 100%;
    flex: none;
  }
}

/* Nav Entry Animation */
nav {
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.nav-visible {
  transform: translateY(0);
}

/* Section Scoped Styles */

#tech-narrative-desktop {
  display: none;
}

@media (min-width: 768px) {
  #tech-narrative-desktop {
    display: block;
  }
}

/* GPU 加速優化，解決捲動卡頓 */
#tech-content,
#tech-locked-image,
.reveal-item,
.reveal-swipe-center,
.hp-scroll-item {
  will-change: transform, opacity, clip-path, -webkit-clip-path;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Hide browser default date icon and expand click area to full input */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* 統一所有輸入欄位的預設提示文字樣式 */
.contact-input::placeholder {
  color: #a3a3a3;
  font-weight: 400;
  opacity: 1;
  /* Firefox 修正 */
}

/* 手機選單線條規範 */
.mobile-nav-link,
.mobile-nav-link-wrapper,
.mobile-accordion-content {
  border-bottom: none;
}

/* 預設標題與獨立連結顯示底線 */
.mobile-nav-link-wrapper,
.mobile-nav-link:not(.mobile-nav-link-wrapper .mobile-nav-link) {
  border-bottom: 1px solid var(--border-color);
}

/* 展開時隱藏標題底線，並在展開內容底部顯示線條 */
.mobile-nav-link-wrapper.active {
  border-bottom-color: transparent;
}

.mobile-accordion-content.active {
  border-bottom: 1px solid var(--border-color);
}

/* Footer 專屬規範：鎖定 16px (透過權重蓋過全域設定) */
body footer h4,
body footer a,
body footer p {
  font-size: 16px;
}

body footer p.text-xs {
  font-size: 12px;
}

.featured-bento {
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-bento:hover {
  background-color: var(--border-color);
  /* 滑入時變成更淺的中性灰藍，增加明度對比 */
}

/* ==========================================================================
   TOSHIBA v2 - 產品列表與內頁全新設計系統 (WooCommerce & D-Link 風格)
   ========================================================================== */

/* 全域變數/微調 */
:root {
  --primary-color: #00502D;     /* REGZA 經典深綠 */
  --primary-hover: #00361e;     /* 深綠 Hover */
  --accent-color: #10b981;      /* 鮮明翠綠 */
  --bg-light: #f8fafc;          /* 輕盈背景 */
  --text-dark: #0f172a;         /* 深色文字 */
  --text-muted: #64748b;        /* 靜態文字 */
  --border-light: #e2e8f0;      /* 細微邊框 */
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* 1. 客製化核取方塊 (Custom Checkbox) */
.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #d4d4d4;
  border-radius: 6px;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

input[type="checkbox"]:checked + .custom-checkbox {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 2. 動態產品卡片動畫 (Card & Grid Animations) */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card-fade {
  animation: cardFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* 3. 產品比較抽屜 (Compare Drawer) */
#compare-drawer {
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
}

/* 4. 側邊購物車抽屜與遮罩 (Mini Cart Side Drawer & Overlay) */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

/* 5. 購物車項目清單 (Cart Item Styles) */
.cart-item-row {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background-color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-item-qty-btn:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

/* 6. 全域 Toast 吐司通知 */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 7. 產品內頁相簿展示 (Gallery & Thumbnail Carousel) */
.gallery-thumbnail {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-thumbnail.active {
  transform: scale(1.05);
}

/* 8. 產品內頁數量控制器 (Single Quantity Selector) */
.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid #d4d4d4;
  border-radius: 9999px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: bold;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

.qty-input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  outline: none;
  pointer-events: none;
}

/* 9. 商品詳情分頁 (WooCommerce standard Tabs) */
.tab-btn {
  position: relative;
  font-weight: 600;
  color: #a3a3a3;
  padding: 10px 8px;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: var(--text-main);
  text-decoration: none;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  display: none;
}

.tab-btn.active {
  color: var(--text-main);
}

.tab-btn.active::after {
  width: 100%;
  display: none;
}

.tab-panel {
  display: none;
  animation: panelFadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 10. D-Link 現代篩選面板捲動控制 (Sticky Filter Panel) */
@media (min-width: 1024px) {
  .sticky-filter-panel {
    position: sticky;
    top: 112px; /* Header 高度 80px + 32px 間距 */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

/* 11. 浮動購物車按鈕定義 (優化原本 icon 的狀態) */
#header-cart-badge {
  background-color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-cart-badge.pulse {
  transform: scale(1.4);
  background-color: var(--accent-color);
}

/* ==========================================================================
   About Page Timeline Specific Styles
   ========================================================================== */
.tech-num {
  font-family: 'Oswald', sans-serif;
}

/* 時間軸軌跡動態延伸 */
.timeline-progress {
  height: 0%;
  transition: height 0.1s linear;
}

.focus\:outline-none:focus {
  box-shadow: none !important
}