/*
* 滙凱盛世企業有限公司 - 主樣式表
 * 設計哲學：「沉穩金融 · 東方精緻」
 * 主色：深炭灰 #1a1a2e、純白 #ffffff、金色 #c9a84c
 * 字體：思源黑體HK（內文）、思源宋體HK Light（標題）
 * 框架：Bootstrap v3
 */

/* ===== 字體引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@300;400;500;700&family=Noto+Serif+HK:wght@200;300;400;600&display=swap');

/* ===== CSS 變數 ===== */
:root {
  --color-dark: #1a1a2e;
  --color-dark-mid: #2c2c44;
  --color-dark-light: #3d3d5c;
  --color-gold: #c9a84c;
  --color-gold-light: #e0c06a;
  --color-gold-dark: #a07c2e;
  --color-orange: #e07b2a;
  --color-white: #ffffff;
  --color-off-white: #f8f6f2;
  --color-light-gray: #f0eeea;
  --color-mid-gray: #888888;
  --color-text: #2a2a2a;
  --font-body: 'Noto Sans HK', 'Source Han Sans HK', sans-serif;
  --font-heading: 'Noto Serif HK', 'Source Han Serif HK', serif;
  --font-size-base: 17px;
  --transition-base: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== 基礎重置 ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== 標題字體 ===== */
h1, h2, h3, h4, h5, h6,
.heading-font {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: 0.02em;
}

h1 { font-size: 60px; line-height: 1.15; }
h2 { font-size: 42px; line-height: 1.2; }
h3 { font-size: 32px; line-height: 1.3; }
h4 { font-size: 26px; line-height: 1.35; }
h5 { font-size: 22px; line-height: 1.4; }
h6 { font-size: 20px; line-height: 1.45; }

@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  h4 { font-size: 22px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
}

/* ===== 連結 ===== */
a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover, a:focus {
  color: var(--color-gold-light);
  text-decoration: none;
}

/* ===== 按鈕 ===== */
.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-dark);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 12px 32px;
  border-radius: 2px;
  transition: var(--transition-base);
  text-transform: uppercase;
}
.btn-gold:hover, .btn-gold:focus {
  background-color: var(--color-gold-light);
  color: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}
.btn-gold:active {
  transform: scale(0.97);
}

.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 12px 32px;
  border-radius: 2px;
  transition: var(--transition-base);
  text-transform: uppercase;
}
.btn-orange:hover, .btn-orange:focus {
  background-color: #c96a1a;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 123, 42, 0.35);
}
.btn-orange:active {
  transform: scale(0.97);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 11px 30px;
  border-radius: 2px;
  transition: var(--transition-base);
  text-transform: uppercase;
}
.btn-outline-gold:hover, .btn-outline-gold:focus {
  background-color: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-1px);
}

.btn-dark-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  padding: 10px 28px;
  border-radius: 2px;
  transition: var(--transition-base);
}
.btn-dark-outline:hover, .btn-dark-outline:focus {
  background-color: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ===== 導航欄 ===== */
.navbar-spe {
  background-color: var(--color-dark);
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  min-height: 72px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1050;
}

.navbar-spe.navbar-fixed-top {
  position: fixed;
  top: 46px;  /* 跑馬燈高度 */
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-spe.scrolled {
  background-color: rgba(26, 26, 46, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-spe .navbar-brand {
  padding: 14px 15px;
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar-spe .navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-spe .navbar-nav > li > a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85) !important;
  letter-spacing: 0.04em;
  padding: 26px 16px;
  transition: var(--transition-base);
  position: relative;
}

.navbar-spe .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar-spe .navbar-nav > li > a:hover::after,
.navbar-spe .navbar-nav > li.active > a::after {
  transform: scaleX(1);
}

.navbar-spe .navbar-nav > li > a:hover,
.navbar-spe .navbar-nav > li.active > a {
  color: var(--color-gold) !important;
  background-color: transparent !important;
}

.navbar-spe .navbar-toggle {
  border-color: rgba(255,255,255,0.3);
  margin-top: 18px;
}
.navbar-spe .navbar-toggle .icon-bar {
  background-color: var(--color-white);
}
.navbar-spe .navbar-toggle:hover,
.navbar-spe .navbar-toggle:focus {
  background-color: rgba(255,255,255,0.1);
}

/* 手機版導航 */
@media (max-width: 767px) {
  .navbar-spe .navbar-collapse {
    background-color: var(--color-dark-mid);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .navbar-spe .navbar-nav > li > a {
    padding: 14px 20px;
  }
  .navbar-spe .navbar-nav > li > a::after {
    display: none;
  }
}

/* ===== TradingView 跑馬燈包裹（固定在最頂部）===== */
.tradingview-ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1060;  /* 高於導航欄的 1050 */
  background-color: var(--color-dark-mid);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  overflow: hidden;
  height: 46px;
}

.tradingview-ticker-wrap .tradingview-widget-container {
  height: 46px;
  overflow: hidden;
}

/* ===== TradingView 報價卡片 ===== */
.tv-quote-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 14px 16px 8px;
  transition: border-color 0.3s;
}

.tv-quote-card:hover {
  border-color: rgba(201,168,76,0.5);
}

.tv-quote-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tv-quote-unit {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.tv-single-quote {
  min-height: 60px;
}

.tv-single-quote .tradingview-widget-container__widget {
  min-height: 60px;
}

/* ===== TradingView 走勢圖包裹 ===== */
.tv-chart-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  overflow: hidden;
  padding: 12px;
}

/* ===== Hero 區塊 ===== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 26, 46, 0.82) 0%,
    rgba(26, 26, 46, 0.55) 55%,
    rgba(26, 26, 46, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== 頁面頂部間距（跑馬燈 46px + 導航欄 72px）===== */
.page-top-offset {
  padding-top: 118px;  /* 46px ticker + 72px navbar */
}

/* ===== 區塊通用樣式 ===== */
.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 50px 0;
}

.section-pad-lg {
  padding: 110px 0;
}

@media (max-width: 768px) {
  .section-pad { padding: 55px 0; }
  .section-pad-sm { padding: 35px 0; }
  .section-pad-lg { padding: 70px 0; }
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

.section-divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 20px auto 30px;
}

.section-divider-left {
  margin-left: 0;
  margin-right: auto;
}

/* ===== 深色背景區塊 ===== */
.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-dark-mid {
  background-color: var(--color-dark-mid);
  color: var(--color-white);
}

.section-gray {
  background-color: var(--color-off-white);
}

.section-light-gray {
  background-color: var(--color-light-gray);
}

/* ===== 金價報價卡片 ===== */
.price-card {
  background-color: var(--color-dark-mid);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
}

.price-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.price-card .metal-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.price-card .metal-price {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.price-card .metal-unit {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.price-card .metal-change {
  font-size: 13px;
  font-weight: 500;
}

.price-card .metal-change.up { color: #4caf82; }
.price-card .metal-change.down { color: #e05c5c; }

.price-card .metal-time {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

/* ===== 服務特色卡片 ===== */
.feature-card {
  padding: 30px 24px;
  border-bottom: 3px solid transparent;
  transition: var(--transition-base);
  height: 100%;
}

.feature-card:hover {
  border-bottom-color: var(--color-gold);
  background-color: var(--color-off-white);
}

.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--color-gold);
}

.feature-card .feature-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.feature-card .feature-text {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

.feature-card .feature-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.feature-card .feature-link::after {
  content: ' →';
}

/* ===== 深色服務卡片 ===== */
.service-card-dark {
  background-color: var(--color-dark-mid);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition-base);
  position: relative;
}

.service-card-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-dark:hover::after {
  transform: scaleX(1);
}

.service-card-dark:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.service-card-dark .service-icon {
  font-size: 36px;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.service-card-dark .service-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 14px;
}

.service-card-dark .service-text {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* ===== 圖片展示 ===== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-hover-zoom:hover img {
  transform: scale(1.04);
}

/* ===== 全寬背景區塊 ===== */
.fullwidth-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

@media (max-width: 768px) {
  .fullwidth-bg {
    background-attachment: scroll;
  }
}

.fullwidth-bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.75);
}

/* ===== 數字統計 ===== */
.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 52px;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

/* ===== 頁腳 ===== */
.site-footer {
  background-color: #111122;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.site-footer .footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.site-footer .footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
}

.site-footer .footer-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-2col {
  column-count: 2;
  column-gap: 24px;
  width: 200%;
}

.footer-links-2col li {
  break-inside: avoid;
}

@media (min-width: 768px) {
  .footer-subscribe-shift {
    margin-left: 200px;
  }
}

@media (max-width: 767px) {
  .footer-links-2col {
    column-count: 1;
    width: 100%;
  }

  .footer-subscribe-shift {
    margin-left: 0;
  }
}

.site-footer .footer-links li {
  margin-bottom: 10px;
}

.site-footer .footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-base);
}

.site-footer .footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.site-footer .footer-subscribe {
  display: flex;
  gap: 0;
}

.site-footer .footer-subscribe input {
  flex: 1;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--color-white);
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 2px 0 0 2px;
  outline: none;
  font-family: var(--font-body);
}

.site-footer .footer-subscribe input::placeholder {
  color: rgba(255,255,255,0.35);
}

.site-footer .footer-subscribe input:focus {
  border-color: var(--color-gold);
  background-color: rgba(255,255,255,0.12);
}

.site-footer .footer-subscribe button {
  background-color: var(--color-orange);
  border: none;
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 16px;
}

.site-footer .footer-subscribe button:hover {
  background-color: #c96a1a;
}

.site-footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.site-footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition-base);
}

.site-footer .footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(201, 168, 76, 0.1);
}

.site-footer .footer-bottom {
  background-color: rgba(0,0,0,0.3);
  margin-top: 50px;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== 頁面 Banner ===== */
.page-banner {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 118px;  /* 46px ticker + 72px navbar */
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,46,0.3) 0%,
    rgba(26,26,46,0.75) 100%
  );
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: 48px;
  color: var(--color-white);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.page-banner-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.page-banner-breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.page-banner-breadcrumb a:hover {
  color: var(--color-gold);
}

.page-banner-breadcrumb .separator {
  margin: 0 8px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .page-banner {
    height: 220px;
  }
  .page-banner-title {
    font-size: 32px;
  }
}

/* ===== 表單 ===== */
.form-spe .form-control {
  background-color: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 12px 16px;
  height: auto;
  transition: var(--transition-base);
  box-shadow: none;
}

.form-spe .form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  outline: none;
}

.form-spe .form-control::placeholder {
  color: #aaa;
}

.form-spe label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 6px;
}

/* ===== 圖片卡片 ===== */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

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

.photo-card-caption {
  padding: 20px 0;
}

.photo-card-caption h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.photo-card-caption p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* ===== 金屬投資頁面特定 ===== */
.metal-info-block {
  padding: 40px;
  background-color: var(--color-white);
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.metal-info-block h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 16px;
  font-size: 22px;
}

.metal-info-block p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0;
}

.metal-feature-row {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.metal-feature-row:last-child {
  border-bottom: none;
}

.metal-feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 20px;
}

/* ===== 動畫 ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }
.fade-in-up.delay-5 { transition-delay: 0.5s; }

/* ===== 工具類 ===== */
.text-gold { color: var(--color-gold) !important; }
.text-dark-custom { color: var(--color-dark) !important; }
.text-white-70 { color: rgba(255,255,255,0.7) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.bg-dark-custom { background-color: var(--color-dark) !important; }
.bg-dark-mid { background-color: var(--color-dark-mid) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.border-gold { border-color: var(--color-gold) !important; }

.gold-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  vertical-align: middle;
  margin-right: 12px;
}

/* ===== 響應式輔助 ===== */
@media (max-width: 991px) {
  .section-pad { padding: 60px 0; }
}

@media (max-width: 767px) {
  .hide-xs { display: none !important; }
  .text-center-xs { text-align: center !important; }
  .mt-xs-30 { margin-top: 30px !important; }
}

/* ===== Bootstrap 覆寫 ===== */
.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.navbar.navbar-spe {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* 確保 Bootstrap 按鈕樣式被覆寫 */
.btn-gold,
.btn-orange,
.btn-outline-gold,
.btn-dark-outline {
  display: inline-block;
}

/* 修正 Bootstrap 3 的 row 負邊距問題 */
.section-pad .row,
.section-pad-sm .row,
.section-pad-lg .row {
  margin-left: -15px;
  margin-right: -15px;
}

/* ===== 滾動條美化 ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ===== 選取顏色 ===== */
::selection {
  background-color: rgba(201, 168, 76, 0.25);
  color: var(--color-dark);
}

/* ===== WhatsApp 浮動按鈕 ===== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-float__btn {
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.whatsapp-float__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  background-color: #20bc5a;
}

.whatsapp-float__btn:active {
  transform: scale(0.96);
}

.whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* 提示文字氣泡 */
.whatsapp-float__tooltip {
  background-color: var(--color-dark);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  position: absolute;
  right: 68px;
  bottom: 10px;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--color-dark);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* 脈衝動畫 */
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float__btn {
  animation: whatsapp-pulse 2.4s infinite;
}

.whatsapp-float__btn:hover {
  animation: none;
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
  }
  .whatsapp-float__btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__btn svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-float__tooltip {
    display: none;
  }
}
