/* ==========================================================
   Gold Label Global · 高端金融風格雙主題樣式
   白天(預設)+ 黑夜 · 繁/簡/EN · 響應式
   參考 ATFX 風格: 白底 + 金色 + 墨黑 + 財金藍
   ========================================================== */

/* ===== 主題變數 - 白天模式 (預設, 仿 ATFX) ===== */
:root,
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #eef2f8;
  --bg-quaternary: #fafbfd;
  --bg-hover: #e8eef7;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dark-section: #0f1f3d;          /* 深色對比區塊(footer/cta) */
  --bg-section-alt: #f7f9fc;

  --border-color: #e4e8ef;
  --border-light: rgba(228, 232, 239, 0.6);
  --border-gold: rgba(184, 134, 11, 0.35);
  --border-gold-strong: rgba(184, 134, 11, 0.6);

  --text-primary: #1a2238;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  --text-on-dark: #e5e7eb;

  --gold: #b8860b;                     /* 深金為主 (ATFX 風格下更沉穩) */
  --gold-light: #d4af37;
  --gold-lighter: #e8c766;
  --gold-dark: #8b6f1a;
  --gold-deep: #5c4a14;
  --silver: #6b7280;

  --primary-blue: #0066b2;             /* ATFX 主藍 */
  --primary-blue-dark: #004a85;
  --primary-blue-light: #e6f0f8;

  --accent-blue: #0066b2;
  --accent-blue-dim: rgba(0, 102, 178, 0.08);
  --accent-green: #059669;
  --accent-green-dim: rgba(5, 150, 105, 0.1);
  --accent-red: #dc2626;
  --accent-red-dim: rgba(220, 38, 38, 0.08);
  --accent-warn: #d97706;
  --accent-orange: #f97316;            /* ATFX 點綴橙 */

  --shadow-sm: 0 1px 3px rgba(15, 31, 61, 0.06), 0 1px 2px rgba(15, 31, 61, 0.04);
  --shadow-card: 0 2px 12px rgba(15, 31, 61, 0.06), 0 1px 3px rgba(15, 31, 61, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(15, 31, 61, 0.12), 0 4px 12px rgba(15, 31, 61, 0.06);
  --shadow-gold: 0 8px 24px rgba(184, 134, 11, 0.18);
  --shadow-gold-strong: 0 12px 36px rgba(184, 134, 11, 0.32);
  --shadow-xl: 0 20px 50px -10px rgba(15, 31, 61, 0.15);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(15, 31, 61, 0.04);

  --grid-color: rgba(184, 134, 11, 0.05);
  --scrollbar-bg: #f0f3f8;
  --scrollbar-thumb: #c8cfda;
}

/* ===== 黑夜模式 (備選) ===== */
[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2235;
  --bg-quaternary: #0d1422;
  --bg-hover: #202a42;
  --bg-overlay: rgba(10, 14, 26, 0.85);
  --bg-glass: rgba(17, 24, 39, 0.6);
  --bg-dark-section: #050811;
  --bg-section-alt: #0d1422;

  --border-color: #2a3553;
  --border-light: rgba(42, 53, 83, 0.5);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-strong: rgba(212, 175, 55, 0.5);

  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #0a0e1a;
  --text-on-dark: #e5e7eb;

  --gold: #d4af37;
  --gold-light: #e8c766;
  --gold-lighter: #f4d47c;
  --gold-dark: #b8941f;
  --gold-deep: #8b6f1a;
  --silver: #c0c0c0;

  --primary-blue: #3b82f6;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: rgba(59, 130, 246, 0.1);

  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.1);
  --accent-green: #10b981;
  --accent-green-dim: rgba(16, 185, 129, 0.1);
  --accent-red: #ef4444;
  --accent-red-dim: rgba(239, 68, 68, 0.1);
  --accent-warn: #f59e0b;
  --accent-orange: #fb923c;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-gold-strong: 0 8px 32px rgba(212, 175, 55, 0.3);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-nav: 0 1px 0 rgba(212, 175, 55, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);

  --grid-color: rgba(212, 175, 55, 0.04);
  --scrollbar-bg: #111827;
  --scrollbar-thumb: #2a3553;
}

/* ===== 全局重置 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* 文字选中 */
::selection { background: var(--gold); color: var(--text-inverse); }

/* ===== 工具类 ===== */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.bg-gold { background-color: var(--gold); }

/* 金色渐变文字 */
.gradient-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lighter) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-gold-bg {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-lighter) 100%);
}

/* ===== 英雄区背景 ===== */
.hero-bg {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(29, 78, 216, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
}

/* 金色网格背景 */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== 卡片 ===== */
.card-gold {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--gold) 50%, transparent 60%);
  border-radius: 14px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.card-gold:hover::before { opacity: 1; }

/* 玻璃卡片 */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 100%;
  color: #0a0e1a !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.5);
  background-position: 100% 0;
}
.btn-primary:hover::before { left: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  background: transparent;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--text-inverse) !important;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-primary) !important;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  color: var(--gold) !important;
}

/* 图标按钮 */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-icon:hover {
  background: var(--gold);
  color: var(--text-inverse);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== 分隔符 ===== */
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1rem 0;
  border-radius: 2px;
}
.divider-gold-center {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto;
  border-radius: 2px;
  position: relative;
}
.divider-gold-center::before,
.divider-gold-center::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--gold);
}
.divider-gold-center::before { left: -16px; }
.divider-gold-center::after { right: -16px; }

/* ===== 徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  white-space: nowrap;
}
.badge-blue { background: var(--accent-blue-dim); color: var(--accent-blue); border-color: rgba(59,130,246,0.3);}
.badge-green { background: var(--accent-green-dim); color: var(--accent-green); border-color: rgba(16,185,129,0.3);}
.badge-red { background: var(--accent-red-dim); color: var(--accent-red); border-color: rgba(239,68,68,0.3);}

/* ===== 标题 ===== */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin: 1rem 0 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 输入框 ===== */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}
.input-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
  background: var(--bg-secondary);
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== 表格 ===== */
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-primary);
}
table.admin-table th,
table.admin-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
table.admin-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
table.admin-table tr:hover td { background: var(--bg-hover); }

/* ===== Marquee ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  gap: 3rem;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* ===== Prose 长文本 ===== */
.prose { line-height: 1.8; color: var(--text-primary); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--gold); }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: var(--gold-light); }
.prose p { margin: 0.75rem 0; color: var(--text-primary); }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.prose li { margin: 0.375rem 0; }
.prose strong { color: var(--gold); }
.prose a { color: var(--gold); text-decoration: underline; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.price-up { color: var(--accent-green); }
.price-down { color: var(--accent-red); }

/* ===== 动画 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.8s ease-out both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}
.animate-pulse-slow { animation: pulse 2.5s ease-in-out infinite; }

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8)); }
}
.animate-glow { animation: glow 3s ease-in-out infinite; }

@keyframes hourglass-flip {
  0%, 45% { transform: rotate(0deg); }
  50%, 95% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
.animate-hourglass { animation: hourglass-flip 10s ease-in-out infinite; }

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(120deg); }
  66% { transform: translate(-20px, 10px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes ticker-drop {
  0% { transform: translateY(-100%); opacity: 0; }
  20%, 80% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ===== 粒子/光斑背景 ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 70%);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}

/* ===== 侧栏 admin ===== */
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
  padding: 1rem 0;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: var(--bg-hover);
  color: var(--gold);
  border-left-color: var(--gold);
}

/* ===== 移动端 ===== */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* 移动端抽屉菜单 */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 110;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-gold);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 120;
  overflow-y: auto;
  padding: 1.5rem 0;
}
.drawer.active { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.drawer-link:hover,
.drawer-link.active {
  background: var(--bg-hover);
  color: var(--gold);
  border-left-color: var(--gold);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .nav-links-desktop { display: none !important; }
  .hamburger { display: inline-flex !important; align-items: center; justify-content: center;}
  .hide-on-mobile { display: none !important; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
}

@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}

/* ===== 沙漠装饰元素 ===== */
.hourglass-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

/* ===== 渐变文字 shimmer ===== */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--gold) 50%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-slide 3s linear infinite;
}
@keyframes shimmer-slide {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===== 悬浮工具栏 ===== */
.floating-tools {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
}

@media (max-width: 768px) {
  .floating-tools {
    right: 0.75rem;
    top: auto;
    bottom: 5rem;
    transform: none;
  }
}

/* 光标跟随效果 */
.spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body:hover .spotlight { opacity: 1; }

@media (max-width: 1024px) {
  .spotlight { display: none; }
}

/* K线装饰 */
.kline-deco {
  opacity: 0.08;
  pointer-events: none;
}

/* 金币旋转 */
.coin-rotate {
  display: inline-block;
  animation: coin-spin 4s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes coin-spin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

/* 数字跳动 */
.price-digit {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* 卡片内部发光线 */
.glow-line {
  position: relative;
}
.glow-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* 主题切换过渡 */
* {
  transition-property: background-color, border-color, color, fill, stroke, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* ================================================================
   Logo · 主题 · 语言 · 浮动按钮 · 移动菜单 升级
   ================================================================ */

/* --- 顶部通知条 --- */
.top-bar {
  background: linear-gradient(90deg, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-left i { color: var(--gold); margin-right: 0.25rem; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }
.top-bar-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.top-bar-link:hover { color: var(--gold); }
.top-bar-link i { color: var(--gold); margin-right: 0.25rem; }

/* --- 主题切换按钮 --- */
.theme-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.85rem;
}
.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  transform: rotate(15deg);
}

/* --- 语言切换 --- */
.lang-switch {
  display: inline-flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 2px;
  gap: 1px;
}
.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

/* --- 导航栏 --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.25s, background 0.25s;
}
.navbar.nav-scrolled {
  background: var(--bg-overlay);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* --- Logo --- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.02));
  padding: 4px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s;
}
.logo-wrap:hover .logo-img { transform: scale(1.05) rotate(-3deg); }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--gold-lighter), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* --- 桌面导航 --- */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 6px;
}
.nav-link:hover { color: var(--gold); background: rgba(212, 175, 55, 0.06); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* --- 导航 CTA --- */
.nav-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-btn { padding: 0.55rem 1.1rem !important; font-size: 0.85rem !important; }

/* --- 汉堡 --- */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
}

/* --- 移动端菜单 --- */
.mobile-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-mask.show { display: block; opacity: 1; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 101;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.show { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.mobile-logo { width: 40px; height: 40px; border-radius: 8px; }
.mobile-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.mobile-menu > a:hover, .mobile-menu > a.mobile-nav-active {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}
.mobile-menu > a i { color: var(--text-muted); font-size: 0.75rem; }
.mobile-menu-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* --- 页脚升级 --- */
.footer {
  background: var(--bg-quaternary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(212, 175, 55, 0.05);
  padding: 3px;
}
.footer-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--gold-lighter), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; margin: 0 0 1rem; }
.footer-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.footer-title { color: var(--gold); font-size: 0.95rem; font-weight: 600; margin: 0 0 1rem; }
.footer-list, .footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-list li a { color: var(--text-secondary); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-list li a:hover { color: var(--gold); }
.footer-contact li { color: var(--text-secondary); font-size: 0.875rem; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.footer-contact li i { color: var(--gold); width: 18px; margin-top: 3px; }

/* 合规徽章栏 */
.footer-compliance {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(90deg, rgba(212,175,55,0.04), rgba(212,175,55,0.02));
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.compliance-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.compliance-item > i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.compliance-label { color: var(--text-muted); font-size: 0.72rem; margin-bottom: 2px; }
.compliance-value { color: var(--text-primary); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }

/* 风险警示 */
.risk-warning {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid var(--accent-red);
  border-radius: 4px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.risk-icon { color: var(--accent-red); font-size: 1rem; margin-top: 0.15rem; flex-shrink: 0; }
.risk-text { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }
.risk-text strong { color: var(--accent-red); margin-right: 0.25rem; }

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* --- 浮动操作按钮 --- */
.float-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.float-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  font-size: 1.15rem;
  position: relative;
}
.float-btn-top {
  background: var(--bg-tertiary);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.float-btn-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.float-btn-top:hover { background: var(--gold); color: var(--text-inverse); transform: translateY(-4px); }
.float-btn-chat {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-inverse);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}
.float-btn-chat:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5); }
.float-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border-color);
}
.float-btn-chat:hover .float-tip { opacity: 1; }

/* --- 资质展示组件 --- */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-quaternary));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
}
.cert-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f8f5ec, #fdfbf3);
  overflow: hidden;
  padding: 0.5rem;
}
.cert-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}
.cert-card:hover .cert-image-wrap img { transform: scale(1.05); }
.cert-badge-float {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.3rem 0.7rem;
  background: rgba(212, 175, 55, 0.95);
  color: #0a0e1a;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cert-info {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.cert-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.cert-subtitle {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox.show { display: flex; animation: fade-in 0.25s ease; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav-links-desktop { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-btn span { display: none; }
  .nav-btn i { margin: 0; }
}
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .logo-main { font-size: 1rem; }
  .logo-sub { font-size: 0.62rem; }
  .nav-inner { height: 64px; }
  .top-bar { padding: 0.4rem 0.75rem; font-size: 0.72rem; }
  .top-bar-right { gap: 0.5rem; }
  .lang-btn { padding: 0.2rem 0.5rem; font-size: 0.68rem; }
  .theme-toggle { width: 28px; height: 28px; }
  .footer-compliance { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .float-btn { width: 46px; height: 46px; font-size: 1rem; }
  .float-actions { bottom: 16px; right: 16px; }
  section { padding: 3rem 1rem !important; }
}
@media (max-width: 480px) {
  .footer-compliance { grid-template-columns: 1fr; }
  .compliance-item { justify-content: flex-start; }
}

/* ===== 白天模式 额外调整 ===== */
[data-theme="light"] .logo-img { background: linear-gradient(135deg, rgba(212,175,55,0.08), #fff); }
[data-theme="light"] .navbar.nav-scrolled { background: rgba(255, 255, 255, 0.95); }
[data-theme="light"] .footer { background: #0a0e1a; border-color: #1a2235; }
[data-theme="light"] .footer-title { color: var(--gold); }
[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-list li a,
[data-theme="light"] .footer-contact li,
[data-theme="light"] .footer-bottom { color: #9ca3af; }
[data-theme="light"] .footer-contact li i { color: var(--gold); }
[data-theme="light"] .footer-list li a:hover { color: var(--gold-lighter); }
[data-theme="light"] .compliance-label { color: #6b7280; }
[data-theme="light"] .compliance-value { color: #e5e7eb; }
[data-theme="light"] .risk-text { color: #9ca3af; }
[data-theme="light"] .footer-compliance { background: rgba(212,175,55,0.05); border-color: rgba(212,175,55,0.2); }
[data-theme="light"] .top-bar { background: linear-gradient(90deg, #f8f9fb, #eef0f5); }
[data-theme="light"] .theme-toggle { border-color: #cbd5e1; }
[data-theme="light"] .lang-switch { background: #fff; border-color: #cbd5e1; }

/* 英文模式微调: 字距与字号 */
[data-lang="en"] .logo-main { letter-spacing: 0.12em; }
[data-lang="en"] body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ==== 真实 Logo 适配 ==== */
/* 新 logo 本身已是圆形渐变橙金徽章,不需要包装框 */
.logo-img {
  background: transparent !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.25));
}
.footer-logo {
  background: transparent !important;
  padding: 0 !important;
}
.mobile-logo {
  background: transparent !important;
  object-fit: contain !important;
}
/* 白天模式下 logo 也无需特殊背景 */
[data-theme="light"] .logo-img { background: transparent !important; }

/* ============================================================
   ★ ATFX 風格白天主題 · 深度優化 (預設主題)
   ============================================================ */

/* Body 在白天模式字型使用繁體友好 Noto Serif TC 標題 + Inter 正文 */
[data-theme="light"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang TC', 'Microsoft JhengHei', 'PingFang SC',
               'Microsoft YaHei', sans-serif;
  background: #ffffff;
  color: var(--text-primary);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .section-title {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* 繁中標題使用襯線字增加專業感 */
[data-theme="light"][data-lang="zhHant"] .section-title,
[data-theme="light"][data-lang="zhHant"] h1,
[data-theme="light"][data-lang="zhHans"] .section-title,
[data-theme="light"][data-lang="zhHans"] h1 {
  font-family: 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif;
}

/* ---- 頂部通知條 ---- */
[data-theme="light"] .top-bar {
  background: linear-gradient(90deg, #0f1f3d 0%, #142850 100%);
  color: #e8edf5;
  border: none;
}
[data-theme="light"] .top-bar .top-bar-tag {
  color: #fff; font-weight: 500;
}
[data-theme="light"] .top-bar-left i,
[data-theme="light"] .top-bar-right i {
  color: var(--gold-light) !important;
}
[data-theme="light"] .top-bar-link {
  color: rgba(255,255,255,0.88);
}
[data-theme="light"] .top-bar-link:hover {
  color: var(--gold-light);
}
[data-theme="light"] .theme-toggle {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(255,255,255,0.1);
}
[data-theme="light"] .lang-switch {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="light"] .lang-btn {
  color: rgba(255,255,255,0.78);
}
[data-theme="light"] .lang-btn:hover { color: var(--gold-light); }
[data-theme="light"] .lang-btn.active {
  background: var(--gold);
  color: #fff;
}

/* ---- 主導航 ---- */
[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid #e4e8ef;
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .navbar.nav-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(15, 31, 61, 0.08);
}
[data-theme="light"] .logo-main {
  color: var(--text-primary);
  font-weight: 800;
}
[data-theme="light"] .logo-sub {
  color: var(--gold-dark);
}
[data-theme="light"] .nav-link {
  color: var(--text-primary);
  font-weight: 500;
}
[data-theme="light"] .nav-link:hover {
  color: var(--gold);
}
[data-theme="light"] .nav-link.active {
  color: var(--gold);
}
[data-theme="light"] .nav-link.active::after {
  background: var(--gold);
}
[data-theme="light"] .hamburger {
  color: var(--text-primary);
}

/* ---- 按鈕 ---- */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
  font-weight: 600;
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.35);
  color: #fff;
}
[data-theme="light"] .btn-outline {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: transparent;
}
[data-theme="light"] .btn-outline:hover {
  background: var(--gold);
  color: #fff;
}
[data-theme="light"] .btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
}
[data-theme="light"] .btn-ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- 卡片 ---- */
[data-theme="light"] .card-gold {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .card-gold:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

/* ---- 徽章 ---- */
[data-theme="light"] .badge {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: rgba(0, 102, 178, 0.2);
  font-weight: 500;
}
[data-theme="light"] .badge i { color: var(--primary-blue); }
[data-theme="light"] .badge-blue {
  background: rgba(0, 102, 178, 0.08);
  color: var(--primary-blue);
  border-color: rgba(0, 102, 178, 0.2);
}
[data-theme="light"] .badge-green {
  background: rgba(5, 150, 105, 0.08);
  color: var(--accent-green);
  border-color: rgba(5, 150, 105, 0.2);
}
[data-theme="light"] .badge-red {
  background: rgba(220, 38, 38, 0.08);
  color: var(--accent-red);
  border-color: rgba(220, 38, 38, 0.2);
}

/* ---- 金色漸變文字(白天模式: 深金為主) ---- */
[data-theme="light"] .gradient-gold {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- 分隔線 ---- */
[data-theme="light"] .divider-gold-center {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---- section 文字顏色 ---- */
[data-theme="light"] .section-subtitle {
  color: var(--text-secondary);
}

/* ---- Hero 區塊 (光亮金白) ---- */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(0, 102, 178, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

/* Hero 信任徽章(白天) */
[data-theme="light"] .hero-bg .trust-badge-label { color: var(--gold-dark) !important; }
[data-theme="light"] .hero-bg .trust-badge-sub { color: var(--text-muted) !important; }

/* ---- 詳情卡 details ---- */
[data-theme="light"] details.card-gold {
  background: #fff;
  border: 1px solid #e8ecf2;
}
[data-theme="light"] details.card-gold summary {
  color: var(--text-primary) !important;
}

/* ---- 合規統計區深色背景(白天模式需在深藍區顯示金色) ---- */
[data-theme="light"] .stats-dark-section {
  background: linear-gradient(135deg, #0f1f3d 0%, #142850 50%, #0f1f3d 100%);
  color: #fff;
}

/* ---- 頁腳: 深色對比(白天模式下反而用深色 footer 呼應 ATFX) ---- */
[data-theme="light"] .footer {
  background: #0f1f3d;
  border-top: 3px solid var(--gold);
}
[data-theme="light"] .footer-title { color: var(--gold-light); }
[data-theme="light"] .footer-desc,
[data-theme="light"] .footer-list li a,
[data-theme="light"] .footer-contact li,
[data-theme="light"] .footer-bottom {
  color: rgba(255,255,255,0.7);
}
[data-theme="light"] .footer-contact li i { color: var(--gold-light); }
[data-theme="light"] .footer-list li a:hover { color: var(--gold-light); }
[data-theme="light"] .footer-compliance {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
[data-theme="light"] .compliance-item i { color: var(--gold-light); }
[data-theme="light"] .compliance-label { color: rgba(255,255,255,0.6); }
[data-theme="light"] .compliance-value { color: #fff; }
[data-theme="light"] .footer-logo-text { color: var(--gold-light); }
[data-theme="light"] .footer-badges .badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.35);
}
[data-theme="light"] .footer-badges .badge i { color: var(--gold-light); }
[data-theme="light"] .risk-warning {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
}
[data-theme="light"] .risk-text { color: rgba(255,255,255,0.78); }
[data-theme="light"] .risk-text strong { color: #fca5a5; }
[data-theme="light"] .risk-icon { color: #fca5a5; }
[data-theme="light"] .footer-bottom { border-color: rgba(255,255,255,0.08); }

/* ---- 浮動按鈕 ---- */
[data-theme="light"] .float-btn {
  background: #fff;
  border: 1px solid #e4e8ef;
  color: var(--gold);
  box-shadow: 0 4px 12px rgba(15, 31, 61, 0.1);
}
[data-theme="light"] .float-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
}
[data-theme="light"] .float-btn-chat {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
}

/* ============================================================
   ★ ATFX 風格專屬組件
   ============================================================ */

/* 統計數據條 */
.stats-strip {
  background: linear-gradient(135deg, #0f1f3d 0%, #142850 50%, #0f1f3d 100%);
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15), transparent 60%);
  pointer-events: none;
}
.stats-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  position: relative; z-index: 1;
}
.stats-item { text-align: center; }
.stats-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'Inter', monospace;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-label {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* 客戶評價卡 (ATFX 風格) */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s;
}
[data-theme="dark"] .testimonial-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 0.5rem; left: 1.25rem;
  font-size: 4rem; color: var(--gold); opacity: 0.25;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0;
  min-height: 4.5em;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.8rem; }

/* 牌照/資格卡 (ATFX 風格) */
.license-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .license-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
.license-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}
.license-name {
  color: var(--gold-dark);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .license-name { color: var(--gold); }
.license-region {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.license-body {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}
.license-id {
  color: var(--gold);
  font-weight: 600;
  font-family: monospace;
  margin-top: 0.5rem;
  display: block;
}

/* 歷史時間線 */
.timeline {
  position: relative;
  padding: 1rem 0;
  margin: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(212,175,55,0.15));
}
.timeline-item {
  position: relative;
  padding: 0 0 2rem 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute; left: 6px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}
.timeline-year {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  font-family: 'Inter', monospace;
}
.timeline-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.timeline-item.major .timeline-year { font-size: 1.3rem; color: var(--gold-dark); }
.timeline-item.major::before {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  width: 18px; height: 18px; left: 4px; top: 4px;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.25);
}

/* 合作夥伴 logo 條 */
.partners-strip {
  background: var(--bg-secondary);
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.partners-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem; align-items: center;
}
.partner-item {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.7;
  transition: all 0.3s;
}
.partner-item:hover { opacity: 1; color: var(--gold); }

/* 特色列表 (check icons) */
.feature-list {
  list-style: none; padding: 0; margin: 0;
}
.feature-list li {
  padding: 0.625rem 0 0.625rem 2rem;
  position: relative;
  color: var(--text-primary);
  line-height: 1.6;
}
.feature-list li::before {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; left: 0; top: 0.75rem;
  color: var(--gold);
  width: 20px; height: 20px;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* ATFX 風格的 section 替換(替代原深色 section 的寫死顏色) */
.section-white {
  background: var(--bg-primary);
  padding: 5rem 1rem;
}
.section-light {
  background: var(--bg-secondary);
  padding: 5rem 1rem;
}
.section-dark {
  background: var(--bg-dark-section);
  color: #fff;
  padding: 5rem 1rem;
}
.section-dark .section-title,
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.8); }

/* ============================================================
   ★ 在白天主題下「改寫」頁面硬編碼的深色背景
   ============================================================ */
[data-theme="light"] section[style*="background: #0a0e1a"],
[data-theme="light"] section[style*="background: linear-gradient(180deg, #0a0e1a"],
[data-theme="light"] section[style*="background: linear-gradient(180deg, #111827"] {
  background: var(--bg-primary) !important;
}

[data-theme="light"] section[style*="background: linear-gradient(135deg, #111827"] {
  background: linear-gradient(135deg, #0f1f3d 0%, #142850 50%, #0f1f3d 100%) !important;
  color: #fff;
}

/* 強制把頁面內 hardcoded 的 #e5e7eb / #9ca3af 文字在 light 模式下替換 */
[data-theme="light"] [style*="color: #e5e7eb"],
[data-theme="light"] [style*="color:#e5e7eb"] { color: var(--text-primary) !important; }
[data-theme="light"] [style*="color: #9ca3af"],
[data-theme="light"] [style*="color:#9ca3af"] { color: var(--text-secondary) !important; }
[data-theme="light"] [style*="color: #6b7280"],
[data-theme="light"] [style*="color:#6b7280"] { color: var(--text-muted) !important; }

/* 深色背景 section 內的白色文字保持(通過 section-dark 類名) */
[data-theme="light"] .section-dark [style*="color: #e5e7eb"],
[data-theme="light"] .section-dark [style*="color:#e5e7eb"] { color: #fff !important; }
[data-theme="light"] .section-dark [style*="color: #9ca3af"],
[data-theme="light"] .section-dark [style*="color:#9ca3af"] { color: rgba(255,255,255,0.75) !important; }

/* Hero 深色 rgba 背景 → 白天模式改白 */
[data-theme="light"] [style*="background: rgba(0,0,0,0.3)"],
[data-theme="light"] [style*="background:rgba(0,0,0,0.3)"] {
  background: var(--bg-tertiary) !important;
}
[data-theme="light"] [style*="background: rgba(255,255,255,0.03)"] {
  background: var(--bg-tertiary) !important;
}
[data-theme="light"] [style*="background: linear-gradient(135deg, #1a2235, #111827)"] {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)) !important;
}

/* 公告 marquee 區 */
[data-theme="light"] section[style*="background: linear-gradient(90deg, #111827, #1a2235)"] {
  background: linear-gradient(90deg, #f7f9fc, #eef2f8) !important;
  border-color: var(--border-color) !important;
}

/* 實時行情卡片內部黑背景 */
[data-theme="light"] .card-gold [style*="rgba(0,0,0,0.3)"] {
  background: #f7f9fc !important;
}

/* 響應式微調 */
@media (max-width: 768px) {
  .stats-strip { padding: 2rem 1rem; }
  .stats-strip-inner { gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
  .stats-value { font-size: 1.6rem; }
  .timeline::before { left: 10px; }
  .timeline-item { padding-left: 2.5rem; }
  .timeline-item::before { left: 4px; }
}

/* ============================================================
   ★ 手機移動端 全面優化 (Mobile First Fine-Tuning)
   目標: iPhone SE (375px) 到 iPhone Pro Max (430px) 完美呈現
   ============================================================ */

/* ---- 全域: 防止水平滾動 & 可點區域 ---- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
}
* { -webkit-overflow-scrolling: touch; }
img, video { max-width: 100%; height: auto; }

/* 安全區域 (iPhone 瀏海/Dynamic Island) */
@supports (padding: env(safe-area-inset-top)) {
  .top-bar { padding-top: calc(0.4rem + env(safe-area-inset-top)); }
  .float-actions {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .mobile-menu { padding-top: env(safe-area-inset-top); }
  .footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

/* ---- 768px 以下: 平板直立 & 手機 ---- */
@media (max-width: 768px) {
  /* 字型整體縮放 */
  html { font-size: 15px; }
  body { line-height: 1.65; }

  /* 區塊內距調整 */
  section { padding: 2.5rem 1rem !important; }

  /* 標題縮小 */
  .section-title, h1, h2 { font-size: 1.6rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.15rem !important; }
  .section-subtitle { font-size: 0.9rem !important; padding: 0 0.5rem; }

  /* ---- Hero 區 ---- */
  .hero, [class*="hero-section"] {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: auto !important;
  }
  .hero h1, .hero-title, [class*="hero"] h1 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
    word-break: keep-all;
  }
  .hero-subtitle, .hero p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .hero-buttons, .hero-cta {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline,
  .hero-cta a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  /* Hero 格線 (雙欄報價卡) → 單欄 */
  .hero-grid, .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .hero-quote-card, .live-market-card {
    margin-top: 1rem !important;
  }

  /* ---- 頂部資訊列 (top-bar) ---- */
  .top-bar { padding: 0.35rem 0.75rem; font-size: 0.7rem; }
  .top-bar-inner { flex-wrap: wrap; gap: 0.5rem; }
  .top-bar-left { gap: 0.75rem; font-size: 0.7rem; }
  .top-bar-left a, .top-bar-left span {
    display: inline-flex; align-items: center;
    white-space: nowrap;
  }
  .top-bar-left i { font-size: 0.75rem; }
  /* 手機隱藏郵箱，只保留電話 */
  .top-bar-email { display: none !important; }

  /* ---- 導覽列 ---- */
  .navbar { height: 60px; }
  .nav-inner { height: 60px; padding: 0 0.75rem; }
  .logo-img { width: 38px !important; height: 38px !important; }
  .logo-main { font-size: 0.95rem !important; }
  .logo-sub { font-size: 0.6rem !important; letter-spacing: 0.02em !important; }
  .nav-btn { padding: 0.5rem 0.85rem !important; font-size: 0.8rem !important; }

  /* 漢堡按鈕觸控範圍擴大 */
  .hamburger {
    width: 44px !important; height: 44px !important;
    min-width: 44px; min-height: 44px;
  }

  /* ---- 手機側邊選單 ---- */
  .mobile-menu {
    width: 85% !important;
    max-width: 340px;
  }
  .mobile-menu > a {
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    min-height: 48px;
  }
  .mobile-menu-header { padding: 1rem 1.25rem; }
  .mobile-menu-footer { padding: 1rem 1.25rem; gap: 0.75rem; }
  .mobile-menu-footer .btn-primary,
  .mobile-menu-footer .btn-outline {
    width: 100%; justify-content: center;
    padding: 0.85rem !important;
  }

  /* ---- 統計欄 (ATFX Style) ---- */
  .stats-strip {
    padding: 2rem 1rem !important;
  }
  .stats-strip-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 1rem !important;
  }
  .stats-value { font-size: 1.5rem !important; }
  .stats-label { font-size: 0.72rem !important; letter-spacing: 0.02em !important; }
  .stats-item { padding: 0.5rem 0; }

  /* ---- 產品格 ---- */
  .product-grid, .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .product-card {
    padding: 1.25rem !important;
  }
  .product-card .product-icon,
  .product-card i.fa-3x {
    font-size: 2rem !important;
  }
  .product-card h3 { font-size: 1.15rem !important; }
  .product-card p { font-size: 0.875rem !important; }

  /* ---- 證書牆 ---- */
  .cert-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
  .cert-info { padding: 0.8rem !important; }
  .cert-title { font-size: 0.82rem !important; line-height: 1.3 !important; }
  .cert-subtitle { font-size: 0.68rem !important; line-height: 1.4 !important; }
  .cert-badge-float {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.6rem !important;
    top: 8px; right: 8px;
  }

  /* ---- 平台優勢 / 特色列表 ---- */
  .feature-grid, .advantages-grid, .why-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .feature-item, .advantage-item {
    padding: 1rem !important;
    gap: 0.85rem !important;
  }
  .feature-item i, .advantage-item i { font-size: 1.3rem !important; }

  /* ---- 開戶流程 / Steps ---- */
  .steps-grid, .process-steps {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .step-card, .process-step {
    padding: 1.25rem !important;
    text-align: center;
  }
  .step-number { font-size: 2rem !important; }

  /* ---- 客戶評價 ---- */
  .testimonial-grid, .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .testimonial-card {
    padding: 1.25rem !important;
  }
  .testimonial-card p { font-size: 0.9rem !important; }

  /* ---- 新聞格 ---- */
  .news-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .news-card h3 { font-size: 1rem !important; line-height: 1.4 !important; }
  .news-card .news-img,
  .news-card img {
    height: 180px !important;
  }

  /* ---- FAQ ---- */
  .faq-item { padding: 1rem 1.25rem !important; }
  .faq-question { font-size: 0.95rem !important; line-height: 1.45 !important; }
  .faq-answer { font-size: 0.875rem !important; line-height: 1.7 !important; }

  /* ---- CTA 區 ---- */
  .cta-section, .final-cta {
    padding: 2.5rem 1rem !important;
  }
  .cta-section h2, .final-cta h2 { font-size: 1.4rem !important; }
  .cta-buttons {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .cta-buttons a {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ---- 時間軸 (About) ---- */
  .timeline::before { left: 14px !important; }
  .timeline-item {
    width: 100% !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
  .timeline-item::before, .timeline-item::after {
    left: 6px !important;
    right: auto !important;
  }
  .timeline-item.timeline-right,
  .timeline-item.timeline-left {
    margin-left: 0 !important;
    padding-left: 3rem !important;
  }
  .timeline-year { font-size: 1rem !important; }
  .timeline-content { padding: 1rem !important; font-size: 0.9rem !important; }

  /* ---- 表格 (公司概覽等) ---- */
  .overview-table, .info-table {
    font-size: 0.85rem !important;
  }
  .overview-table th,
  .overview-table td,
  .info-table th,
  .info-table td {
    padding: 0.7rem 0.85rem !important;
    word-break: break-word;
  }

  /* ---- 聯絡頁面表單 ---- */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .form-input, .form-textarea, .form-select,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], textarea, select {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 16px !important; /* 防止 iOS 輸入時自動縮放 */
    border-radius: 8px !important;
  }
  button[type="submit"], .btn-submit {
    width: 100% !important;
    padding: 0.95rem !important;
    font-size: 1rem !important;
    min-height: 48px;
  }

  /* ---- 價格資訊卡 (Hero 右側) ---- */
  .live-market-card, .quote-card {
    padding: 1.25rem !important;
    margin: 0 !important;
  }
  .quote-symbol { font-size: 1.1rem !important; }
  .quote-price { font-size: 1.9rem !important; }
  .quote-change { font-size: 0.9rem !important; }
  .quote-meta { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  .quote-meta > div { font-size: 0.72rem !important; padding: 0.5rem !important; }

  /* ---- 公告跑馬燈 ---- */
  .announcement-bar {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
  .announcement-bar i:first-child { font-size: 0.9rem !important; }

  /* ---- 頁腳 ---- */
  .footer { padding-top: 2.5rem !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    padding: 0 1rem !important;
  }
  .footer-col { text-align: left; }
  .footer-title {
    font-size: 0.95rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    margin-bottom: 0.75rem !important;
  }
  .footer-list li { padding: 0.3rem 0; font-size: 0.85rem !important; }
  .footer-contact li { font-size: 0.85rem !important; padding: 0.35rem 0; }
  .footer-bottom { font-size: 0.72rem !important; padding: 1rem !important; }
  .risk-text { font-size: 0.72rem !important; line-height: 1.65 !important; }

  /* ---- 浮動按鈕 ---- */
  .float-actions { gap: 0.6rem !important; }
  .float-btn {
    width: 48px !important; height: 48px !important;
    font-size: 1rem !important;
    min-width: 48px; min-height: 48px;
  }

  /* ---- 證書 lightbox ---- */
  .lightbox { padding: 1rem !important; }
  .lightbox img { max-width: 100% !important; max-height: 85vh !important; }
  .lightbox-close {
    top: 1rem !important; right: 1rem !important;
    width: 44px !important; height: 44px !important;
  }

  /* ---- 觸控目標: 所有連結與按鈕 ≥ 44px ---- */
  a, button, .btn-primary, .btn-outline, .btn-secondary {
    min-height: 44px;
  }
  a.inline-link, .footer-list a, .footer-contact a {
    min-height: auto; /* 行內連結例外 */
  }

  /* ---- Badge / 徽章 ---- */
  .badge { font-size: 0.7rem !important; padding: 0.3rem 0.65rem !important; }

  /* ---- 資訊提示盒 (verify box) ---- */
  .verify-box, .info-box {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .verify-box a, .info-box a {
    width: 100%; justify-content: center;
  }
}

/* ---- 480px 以下 (小手機: iPhone SE) ---- */
@media (max-width: 480px) {
  html { font-size: 14.5px; }

  .section-title, h1, h2 { font-size: 1.4rem !important; }
  .hero h1, [class*="hero"] h1 { font-size: 1.55rem !important; }

  /* 統計欄小螢幕保持 2 欄但更緊湊 */
  .stats-strip-inner { gap: 1rem 0.5rem !important; }
  .stats-value { font-size: 1.3rem !important; }
  .stats-label { font-size: 0.68rem !important; }

  /* 證書改單欄 */
  .cert-gallery {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    max-width: 340px;
    margin: 0 auto;
  }
  .cert-image-wrap { aspect-ratio: 4/5 !important; }

  /* 頂部 bar 小字 */
  .top-bar { font-size: 0.65rem !important; padding: 0.35rem 0.65rem !important; }
  .lang-btn { padding: 0.2rem 0.4rem !important; font-size: 0.64rem !important; }

  /* Logo 再縮 */
  .logo-img { width: 34px !important; height: 34px !important; }
  .logo-main { font-size: 0.88rem !important; }
  .logo-sub { display: none !important; } /* 超小螢幕隱藏副標 */

  /* 頁腳合規資訊 */
  .footer-compliance {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    gap: 0.65rem !important;
  }
  .compliance-item { font-size: 0.78rem !important; }

  /* 按鈕再縮 */
  .btn-primary, .btn-outline {
    padding: 0.8rem 1.1rem !important;
    font-size: 0.9rem !important;
  }

  /* Hero 價格卡字型 */
  .quote-price { font-size: 1.6rem !important; }
}

/* ---- 橫向手機 (landscape) ---- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero, [class*="hero-section"] {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .hero h1 { font-size: 1.5rem !important; }
  .navbar { height: 56px; }
  .nav-inner { height: 56px; }
  .mobile-menu { max-height: 100vh; overflow-y: auto; }
}

/* ---- 高 DPI 螢幕 Logo 清晰化 ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img, .mobile-logo, .footer-logo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ---- 減少動畫 (使用者偏好) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 僅手機顯示 ---- */
.show-mobile-only { display: none; }
@media (max-width: 768px) {
  .show-mobile-only { display: inline-flex !important; align-items: center; }
  .hide-mobile-inline { display: none !important; }
}

/* ---- 頁腳員工入口 (低調後台連結) ---- */
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(212, 175, 55, 0.55);
  text-decoration: none;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  margin-left: 0.25rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  transition: all 0.25s;
}
.footer-admin-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.footer-admin-link i { font-size: 0.7rem; }
.footer-sep { opacity: 0.5; margin: 0 0.25rem; }

@media (max-width: 768px) {
  .footer-admin-link {
    margin-top: 0.5rem;
    margin-left: 0;
    display: inline-flex;
  }
  .footer-sep { display: none; }
}

/* ============================================================
   ★ 後台管理系統 專用主題 (高對比 · 清晰易讀)
   ============================================================ */
.admin-body {
  background: #0f1729 !important;
  color: #e5e7eb !important;
  font-family: 'Inter', -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  min-height: 100vh;
  margin: 0;
}

/* 外層格線 */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ---- 左側邊欄 (略淺藍黑, 比主體背景深一階以形成對比) ---- */
.admin-sidebar {
  background: #0a1120 !important;
  border-right: 1px solid #1f2a44 !important;
  min-height: 100vh;
  padding: 1.25rem 0 160px;
  position: relative;
}

.admin-sidebar-header {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid #1f2a44;
  margin-bottom: 0.5rem;
}

.admin-sidebar-subtitle {
  color: #94a3b8;  /* 原 #6b7280 太暗 → 改亮 */
  font-size: 0.7rem;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ---- 導覽項 ---- */
.admin-nav a,
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  color: #cbd5e1 !important;  /* 原 var(--text-secondary) 太暗 → 提亮 */
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-nav a:hover,
.admin-sidebar a:hover,
.admin-nav a.active,
.admin-sidebar a.active {
  background: rgba(212, 175, 55, 0.1) !important;
  color: #d4af37 !important;
  border-left-color: #d4af37 !important;
}
.admin-nav a i,
.admin-sidebar a i {
  color: inherit;
  font-size: 0.95rem;
}

/* ---- 側邊欄底部用戶資訊 ---- */
.admin-sidebar-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid #1f2a44;
  background: #0a1120;
}
.admin-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0a1120;
  font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.admin-name {
  color: #f1f5f9 !important;  /* 很亮, 清晰可見 */
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-role {
  color: #94a3b8 !important;  /* 中亮度, 副文字 */
  font-size: 0.72rem;
  margin-top: 2px;
}

/* 退出登入按鈕 */
.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  color: #e5e7eb !important;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5 !important;
}

/* ---- 主內容區 ---- */
.admin-content {
  padding: 1.5rem 2rem 4rem;
  overflow-x: auto;
  background: #0f1729;
  color: #e5e7eb;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2a44;
}
.admin-title {
  color: #f1f5f9 !important;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

/* 訪問前台按鈕 */
.admin-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid #334155;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.admin-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #d4af37 !important;
}

/* ---- 統計卡 (上方 6 個數字卡) ---- */
.admin-content .stat-card,
.admin-content [style*="background: #fff"],
.admin-content [style*="background:#fff"],
.admin-content [style*="background: white"] {
  background: #1a2438 !important;
  color: #f1f5f9 !important;
  border: 1px solid #2a3553 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.admin-content .stat-card *,
.admin-content [style*="background: #fff"] *,
.admin-content [style*="background:#fff"] *,
.admin-content [style*="background: white"] * {
  color: inherit;
}

/* 統計數字 */
.admin-content [style*="font-size: 2"] {
  color: #f1f5f9 !important;
}

/* 統計標題 (如 "新聞資訊" "公告" "客戶留言") */
.admin-content .stat-label,
.admin-content [style*="color: #6b7280"],
.admin-content [style*="color:#6b7280"],
.admin-content [style*="color: #9ca3af"],
.admin-content [style*="color:#9ca3af"] {
  color: #94a3b8 !important;
}

/* ---- 通用卡片容器 ---- */
.admin-content .card,
.admin-content .panel,
.admin-content [style*="background: #f"],
.admin-content [style*="background:#f"] {
  background: #1a2438 !important;
  border-color: #2a3553 !important;
  color: #e5e7eb !important;
}

/* 所有暗色文字提亮 */
.admin-content [style*="color: #4b5563"],
.admin-content [style*="color:#4b5563"],
.admin-content [style*="color: #374151"],
.admin-content [style*="color:#374151"],
.admin-content [style*="color: #6b7280"],
.admin-content [style*="color:#6b7280"] {
  color: #cbd5e1 !important;
}

/* ---- 表格 ---- */
.admin-content table {
  width: 100%;
  border-collapse: collapse;
  background: #1a2438;
  border-radius: 8px;
  overflow: hidden;
}
.admin-content table thead {
  background: #0f1729;
}
.admin-content table th {
  color: #94a3b8 !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #2a3553;
  letter-spacing: 0.02em;
}
.admin-content table td {
  color: #e5e7eb !important;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1f2a44;
  font-size: 0.88rem;
}
.admin-content table tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

/* ---- 表單輸入 ---- */
.admin-content input[type="text"],
.admin-content input[type="email"],
.admin-content input[type="password"],
.admin-content input[type="number"],
.admin-content input[type="url"],
.admin-content input[type="tel"],
.admin-content textarea,
.admin-content select {
  background: #0f1729 !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
.admin-content input:focus,
.admin-content textarea:focus,
.admin-content select:focus {
  outline: none;
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.admin-content input::placeholder,
.admin-content textarea::placeholder {
  color: #64748b;
}
.admin-content label {
  color: #cbd5e1 !important;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  display: inline-block;
}

/* ---- 按鈕 ---- */
.admin-content button[type="submit"],
.admin-content .btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8941f) !important;
  color: #0a1120 !important;
  border: none !important;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
.admin-content button[type="submit"]:hover,
.admin-content .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* 快捷操作按鈕 (金色主按鈕 + 金色外框輔助按鈕) */
.admin-content a.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

/* ---- 快捷操作面板 & 帳戶信息面板 ---- */
.admin-content [style*="background: linear-gradient"] {
  color: #f1f5f9 !important;
}

/* 暫無數據提示 */
.admin-content .empty-state,
.admin-content [style*="text-align: center"] i.fa-inbox {
  color: #64748b !important;
}
.admin-content [style*="text-align: center"] {
  color: #94a3b8 !important;
}

/* Badge */
.admin-content .badge {
  color: #f1f5f9 !important;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ---- 響應式 ---- */
@media (max-width: 768px) {
  .admin-wrap { grid-template-columns: 1fr !important; }
  .admin-sidebar {
    position: sticky; top: 0; z-index: 20;
    min-height: auto !important;
    padding-bottom: 1rem !important;
  }
  .admin-sidebar-footer {
    position: relative !important;
    margin-top: 1rem;
  }
  .admin-content {
    padding: 1rem 1.25rem !important;
  }
  .admin-title { font-size: 1.25rem !important; }
}

/* ---- 密碼輸入框 + 顯示/隱藏眼睛 ---- */
.password-field-wrap {
  position: relative;
  display: block;
}
.password-field-wrap .input-field {
  padding-right: 2.75rem !important;
  width: 100%;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  padding: 0;
  font-size: 0.95rem;
}
.password-toggle:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
}
.password-toggle:focus {
  outline: none;
  color: #d4af37;
}
.password-toggle i { pointer-events: none; }

/* ============================================================
   ★ 手機版 Hero 實時行情卡 修正 (強制覆蓋 inline style)
   ============================================================ */
@media (max-width: 768px) {
  /* 整個 Hero section 防止水平溢出 */
  .hero, [class*="hero-section"], section.hero {
    overflow-x: hidden !important;
    max-width: 100vw;
  }
  .hero-grid, .hero-inner {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* 實時行情卡片: 強制全寬 + 縮減 padding */
  .hero .card-gold,
  .hero-grid .card-gold,
  [class*="animate-fade-up"] .card-gold {
    padding: 1.25rem !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* 黃金價格主數字: 防止太大溢出 */
  #goldPrice,
  #priceBox > div:first-child > span:first-child {
    font-size: 1.85rem !important;
    letter-spacing: -0.02em;
  }

  /* 報價卡片頂部標題行: 允許換行防擠壓 */
  .hero .card-gold > div:first-child {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* XAU/USD · 現貨黃金 標題縮小 */
  .hero .card-gold > div:first-child > div:first-child > div:nth-child(2) {
    font-size: 0.95rem !important;
  }

  /* 24h 最高/最低 雙欄 grid - 縮減 padding 並固定寬度 */
  #priceBox + div,
  .hero .card-gold [style*="grid-template-columns: repeat(2"] {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .hero .card-gold [style*="grid-template-columns: repeat(2"] > div {
    min-width: 0;
    overflow: hidden;
  }
  .hero .card-gold [style*="grid-template-columns: repeat(2"] > div > div:first-child {
    font-size: 0.7rem !important;
    white-space: nowrap;
  }
  .hero .card-gold [style*="grid-template-columns: repeat(2"] > div > div:last-child {
    font-size: 0.88rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* XAG/USD · 現貨白銀 行 */
  .hero .card-gold [style*="justify-content: space-between"][style*="padding: 0.875rem"] {
    padding: 0.75rem !important;
  }

  /* 漲跌幅行: 縮字 */
  #goldChange {
    font-size: 0.82rem !important;
    flex-wrap: wrap;
  }
}

/* 更小螢幕 (iPhone SE 等 <= 400px) 再進一步縮減 */
@media (max-width: 400px) {
  .hero .card-gold,
  .hero-grid .card-gold {
    padding: 1rem !important;
  }
  #goldPrice {
    font-size: 1.6rem !important;
  }
  .hero .card-gold [style*="grid-template-columns: repeat(2"] {
    padding: 0.6rem !important;
  }
  .hero .card-gold [style*="grid-template-columns: repeat(2"] > div > div:last-child {
    font-size: 0.82rem !important;
  }
}

/* ============================================================
   ★ 手機版 Hero 實時行情卡 修正 (.hero-bg 精準選擇器)
   ============================================================ */
@media (max-width: 768px) {
  /* Hero section (class="hero-bg") 防止水平溢出 */
  .hero-bg {
    overflow-x: hidden !important;
    padding: 3rem 1rem 3rem !important;
  }
  .hero-bg > div {
    max-width: 100% !important;
  }
  .hero-bg .hero-grid {
    gap: 2rem !important;
  }

  /* Hero 右側的實時行情 card-gold - 強制全寬收斂 */
  .hero-bg .card-gold {
    padding: 1.25rem !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    width: 100%;
  }

  /* 黃金價格 $4,789.15 — 避免溢出 */
  .hero-bg #goldPrice {
    font-size: 1.85rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 800;
  }
  .hero-bg #priceBox > div:first-child {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .hero-bg #priceBox > div:first-child > span:last-child {
    font-size: 0.75rem !important;
  }

  /* 24h 最高 / 最低 雙欄 */
  .hero-bg #priceBox + div {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
  .hero-bg #priceBox + div > div > div:first-child {
    font-size: 0.68rem !important;
    white-space: nowrap;
  }
  .hero-bg #priceBox + div > div > div:last-child {
    font-size: 0.85rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 漲跌 +77.16 / +1.64% */
  .hero-bg #goldChange {
    font-size: 0.82rem !important;
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }

  /* XAU/USD · 現貨黃金 副標 */
  .hero-bg .card-gold > div:first-child > div:first-child > div:nth-child(2) {
    font-size: 0.95rem !important;
  }

  /* XAG/USD · 現貨白銀 行 */
  .hero-bg .card-gold > div:last-of-type {
    padding: 0.75rem !important;
  }
  .hero-bg .card-gold > div:last-of-type > div > div:first-child {
    font-size: 0.82rem !important;
  }

  /* Hero 左側標題文案 也不要太擠 */
  .hero-bg h1 {
    font-size: clamp(1.6rem, 5vw, 2rem) !important;
  }
  .hero-bg .animate-fade-up > div:first-child {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.75rem;
  }
  .hero-bg .animate-fade-up > div:first-child span {
    font-size: 0.75rem !important;
  }
}

/* iPhone SE / 小螢幕更細膩 */
@media (max-width: 400px) {
  .hero-bg .card-gold { padding: 1rem !important; }
  .hero-bg #goldPrice { font-size: 1.6rem !important; }
  .hero-bg #priceBox + div { padding: 0.6rem !important; }
  .hero-bg #priceBox + div > div > div:last-child { font-size: 0.8rem !important; }
  .hero-bg { padding: 2.5rem 0.875rem 2.5rem !important; }
}
