/* ==========================================================================
   巴洛克音響 (ANSBACH ACOUSTIC) 元件與互動樣式庫
   ========================================================================== */

/* 錨點滾動定位補償（防止固定導覽列遮蔽標題） */
section[id], footer[id], [id] {
  scroll-margin-top: 96px;
}

/* 頂部導覽列 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 頂部導航列專屬企業識別 (Logo + 粗黑體中文橫向對齊) */
.navbar .brand-logo {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0; /* 消除 flex gap，由 margin-right 精準校準圖檔透明留白 */
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .brand-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 60px;
  width: auto;
  aspect-ratio: 240 / 260;
  margin-right: -7px; /* M16 精準抵銷 logo.png 右側透明邊界，使可見粉紅圖形至巴洛克音響中文字邊距約 4.5~5px */
  object-fit: contain;
  display: block;
}

.navbar .brand-logo-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.1;
}

.brand-logo-sub {
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 500;
}

/* 桌機導航容器置中平衡 */
.navbar-container > nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 16px;
  font-weight: 600;
  color: #E8E4DE;
  letter-spacing: 0.04em;
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

/* 按鈕樣式規範 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b0d12;
  box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.btn-outline:hover {
  background: rgba(197, 168, 128, 0.12);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==================== Hero 品牌首頁影音橫幅 (M4-02 桌機 16:9 Banner) ==================== */
.hero-section {
  position: relative;
  width: 100%;
  background: #0a0c10;
  padding-top: 80px; /* 避開固定頂部導覽列 */
  overflow: hidden;
}

.hero-banner-container {
  position: relative;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.hero-banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px); /* 確保在桌機螢幕上完整顯示，不超過可視高度 */
  overflow: hidden;
  background: #0a0c10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 嚴格維持 16:9 比例，絕不拉伸變形、不裁切器材與 Logo */
  display: block;
  background: #0a0c10;
  position: relative;
  z-index: 1;
}

/* 精簡操作區：保留原「選音響」「預約試聽」功能，懸浮置底不遮擋器材、Logo 與文字 */
.hero-action-dock {
  position: absolute;
  bottom: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 30; /* 確保絕對高於 video 與任何背景層 */
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 168, 128, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.hero-action-dock:hover {
  border-color: rgba(197, 168, 128, 0.75);
  box-shadow: 0 10px 28px rgba(197, 168, 128, 0.25);
}

.btn-dock {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 32;
}

/* M4-04 香檳金原聲音訊開關 (低調奢華懸浮，可自適應靜音與原聲切換) */
.hero-sound-toggle {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 168, 128, 0.42);
  border-radius: var(--radius-pill);
  color: var(--champagne-gold, #c5a880);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, transform 0.2s ease, color 0.28s ease;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hero-sound-toggle:hover {
  background: rgba(18, 22, 28, 0.92);
  border-color: rgba(197, 168, 128, 0.85);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.28);
  transform: translateY(-1px);
  color: #fff;
}

.hero-sound-toggle:active {
  transform: translateY(0) scale(0.97);
}

.hero-sound-toggle:focus-visible {
  outline: 2px solid var(--champagne-gold, #c5a880);
  outline-offset: 2px;
}

.hero-sound-toggle.is-playing {
  border-color: rgba(197, 168, 128, 0.85);
  background: rgba(28, 24, 18, 0.85);
  color: #f7eedf;
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.35);
}

.hero-sound-toggle .sound-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-sound-toggle .sound-icon {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-sound-toggle.is-playing .sound-wave-anim {
  animation: soundWavePulse 1.2s infinite ease-in-out;
}

@keyframes soundWavePulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-sound-toggle .sound-label {
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
}

/* 手機版專屬雙按鈕操作列 (桌機預設隱藏，由 responsive.css 在 <=768px 啟用) */
.hero-mobile-cta-strip {
  display: none;
}

/* 品牌信任數據列 (深色尊榮質感過渡列) */
.hero-trust-strip {
  width: 100%;
  background: #0d0f14;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  padding: 18px 0;
}

.hero-trust-strip .hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-trust-strip .hero-trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-trust-strip .trust-val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.hero-trust-strip .trust-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-trust-strip .trust-sep {
  color: rgba(197, 168, 128, 0.3);
  font-size: 1.1rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 低視覺權重精簡信任資訊列 */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-trust-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0; /* 消除 flex gap，由 margin-right 精準校準圖檔透明留白 */
}

.hero-trust-item .trust-val {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
}

.hero-trust-item .trust-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.trust-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

/* 品牌卡片矩陣 (Module 1) */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}

.brand-card-img-wrapper {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.brand-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.brand-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(22, 27, 37, 0.95) 100%);
}

.brand-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  font-size: 0.75rem;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
}

.brand-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brand-country {
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.brand-tagline {
  font-size: 0.95rem;
  color: var(--text-gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.brand-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.brand-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}


/* 模態視窗通用樣式 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

/* M5-02 VIP 電話預約資訊卡樣式 */
.phone-booking-card {
  width: 100%;
}

.phone-number-display:hover {
  color: #ffffff !important;
  text-shadow: 0 0 20px var(--gold-glow);
}

@media (max-width: 480px) {
  .phone-number-display {
    font-size: 1.85rem !important;
  }
}

/* 表單控制元件 */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-label span.required {
  color: var(--accent-rose);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
  background: rgba(255, 255, 255, 0.08);
}


/* ==================== 關於巴洛克 (About Ansbach Section) ==================== */
.about-section {
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.about-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  position: relative;
}

.about-title {
  font-size: 2.4rem;
  color: #ffffff;
  margin: 18px 0 28px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.about-body p {
  font-size: 1.25rem; /* M16 Excel 第 159 列指示字大一點，舒適閱讀比例 */
  color: var(--text-secondary);
  line-height: 2.05;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
}

.about-signoff {
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-family: Arial, sans-serif;
  font-weight: 600;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  font-style: normal;
}

/* 產品保固與售後服務 (Module 9) */
.warranty-service-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
  position: relative;
}

.warranty-service-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 12px 40px rgba(197, 168, 128, 0.22);
}

.warranty-card-badge-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: inline-block;
  line-height: 1;
}

.warranty-card-title {
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.warranty-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.warranty-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}

/* 產品保固註冊須知 (M15-05B 現行官網原文移植) */
.warranty-notice-box {
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin: 32px 0 28px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.warranty-notice-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  font-size: 1.25rem !important;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warranty-notice-list {
  padding-left: 24px !important;
  gap: 14px !important;
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warranty-notice-list li {
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
  color: #e2e8f0 !important;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

.warranty-notice-privacy {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.86rem;
  color: var(--gold-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.warranty-contact-box {
  border-top: 1px solid var(--border-subtle);
  margin-top: 36px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

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

.contact-item-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.contact-item-value:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* VIP 電子報簡潔訂閱列 (Module 10) */
.newsletter-strip {
  padding: 24px 0;
  background: rgba(14, 17, 24, 0.95);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.newsletter-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-strip-info {
  flex: 1;
  min-width: 260px;
}

.newsletter-strip-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 4px;
}

.newsletter-strip-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.newsletter-strip-form {
  display: flex;
  gap: 10px;
  min-width: 300px;
  flex: 1;
  max-width: 440px;
  align-items: center;
}

.newsletter-strip-form .form-control {
  padding: 10px 16px;
  font-size: 0.88rem;
  flex: 1;
}

.newsletter-strip-form .btn {
  white-space: nowrap;
  padding: 10px 20px;
}

/* Toast 提示浮動窗 */
.toast-container {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(22, 27, 37, 0.96);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 展開折疊按鈕列通用樣式 */
.section-toggle-bar {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

/* ==================== 品牌精選 BRANDS (9:16 直式四品牌輪播母版) ==================== */
.brand-showcase-section {
  background-color: #f7f4ee; /* 暖象牙白背景 */
  color: #1a1a1a;
  padding: 80px 0 60px;
  position: relative;
}

.brand-showcase-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* 標題區：—— 品牌精選 BRANDS —— */
.brand-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.header-divider-line {
  height: 1px;
  width: 90px;
  background-color: #c5a880; /* 香檳金細線 */
  opacity: 0.7;
}

.brand-section-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.heading-zh {
  font-family: 'Noto Serif TC', var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #1a1a1a;
}

.heading-en {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #1a1a1a;
}

/* 輪播控制與卡片舞台外框 */
.brand-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

/* 桌機切換箭頭 */
.brand-arrow-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 5;
  flex-shrink: 0;
  outline: none;
}

.brand-arrow-btn:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.brand-arrow-btn:active {
  transform: scale(0.9);
}

.brand-showcase-stage {
  width: 100%;
  max-width: 1240px;
  margin: 0 12px;
}

/* 桌機版四張卡片並排網格 */
.brand-desktop-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* 9:16 直式精品卡片 */
.brand-vertical-card {
  aspect-ratio: 9 / 16;
  background: #ffffff;
  border: 1px solid rgba(197, 168, 128, 0.32);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.brand-vertical-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(197, 168, 128, 0.18);
  border-color: rgba(197, 168, 128, 0.65);
}

/* 卡片上方：原廠器材圖片框 (maintain original ratio, contain) */
.brand-card-img-wrap {
  width: 100%;
  height: 48%;
  box-sizing: border-box;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
  position: relative;
  overflow: hidden;
}

.brand-card-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 堅持 contain，器材比例等比置中不裁切 */
  display: block;
  transition: transform 0.4s ease;
}

.brand-vertical-card:hover .brand-card-product-img {
  transform: scale(1.04);
}

/* 卡片下方：品牌資訊區 (圖上字下) */
.brand-card-info-wrap {
  flex: 1;
  min-height: 0;
  height: 52%;
  box-sizing: border-box;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: #ffffff;
}

.brand-card-title {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

/* 三項特色列表 */
.brand-card-features-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  margin-bottom: 8px;
}

.brand-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

.brand-feature-item:first-child {
  border-top: 1px solid rgba(197, 168, 128, 0.2);
}

.feature-icon-box {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-svg-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.feature-text {
  font-family: 'Noto Serif TC', var(--font-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: #33312e;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 探索按鈕區 */
.brand-card-action-wrap {
  margin-top: auto;
  width: 100%;
}

.brand-explore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  background-color: #8e734c; /* 香檳金 / 暖銅色 */
  color: #ffffff;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(142, 115, 76, 0.2);
  transition: all 0.25s ease;
}

.brand-explore-btn:hover {
  background-color: #7a613d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 115, 76, 0.32);
  color: #ffffff;
}

/* ATD 不顯示連結時的對齊留白 */
.brand-explore-placeholder {
  height: 36px;
  width: 100%;
}

/* 底部頁碼與分組指示器 */
.brand-pagination-container {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-pagination-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.brand-group-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(197, 168, 128, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.group-dot.active {
  background: #8e734c;
  width: 40px;
}

.brand-pagination-mobile {
  display: none;
}

.pagination-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background-color: #c5a880;
  opacity: 0.6;
}

.pagination-number {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #635f56;
}

/* ==================== 手機底部固定導覽列 (Mobile Bottom Nav) ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  align-items: center;
  justify-content: space-around;
  padding-top: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  padding-left: 2px;
  padding-right: 2px;
  min-height: 58px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  padding: 4px 2px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item span:not(.mobile-nav-icon) {
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.mobile-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--gold-light);
}

.mobile-nav-item.active {
  font-weight: 600;
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: scale(1.1);
}

/* ==================== M16 局部字級與排版微調 ==================== */
/* 第 171 列：保固區塊說明文字放大 */
#warranty-section .section-desc {
  font-size: 1.35rem;
  line-height: 1.95;
  color: #ffffff;
  font-weight: 500;
  max-width: 780px;
  margin: 0 auto;
}

/* 預約彈窗「巴洛克音響」品牌抬頭適度放大 (M16 補正) */
.modal-brand-title {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: var(--gold-light) !important;
  letter-spacing: 0.06em;
  display: inline-block;
}

/* ==================== 頁尾三欄長者友善全新設計 (M16 補正) ==================== */
.footer-grid-three {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

.footer-col-title {
  color: var(--gold-light);
  font-size: 1.35rem; /* 21.6px (20-24px 標準) */
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.footer-slogan {
  color: var(--gold-light);
  font-size: 1.12rem; /* 18px (16-18px 標準) */
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 14px;
}

.footer-desc {
  color: #e2e8f0; /* 高對比明亮白灰，拒絕灰字過暗 */
  font-size: 1.05rem; /* 16.8px (16-18px 標準) */
  line-height: 1.8;
}

.footer-info-list {
  color: #e2e8f0;
  font-size: 1.02rem; /* 16.3px (16-18px 標準) */
  display: flex;
  flex-direction: column;
  gap: 14px; /* M17 納入公車與開車資訊後微調至 14px，結構緊湊精緻 */
  line-height: 1.65;
}

.footer-sub-list {
  padding-left: 28px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: #cbd5e1;
}

.footer-nowrap {
  white-space: nowrap;
}

.footer-phone-link {
  font-family: Arial, sans-serif;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.15rem; /* ~18.4px */
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-phone-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-mail-link {
  font-family: Arial, sans-serif;
  color: #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-mail-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-quick-btn {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 14px 20px;
  border-radius: 8px;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-btn-icon {
  font-size: 1.25rem;
  line-height: 1.4;
  height: 24px;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-btn-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.footer-btn-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-primary, #ffffff);
  line-height: 1.4;
  white-space: nowrap;
}

.footer-btn-sub {
  font-size: 0.92rem;
  font-family: Arial, 'Inter', sans-serif;
  color: var(--gold-light, #f3dfc1);
  line-height: 1.35;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* 第 21 列：電話號碼統一採用 Arial 排版 */
.phone-number-display,
.contact-item-value[href^="tel:"] {
  font-family: Arial, sans-serif !important;
}

/* ==================== 最新消息長者友善文字 (M16 最後補正) ==================== */
.news-desc {
  font-size: 1.125rem; /* 桌機約 18px */
  color: #e2e8f0; /* 明亮白灰，高對比易讀 */
  font-weight: 500;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.desktop-only-br {
  display: inline;
}



.phone-number-display,
.contact-item-value[href^="tel:"] {
  font-family: Arial, sans-serif !important;
}

