/* ═══════════════════════════════════════════
   投資型專區 ・ 共用樣式
   鼎綸保經 ・ 設計系統
   ═══════════════════════════════════════════ */

:root {
  --orange: #F05A28;
  --orange-deep: #D04618;
  --teal: #1A6B72;
  --teal-deep: #0F4D52;
  --navy: #0D2A3A;
  --navy-deep: #061827;
  --light: #F8F5F0;
  --gold: #E8A020;
  --gold-bright: #FFD700;
  --orange-light: #FDE8DF;
  --teal-light: #D0EAEC;
  --green: #2E8B57;
  --red: #C8203A;
  --bg-cream: #FAF7F2;
  --border: #EAE5DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-cream);
  font-family: 'Noto Sans TC', sans-serif;
  color: var(--navy);
  line-height: 1.5;
}

.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* ─── 通用次頁 HEADER ─── */
.subpage-header {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(232,160,32,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(26,107,114,0.3) 0%, transparent 55%),
    linear-gradient(135deg, rgba(13,42,58,0.92) 0%, rgba(10,35,52,0.95) 100%),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80');
  background-size: cover, cover, cover, cover;
  background-position: center;
  padding: 32px 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.subpage-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--gold); font-weight: 700; }

.subpage-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.subpage-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.subpage-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.2;
  color: #fff;
  position: relative;
  z-index: 2;
}
.subpage-title .accent { color: var(--gold); }
.subpage-title .accent-orange { color: var(--orange); }

.subpage-desc {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* ─── 內容區 ─── */
.content {
  padding: 48px 56px;
}

.section-block {
  margin-bottom: 48px;
}
.section-block:last-child { margin-bottom: 0; }

.block-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.block-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
}
.block-subtitle {
  font-size: 13px;
  color: #6b7680;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  margin-left: 16px;
}

/* ─── FOOTER ─── */
.footer-mini {
  background: var(--navy-deep);
  padding: 28px 56px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}
.footer-mini a { color: var(--orange); text-decoration: none; }
.footer-line { margin-bottom: 4px; }

/* ─── FLOATING CTA ─── */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(240,90,40,0.45);
  z-index: 999;
  transition: all .3s;
}
.float-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(240,90,40,0.6);
}

/* ─── 通用卡片元件 ─── */
.info-card {
  background: var(--bg-cream);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.info-card-highlight {
  background: linear-gradient(135deg, var(--orange-light) 0%, #fff 100%);
  border-color: var(--orange);
}
.info-card-dark {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a5a 100%);
  color: #fff;
  border: none;
}

/* ─── 數據卡 ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.stat-label {
  font-size: 11px;
  color: #888;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 700;
}
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 1px;
}
.stat-value.teal { color: var(--teal); }
.stat-value.green { color: var(--green); }
.stat-value.gold { color: var(--gold); }
.stat-value.navy { color: var(--navy); }
.stat-value .unit { font-size: 16px; color: #999; margin-left: 2px; }

/* ─── 表格 ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.data-table thead { background: var(--navy); }
.data-table thead th {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 12px;
  text-align: left;
  letter-spacing: 1px;
}
.data-table thead th.center { text-align: center; }
.data-table thead th.right { text-align: right; }
.data-table tbody td {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--navy);
  border-bottom: 1px solid #F0EBDD;
}
.data-table tbody td.center { text-align: center; }
.data-table tbody td.right { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-cream); }
.data-table .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--orange);
  letter-spacing: 0.5px;
}
.data-table .pct-up { color: var(--green); font-weight: 700; }
.data-table .pct-down { color: var(--red); font-weight: 700; }
.data-table .badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--orange-deep);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ─── 標籤式列表 ─── */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-list.cols-1 { grid-template-columns: 1fr; }
.feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-list li {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all .2s;
}
.feature-list li:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(240,90,40,0.1);
}
.feature-list .feat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-list .feat-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy);
}
.feature-list .feat-text strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--navy);
}

/* ─── 警語/註記 ─── */
.note-box {
  background: rgba(232,160,32,0.08);
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6b6253;
  margin-top: 16px;
}
.note-box strong { color: var(--gold); }

.warning-box {
  background: rgba(200,32,58,0.06);
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6b3a3e;
  margin-top: 16px;
}
.warning-box strong { color: var(--red); }

/* ─── 返回鏈接 ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all .25s;
  position: relative;
  z-index: 2;
}
.back-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ─── CTA 按鈕 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240,90,40,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(240,90,40,0.45);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--orange); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .subpage-header { padding: 24px 20px 32px; }
  .subpage-title { font-size: 26px; letter-spacing: 1px; }
  .content { padding: 32px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list.cols-3 { grid-template-columns: 1fr; }
  .data-table { font-size: 11px; }
  .data-table thead th, .data-table tbody td { padding: 10px 8px; }
  .footer-mini { padding: 20px 20px; }
}

/* ═══════════════════════════════════════════
   ✨ V2 美化補強層（2026/05 更新）
   ═══════════════════════════════════════════ */

/* 全站微動畫 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 10px 28px rgba(240,90,40,0.45); }
  50% { box-shadow: 0 14px 36px rgba(240,90,40,0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 頁面進場動畫 */
.subpage-header,
.product-hero,
.allianz-hero,
.article-hero,
.hero-case {
  animation: fadeUp 0.6s ease-out;
}
.section-block {
  animation: fadeUp 0.7s ease-out backwards;
}
.section-block:nth-child(1) { animation-delay: 0.05s; }
.section-block:nth-child(2) { animation-delay: 0.1s; }
.section-block:nth-child(3) { animation-delay: 0.15s; }
.section-block:nth-child(4) { animation-delay: 0.2s; }
.section-block:nth-child(5) { animation-delay: 0.25s; }

/* 強化浮動 CTA 動畫 */
.float-cta {
  animation: pulse-soft 2.5s ease-in-out infinite;
}
.float-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.4) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

/* 強化 breadcrumb */
.breadcrumb a {
  position: relative;
  padding: 2px 0;
}
.breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.breadcrumb a:hover::after { width: 100%; }

/* 強化標題 - 添加微妙背景光暈 */
.block-title {
  position: relative;
  padding-left: 4px;
}
.block-title::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
  opacity: 0.3;
  margin-left: 8px;
}

/* 統計卡 - 加上滑入特效 */
.stat-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--gold) 100%);
  transition: left 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--orange);
}
.stat-card:hover::before { left: 0; }

/* 表格 - 強化視覺層次 */
.data-table {
  border: 1px solid var(--border);
}
.data-table thead {
  position: relative;
}
.data-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--gold) 50%, var(--orange) 100%);
}
.data-table tbody tr {
  transition: all 0.2s ease;
}

/* 警語/註記強化 */
.note-box, .warning-box {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.note-box::before, .warning-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.05;
  transform: translate(30px, -30px);
}
.note-box::before { background: var(--gold); }
.warning-box::before { background: var(--red); }
.note-box:hover, .warning-box:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

/* 按鈕 - 漣漪效果 */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* 強化 info-card */
.info-card {
  transition: all 0.3s ease;
  position: relative;
}
.info-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--orange) 50%,
    transparent 100%);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.4s ease;
}
.info-card:hover::after { transform: translateX(-50%) scaleX(1); }

.info-card-highlight::before {
  content: '★';
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--orange);
  font-size: 14px;
  opacity: 0.4;
}

/* feature-list 圖示 - 加上發光效果 */
.feature-list .feat-icon {
  transition: all 0.3s ease;
  position: relative;
}
.feature-list li:hover .feat-icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 6px 16px rgba(240,90,40,0.3);
}

/* back-link 強化 */
.back-link {
  backdrop-filter: blur(8px);
}
.back-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.back-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.back-link:hover::before { opacity: 1; }
.back-link:hover {
  border-color: transparent;
  color: #fff;
  transform: translateX(-2px);
}

/* footer 強化 */
.footer-mini {
  background:
    linear-gradient(180deg, transparent 0%, rgba(232,160,32,0.04) 100%),
    var(--navy-deep);
  position: relative;
}
.footer-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}
.footer-mini a {
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-mini a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

/* 通用滾動條美化 (Webkit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--orange) 100%);
}

/* 文字選取顏色 */
::selection {
  background: var(--orange);
  color: #fff;
}
::-moz-selection {
  background: var(--orange);
  color: #fff;
}

/* 列印美化 */
@media print {
  .float-cta, .back-link { display: none !important; }
  .page { box-shadow: none; }
  body { background: #fff; }
}

/* 主視覺紋理增強層 */
.subpage-header,
.product-hero,
.allianz-hero,
.article-hero,
.hero-case {
  position: relative;
}
.subpage-header::after,
.product-hero::after,
.allianz-hero::after,
.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,160,32,0.4) 20%,
    rgba(232,160,32,0.4) 80%,
    transparent 100%);
  pointer-events: none;
}

/* 長文章內容區強化 */
.article-content {
  position: relative;
}
.article-content::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--orange-light) 20%,
    var(--orange-light) 80%,
    transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 900px) {
  .article-content::before { display: none; }
}

/* article-h2 強化裝飾 */
.article-h2 {
  position: relative;
  padding-right: 40px;
}
.article-h2::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 1px;
  background: var(--orange);
  opacity: 0.3;
}

/* tab-bar 強化 */
.tab-bar {
  position: relative;
}
.tab-bar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--orange-light) 100%);
  pointer-events: none;
}

/* 全站漸進顯示 */
.page > * {
  animation: fadeUp 0.5s ease-out backwards;
}
.page > *:nth-child(1) { animation-delay: 0s; }
.page > *:nth-child(2) { animation-delay: 0.1s; }

/* 卡片群統一懸浮效果 */
.profile-card,
.audience-card,
.feat-card,
.benefit-card,
.month-card,
.idx-card,
.obs-card,
.related-item,
.tree-option,
.rec-card,
.why-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 連結預設轉場 */
a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* 強化所有表格 hover */
table tbody tr {
  transition: all 0.2s ease;
}

/* 細節：改善文字渲染 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 數字字體統一加上 tabular-nums，對齊更整齊 */
.stat-value,
.idx-current,
.balance-pct,
.case-d-amount,
.case-g-amount,
.case-std-amount,
.summary-stat-value,
.hero-case-amount,
.qqq-stat-value,
.a-stat-value {
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════
   ✨ V3 美化升級層（2026/05 ・全站精修版）
   作者：Cowork ・ Claude
   原則：1) 不動 SPA 路由 2) 向下相容既有 class 3) 全純 CSS+少量 vanilla JS
   ═══════════════════════════════════════════ */

/* ───── V3.0 設計 Token 擴充（深色模式變數準備） ───── */
:root {
  --shadow-sm: 0 2px 6px rgba(13,42,58,0.06);
  --shadow-md: 0 8px 24px rgba(13,42,58,0.08);
  --shadow-lg: 0 20px 48px rgba(13,42,58,0.12);
  --shadow-gold: 0 12px 32px rgba(232,160,32,0.28);
  --shadow-orange: 0 12px 32px rgba(240,90,40,0.32);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grad-warm: linear-gradient(135deg, #F05A28 0%, #E8A020 100%);
  --grad-deep: linear-gradient(135deg, #0D2A3A 0%, #061827 100%);
  --grad-teal: linear-gradient(135deg, #1A6B72 0%, #0F4D52 100%);
  --grad-shimmer: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
}

/* 深色模式變數（自動偵測 prefers-color-scheme，可由 body[data-theme=dark] 強制覆蓋） */
@media (prefers-color-scheme: dark) {
  :root.dark-auto {
    --bg-cream: #0F1B24;
    --light: #1A2832;
    --navy: #E8EEF2;
    --border: #2A3744;
  }
}
body[data-theme="dark"] {
  --bg-cream: #0F1B24;
  --light: #1A2832;
  --border: #2A3744;
  background: #0A141C !important;
}
body[data-theme="dark"] .page { background: #0F1B24; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
body[data-theme="dark"] .info-card,
body[data-theme="dark"] .feature-list li,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .data-table { background: #1A2832; color: #E8EEF2; border-color: #2A3744; }
body[data-theme="dark"] .data-table tbody td { color: #E8EEF2; }
body[data-theme="dark"] .block-title,
body[data-theme="dark"] .section-title,
body[data-theme="dark"] .feat-text strong { color: #F5DBA7; }
body[data-theme="dark"] .content { background: #0F1B24; }
body[data-theme="dark"] .info-card-highlight { background: linear-gradient(135deg, rgba(240,90,40,0.18) 0%, rgba(26,40,50,1) 100%); }

/* ───── V3.1 SCROLL REVEAL（資料屬性驅動，無 framework） ───── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out-quint), transform 0.85s var(--ease-out-quint);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0,0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ───── V3.2 COUNT-UP 數字計數動畫 ───── */
[data-countup] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ───── V3.3 玻璃擬態 ───── */
.glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.12);
}
.glass-light {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
}

/* ───── V3.4 全站案例卡 / 商品卡 / 鑽石卡 進階懸浮 ───── */
.case-card-diamond,
.case-card-gold,
.case-card-std,
.case-diamond,
.product-card,
.k-card,
.knowledge-card,
.res-card,
.qn-item {
  position: relative;
  isolation: isolate;
}

/* 鑽石卡金光暈再強化 */
.case-card-diamond,
.case-diamond {
  background-image: linear-gradient(135deg, var(--navy) 0%, #1A4A5A 50%, #0F3645 100%) !important;
}
.case-card-diamond::after,
.case-diamond::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0%, rgba(232,160,32,0.45) 25%, transparent 50%, rgba(232,160,32,0.45) 75%, transparent 100%);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s var(--ease-out-quint);
  animation: orbitGlow 8s linear infinite;
}
.case-card-diamond:hover::after,
.case-diamond:hover::after {
  opacity: 1;
}
@keyframes orbitGlow {
  to { transform: rotate(360deg); }
}

/* 卡片群通用上浮陰影深化 */
.case-card-gold:hover,
.case-card-std:hover,
.product-card:hover,
.knowledge-card:hover,
.res-card:hover,
.profile-card:hover,
.audience-card:hover,
.feat-card:hover,
.benefit-card:hover,
.month-card:hover,
.idx-card:hover {
  transform: translateY(-5px) !important;
}

/* ───── V3.5 SVG 迷你圖表元件（內嵌到案例頁） ───── */
.mini-chart-block {
  background: linear-gradient(180deg, #fff 0%, var(--bg-cream) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mini-chart-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-warm);
}
.mini-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .mini-chart-grid { grid-template-columns: 1fr; }
}
.mini-chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.3s var(--ease-out-quint);
}
.mini-chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.mini-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.mini-chart-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 1px;
}
.mini-chart-subtitle {
  font-size: 10px;
  color: #999;
  letter-spacing: 1px;
  margin-top: 4px;
  text-transform: uppercase;
}
.mini-chart-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--orange);
  letter-spacing: 1px;
  line-height: 1;
}
.mini-chart-value.green { color: var(--green); }
.mini-chart-value.teal { color: var(--teal); }
.mini-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}
.mini-chart-svg .bar-rect {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: bottom;
}
.mini-chart-svg .bar-rect:hover {
  opacity: 0.85;
}
.mini-chart-svg .line-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-chart-svg .area-fill {
  opacity: 0.18;
}
.mini-chart-svg .axis-line {
  stroke: #E0DAC9;
  stroke-width: 1;
  stroke-dasharray: 3,3;
}
.mini-chart-svg .data-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  fill: #888;
  letter-spacing: 0.5px;
}
.mini-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #888;
  margin-top: 8px;
  letter-spacing: 1px;
  flex-wrap: wrap;
}
.mini-chart-legend .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.mini-chart-note {
  font-size: 10px;
  color: #aaa;
  margin-top: 10px;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* SVG bar animation on reveal */
.mini-chart-svg .bar-rect {
  transform-origin: bottom center;
  animation: barRise 1.2s var(--ease-out-quint) backwards;
}
.mini-chart-svg .bar-rect:nth-child(1) { animation-delay: 0.05s; }
.mini-chart-svg .bar-rect:nth-child(2) { animation-delay: 0.1s; }
.mini-chart-svg .bar-rect:nth-child(3) { animation-delay: 0.15s; }
.mini-chart-svg .bar-rect:nth-child(4) { animation-delay: 0.2s; }
.mini-chart-svg .bar-rect:nth-child(5) { animation-delay: 0.25s; }
.mini-chart-svg .bar-rect:nth-child(6) { animation-delay: 0.3s; }
.mini-chart-svg .bar-rect:nth-child(7) { animation-delay: 0.35s; }
.mini-chart-svg .bar-rect:nth-child(8) { animation-delay: 0.4s; }
.mini-chart-svg .bar-rect:nth-child(9) { animation-delay: 0.45s; }
.mini-chart-svg .bar-rect:nth-child(10) { animation-delay: 0.5s; }
.mini-chart-svg .bar-rect:nth-child(11) { animation-delay: 0.55s; }
.mini-chart-svg .bar-rect:nth-child(12) { animation-delay: 0.6s; }
@keyframes barRise {
  from { transform: scaleY(0); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}

/* 線圖描繪動畫 */
.mini-chart-svg .line-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: lineDraw 1.6s var(--ease-out-quint) 0.2s forwards;
}
@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* ───── V3.6 TAB 切換動畫升級（products/） ───── */
.tab-pane {
  animation: tabSlideIn 0.45s var(--ease-out-quint);
}
.tab-pane.fade-leave {
  animation: tabSlideOut 0.2s ease-in;
}
@keyframes tabSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tabSlideOut {
  to { opacity: 0; transform: translateY(-6px); }
}
.tab-bar button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.tab-bar button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-warm);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.tab-bar button.active::before { opacity: 1; }
.tab-bar button.active {
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* ───── V3.7 RWD 強化（小螢幕表格） ───── */
@media (max-width: 720px) {
  .data-table { font-size: 11px; }
  .data-table thead th, .data-table tbody td { padding: 8px 6px; }
  /* 大型表格小螢幕橫向滾動 */
  .table-scroll-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }
  .table-scroll-mobile .data-table { min-width: 560px; }
  .table-scroll-mobile::after {
    content: '← 左右滑動 →';
    display: block;
    font-size: 10px;
    color: #999;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 6px;
    opacity: 0.7;
  }
  .hero-case { padding: 24px 20px 28px !important; }
  .hero-case-grid { grid-template-columns: 1fr !important; }
  .hero-case-amount { font-size: 60px !important; }
}

/* ───── V3.8 搜尋元件樣式（cases/index.html 用） ───── */
.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}
.search-box input {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 25px;
  padding: 10px 16px 10px 38px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--navy);
  font-family: inherit;
  transition: all 0.25s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(240,90,40,0.18);
}
.search-box::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.6;
  pointer-events: none;
}

/* ───── V3.9 主題切換按鈕（floating，右上） ───── */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13,42,58,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-out-quint);
  box-shadow: var(--shadow-md);
}
.theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
  background: var(--orange);
  border-color: var(--orange);
}

/* ───── V3.10 列印優化擴充 ───── */
@media print {
  body { background: #fff !important; -webkit-print-color-adjust: exact; }
  .page { box-shadow: none !important; max-width: 100% !important; }
  .float-cta, .back-link, .theme-toggle, .spa-home-btn, #spa-loader, #spa-progress { display: none !important; }
  .hero, .hero-case, .product-hero, .allianz-hero, .subpage-header {
    background: linear-gradient(135deg, #0D2A3A, #1a4a5a) !important;
    color: #fff !important;
  }
  .section, .content { padding: 24px 32px !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
  .mini-chart-svg .bar-rect, .mini-chart-svg .line-path { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .case-card-diamond, .case-diamond, .case-card-gold, .case-card-std {
    page-break-inside: avoid;
  }
  .section-block { page-break-inside: avoid; }
}

/* ───── V4 home.html 白金/鈦金案例卡(case-card-diamond + .case-card-premium) ───── */
.case-card-premium[data-tier="platinum"] {
  border-color: #c8ccd2 !important;
  box-shadow: 0 8px 24px rgba(200,204,210,0.22) !important;
}
.case-card-premium[data-tier="platinum"]:hover {
  box-shadow: 0 14px 32px rgba(200,204,210,0.4) !important;
}
.case-card-premium[data-tier="platinum"] .case-tier-badge {
  background: linear-gradient(135deg, #f7f8fa 0%, #d6d8db 55%, #a8acb1 100%) !important;
  color: #1a1f24 !important;
}
.case-card-premium[data-tier="platinum"] .case-amount {
  background: linear-gradient(135deg, #f7f8fa 0%, #c0c4c8 55%, #8d9196 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.case-card-premium[data-tier="titanium"] {
  border-color: #6e7378 !important;
  box-shadow: 0 8px 24px rgba(70,75,80,0.3) !important;
}
.case-card-premium[data-tier="titanium"]:hover {
  box-shadow: 0 14px 32px rgba(70,75,80,0.45) !important;
}
.case-card-premium[data-tier="titanium"] .case-tier-badge {
  background: linear-gradient(135deg, #b0b3b8 0%, #6e7378 55%, #3d4146 100%) !important;
  color: #f4f5f7 !important;
}
.case-card-premium[data-tier="titanium"] .case-amount {
  background: linear-gradient(135deg, #d0d2d6 0%, #8d9196 55%, #5d6166 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ───── V3.11 「鑽石/金/標準」案例分級徽章脈動 ───── */
.case-tier-badge,
.hero-case-tag,
.case-d-tag {
  position: relative;
  overflow: hidden;
}
.case-tier-badge::after,
.hero-case-tag::after,
.case-d-tag::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-shimmer);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: shimmerSlide 3.5s linear infinite;
  pointer-events: none;
}
@keyframes shimmerSlide {
  to { background-position: -100% 0; }
}

/* ───── V3.12 統計大數字加底光 ───── */
.hero-stat-value,
.summary-stat-value {
  text-shadow: 0 0 24px rgba(232,160,32,0.35);
}

/* ───── V3.13 預設 a 點擊高亮抑制 ───── */
a, button {
  -webkit-tap-highlight-color: rgba(240,90,40,0.15);
}

/* ───── V3.14 整頁淡入（SPA 切換補強） ───── */
#spa-content .page {
  animation: fadeUp 0.55s var(--ease-out-quint);
}

/* ───── V3.15 hero/section 標題 gradient text 工具 ───── */
.text-gradient-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ───── V3.16 parallax 工具類（不依賴 JS，CSS background-attachment） ───── */
.parallax-bg {
  background-attachment: fixed !important;
}
@media (max-width: 900px) {
  .parallax-bg { background-attachment: scroll !important; }
}

/* ───── V3.17 footer-mini 強化（多列版） ───── */
.footer-rich {
  background: linear-gradient(180deg, rgba(232,160,32,0.04) 0%, var(--navy-deep) 100%);
  padding: 36px 56px 28px !important;
  text-align: left !important;
}
.footer-rich .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.footer-rich .footer-col h4 {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 900;
}
.footer-rich .footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.footer-rich .footer-col a:hover { color: var(--gold); }
.footer-rich .footer-line { text-align: center; }
@media (max-width: 720px) {
  .footer-rich { padding: 28px 20px 20px !important; }
  .footer-rich .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ───── V3.18 知識/資源/FAQ 觸發互動加強 ───── */
.faq-item summary {
  position: relative;
}
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(240,90,40,0.3);
}
.faq-item[open] {
  animation: faqOpen 0.4s var(--ease-out-quint);
}
@keyframes faqOpen {
  from { transform: translateY(2px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

/* ───── V3.19 標籤 / 徽章自動排版 ───── */
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ───── V3.20 Hero 上方數字計數時的小提示 ───── */
[data-countup]::after {
  content: '';
}

/* ───── V3.21 商品卡保險公司色點 ───── */
.product-card[data-brand="kgi"]::before,
.product-card[data-brand="yuanta"]::before,
.product-card[data-brand="bnp"]::before,
.product-card[data-brand="chubb"]::before,
.product-card[data-brand="allianz"]::before {
  background: var(--grad-warm) !important;
}

/* ───── V3.22 平滑滾動 + 鎖定 viewport 偏移（避免 anchor 被 hero 蓋住） ───── */
:where(section[id]) {
  scroll-margin-top: 24px;
}

/* ───── V3.23 文字工具類 ───── */
.font-display { font-family: 'Playfair Display', serif; font-style: italic; }
.font-num { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.text-gold { color: var(--gold); }
.text-orange { color: var(--orange); }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-muted { color: #8a8f95; }

/* ───── V3.24 高品質 hover 微交互（資源卡圖示自動修正） ───── */
.res-card .res-icon-wrap {
  transition: all 0.35s var(--ease-spring);
}
.res-card:hover .res-icon-wrap {
  transform: rotate(-6deg) scale(1.1);
}

/* ───── V3.25 強化首頁 hero stats 卡片懸浮 ───── */
.hero-stat {
  transition: background 0.3s ease, transform 0.3s var(--ease-out-quint);
}
.hero-stat:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.hero-stat:hover .hero-stat-value {
  text-shadow: 0 0 32px rgba(232,160,32,0.6);
}

/* ───── V3.26 鑽石卡 動態金線邊框 ───── */
.case-card-diamond .case-amount,
.case-diamond .case-d-amount,
.case-diamond .case-amount {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(232,160,32,0.4));
}

/* ───── V3.27 product-card 進階：浮現「了解更多」遮罩 ───── */
.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,42,58,0.92) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 900;
}
.product-card:hover .product-overlay { opacity: 1; }

/* ───── V3.28 進場 stagger（卡片網格） ───── */
.products-grid > *,
.case-diamond-row > *,
.case-gold-row > *,
.case-std-row > *,
.diamond-grid > *,
.knowledge-grid > *,
.resources-grid > *,
.quicknav-grid > * {
  animation: fadeUp 0.7s var(--ease-out-quint) backwards;
}
.products-grid > *:nth-child(1) { animation-delay: 0.05s; }
.products-grid > *:nth-child(2) { animation-delay: 0.1s; }
.products-grid > *:nth-child(3) { animation-delay: 0.15s; }
.products-grid > *:nth-child(4) { animation-delay: 0.2s; }
.products-grid > *:nth-child(5) { animation-delay: 0.25s; }
.products-grid > *:nth-child(6) { animation-delay: 0.3s; }
.case-diamond-row > *:nth-child(1),
.case-gold-row > *:nth-child(1),
.case-std-row > *:nth-child(1) { animation-delay: 0.05s; }
.case-diamond-row > *:nth-child(2),
.case-gold-row > *:nth-child(2),
.case-std-row > *:nth-child(2) { animation-delay: 0.1s; }
.case-diamond-row > *:nth-child(3),
.case-gold-row > *:nth-child(3),
.case-std-row > *:nth-child(3) { animation-delay: 0.15s; }
.case-diamond-row > *:nth-child(4),
.case-gold-row > *:nth-child(4),
.case-std-row > *:nth-child(4) { animation-delay: 0.2s; }

/* ───── V3.29 案例頁專屬 chart-section 包裝 ───── */
.case-projection-section {
  margin-top: 16px;
}
.case-projection-section .block-title { margin-bottom: 4px; }

/* ───── V3.30 高 z-index 層級規範 ───── */
/* loader: 9999, progress: 10000, theme-toggle: 998, float-cta: 999, home-btn: 998 */

/* ───── V3.31 案例對帳單截圖區塊 + Lightbox（V3.32 升級：置頂 + 放大） ───── */
.case-screenshots-section {
  margin-top: 0 !important;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px dashed rgba(232,160,32,0.35);
}
.case-screenshots-section[hidden] { display: none; }
.case-screenshots-section .block-title {
  font-size: 26px !important;
  letter-spacing: 2px;
}
.case-screenshots-section .block-title::before {
  height: 26px;
  background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
}
.case-screenshots-section .block-subtitle {
  font-size: 14px;
  margin-bottom: 24px;
}

.screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
}
.screenshot-card {
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.35s var(--ease-out-quint);
  box-shadow: var(--shadow-md);
}
.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(232,160,32,0.35);
  border-color: var(--orange);
}
.screenshot-card::after {
  content: '🔍 點擊放大檢視';
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(13,42,58,0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 14px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
  font-weight: 700;
  pointer-events: none;
}
.screenshot-card:hover::after { opacity: 1; }
.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-cream);
  /* 保持原始比例，不再強制 min-height（避免細長表格被拉伸） */
}
/* 圖片上方薄條（不擋圖） */
.ss-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--bg-cream) 0%, rgba(232,160,32,0.08) 100%);
  border-bottom: 1.5px solid var(--gold);
}
.screenshot-card .ss-tag {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(232,160,32,0.3);
  position: static;          /* 取消絕對定位 */
}
.screenshot-card .ss-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: 2px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.screenshot-card .ss-date::before {
  content: '📅';
  font-size: 13px;
}
/* 舊月份的 header 用較淡的橘色 */
.screenshot-month-group:not(:first-child) .ss-header {
  background: var(--bg-cream);
  border-bottom-color: var(--border);
}
.screenshot-month-group:not(:first-child) .ss-tag {
  background: #C5BFB0;
  box-shadow: none;
}
@media (max-width: 720px) {
  .case-screenshots-section .block-title { font-size: 22px !important; }
  .screenshot-card { border-width: 2px; }
  .ss-header { padding: 8px 12px; }
  .screenshot-card .ss-tag { font-size: 10px; padding: 3px 9px; letter-spacing: 1px; }
  .screenshot-card .ss-date { font-size: 12px; letter-spacing: 1px; }
  .screenshot-card::after { font-size: 10px; bottom: 10px; right: 10px; }
}

/* ───── V3.34 案例頁對帳單 年月分組顯示 ───── */
.screenshot-month-group {
  margin-bottom: 32px;
}
.screenshot-month-group:last-child {
  margin-bottom: 0;
}
.screenshot-month-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--bg-cream) 0%, rgba(232,160,32,0.1) 100%);
  border-left: 5px solid var(--gold);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}
.month-icon {
  font-size: 20px;
  line-height: 1;
}
.month-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: 3px;
  font-weight: 900;
  line-height: 1;
}
.month-badge {
  background: linear-gradient(135deg, var(--green) 0%, #1a6b3a 100%);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(46,139,87,0.4);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.month-count {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  font-weight: 700;
}
.screenshot-month-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* 最新月份的圖加金色邊框，舊月份維持淺色 */
.screenshot-month-group:first-child .screenshot-card {
  border-color: var(--gold);
}
.screenshot-month-group:not(:first-child) .screenshot-card {
  border-color: var(--border);
  border-width: 2px;
  opacity: 0.92;
}
.screenshot-month-group:not(:first-child) .screenshot-card:hover {
  opacity: 1;
  border-color: var(--orange);
}
@media (max-width: 720px) {
  .month-label { font-size: 22px; letter-spacing: 2px; }
  .screenshot-month-header { padding: 10px 16px; gap: 10px; }
  .month-count { font-size: 11px; }
}

/* ───── V3.33 案例頁精簡：隱藏 Hero 模板假資料 ───── */
.hero-case-title,
.hero-case-subtitle {
  display: none !important;
}
/* hero-case-id-row 第 3 個 meta 是「客戶年齡」假資料 */
.hero-case-id-row .meta:nth-of-type(3) {
  display: none !important;
}
/* 重新調整 Hero 排版（少了 title/subtitle 後不留太多空白） */
.hero-case .hero-case-grid {
  align-items: center !important;
  min-height: 180px;
}
.hero-case-tag {
  margin-bottom: 18px !important;
}
.hero-case-id-row {
  margin-top: 14px !important;
}

/* ───── V4 案例 5 級徽章配色(DIAMOND/PLATINUM/TITANIUM/GOLD/SILVER) ───── */
.hero-case-tag.tier-diamond {
  background: linear-gradient(135deg, #B9F2FF 0%, #FFD700 55%, #E8A020 100%) !important;
  color: #1a2b3c !important;
  box-shadow: 0 2px 14px rgba(255,215,0,0.42), inset 0 0 0 1px rgba(255,255,255,0.4) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35) !important;
}
.hero-case-tag.tier-platinum {
  background: linear-gradient(135deg, #f7f8fa 0%, #d6d8db 55%, #a8acb1 100%) !important;
  color: #1a1f24 !important;
  box-shadow: 0 2px 12px rgba(180,184,190,0.45), inset 0 0 0 1px rgba(255,255,255,0.55) !important;
}
.hero-case-tag.tier-titanium {
  background: linear-gradient(135deg, #b0b3b8 0%, #6e7378 55%, #3d4146 100%) !important;
  color: #f4f5f7 !important;
  box-shadow: 0 2px 12px rgba(60,65,70,0.5), inset 0 0 0 1px rgba(255,255,255,0.18) !important;
}
.hero-case-tag.tier-gold {
  background: linear-gradient(135deg, #ffd76b 0%, #e8a020 55%, #b97412 100%) !important;
  color: #1a1f24 !important;
  box-shadow: 0 2px 12px rgba(232,160,32,0.42), inset 0 0 0 1px rgba(255,255,255,0.3) !important;
}
.hero-case-tag.tier-silver {
  background: linear-gradient(135deg, #f3f5f7 0%, #c0c4c8 55%, #8d9196 100%) !important;
  color: #1a1f24 !important;
  box-shadow: 0 2px 10px rgba(155,160,170,0.4), inset 0 0 0 1px rgba(255,255,255,0.45) !important;
}

/* ───── V3.35 Hero 右側：純排版精緻設計（無框、典雅、有層次） ───── */
.hero-case-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 56px;
  text-align: right;
  position: relative;
}
/* 兩個 block 中間的金色分隔線 */
.hero-case-right .hero-meta-block + .hero-meta-block {
  position: relative;
}
.hero-case-right .hero-meta-block + .hero-meta-block::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(232,160,32,0.5) 30%,
    rgba(232,160,32,0.5) 70%,
    transparent 100%);
}
.hero-case-right .hero-meta-block {
  background: none;
  border: none;
  padding: 0;
  text-align: right;
  transition: opacity 0.3s ease;
}
.hero-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.hero-meta-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero-case-date {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: #fff;
  line-height: 1;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255,255,255,0.15);
}
.hero-case-right .hero-case-amount {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 64px !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  white-space: nowrap !important;   /* 防「萬」掉到下一行 */
  display: inline-flex !important;
  align-items: baseline !important;
  /* 金色漸層字 */
  background: linear-gradient(135deg, #FFD700 0%, #E8A020 50%, #F05A28 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(232,160,32,0.25));
}
.hero-case-right .hero-case-amount .unit {
  font-size: 22px !important;
  margin-left: 6px !important;
  -webkit-text-fill-color: rgba(255,255,255,0.55) !important;
  background: none !important;
  filter: none;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .hero-case-right { gap: 32px; justify-content: flex-start; padding-top: 8px; }
  .hero-case-right .hero-meta-block + .hero-meta-block::before { left: -16px; }
  .hero-meta-label { font-size: 9px; letter-spacing: 2px; margin-bottom: 6px; }
  .hero-meta-label::after { width: 20px; }
  .hero-case-date { font-size: 28px; letter-spacing: 1px; }
  .hero-case-right .hero-case-amount { font-size: 34px !important; letter-spacing: 1px !important; }
  .hero-case-right .hero-case-amount .unit { font-size: 16px !important; }
  .hero-case .hero-case-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

.screenshots-empty {
  display: none;
}

/* Lightbox 蓋層 */
#case-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,24,39,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(8px);
  padding: 40px 20px;
  cursor: zoom-out;
}
#case-lightbox.show {
  display: flex;
  animation: fadeUp 0.3s ease-out;
}
#case-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: #fff;
}
#case-lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
#case-lightbox .lb-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(90deg);
}
#case-lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
#case-lightbox .lb-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}
#case-lightbox .lb-prev { left: 24px; }
#case-lightbox .lb-next { right: 24px; }
#case-lightbox .lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
@media (max-width: 720px) {
  #case-lightbox .lb-nav { width: 44px; height: 44px; font-size: 22px; }
  #case-lightbox .lb-prev { left: 12px; }
  #case-lightbox .lb-next { right: 12px; }
}

/* ───── V3.36 已驗證徽章（manifest 有對帳單的案例自動標記） ───── */
.case-card-diamond.is-verified,
.case-card-gold.is-verified,
.case-card-std.is-verified,
.case-diamond.is-verified,
.case-gold.is-verified,
.case-std.is-verified {
  position: relative;
}
.verified-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #2E8B57 0%, #1a6b3a 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(46,139,87,0.45);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: verified-pulse 2.4s ease-in-out infinite;
  border: 2px solid #fff;
}
.verified-badge::before {
  content: '✓';
  font-size: 12px;
}
@keyframes verified-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(46,139,87,0.45); }
  50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(46,139,87,0.65); }
}
/* 案例表格列的徽章 */
.case-table tbody tr.is-verified .id-cell::after {
  content: ' ✓';
  color: var(--green);
  font-weight: 900;
}

/* ───── V3.37 iPad / 平板響應式（橫式 + 直式） ───── */
/* iPad 直式 ~768px-1024px */
@media (min-width: 721px) and (max-width: 1024px) {
  .page { max-width: 100%; }
  .content { padding: 36px 32px; }

  /* Hero */
  .hero-case { padding: 28px 32px; }
  .hero-case-grid { gap: 24px; }
  .hero-case-right { gap: 36px; }
  .hero-case-date { font-size: 44px; letter-spacing: 2px; }
  .hero-case-right .hero-case-amount { font-size: 54px !important; }

  /* 案例卡片 */
  .case-diamond-row { grid-template-columns: 1fr 1fr; }
  .case-gold-row { grid-template-columns: repeat(2, 1fr); }
  .case-std-row { grid-template-columns: repeat(3, 1fr); }
  .diamond-grid { grid-template-columns: 1fr 1fr; }
  .gold-grid { grid-template-columns: repeat(2, 1fr); }
  .std-grid { grid-template-columns: repeat(3, 1fr); }

  /* 商品 + 資源 */
  .products-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-grid .knowledge-card:first-child { grid-column: 1 / -1; }

  /* 安聯卡片 */
  .allianz-card { grid-template-columns: 1fr; }

  /* 首頁 hero */
  .hero { padding: 44px 32px 56px; }
  .hero-title { font-size: 54px; letter-spacing: 3px; }
  .hero-title .hero-title-en { font-size: 60px; }
  .hero-stats { grid-template-columns: repeat(5, 1fr); }
  .hero-trend-svg { width: 220px; height: 140px; right: 32px; opacity: 0.4; }
}

/* iPad 橫式 ~1024-1366 — 維持桌機版面，但縮一點留邊 */
@media (min-width: 1025px) and (max-width: 1366px) {
  .page { max-width: 1000px; }
  .hero-trend-svg { width: 280px; }
}

/* 手機橫式 480-720 */
@media (min-width: 481px) and (max-width: 720px) {
  .hero-case-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .hero-case-right { justify-content: flex-start; gap: 24px; }
  .hero-case-date { font-size: 30px; }
  .hero-case-right .hero-case-amount { font-size: 36px !important; }

  .case-diamond-row { grid-template-columns: 1fr 1fr; }
  .case-gold-row { grid-template-columns: 1fr 1fr; }
  .case-std-row { grid-template-columns: 1fr 1fr; }
  .diamond-grid { grid-template-columns: 1fr 1fr; }
  .gold-grid { grid-template-columns: 1fr 1fr; }
  .std-grid { grid-template-columns: 1fr 1fr; }

  .hero-stats { grid-template-columns: repeat(5, 1fr) !important; }
  .hero-trend-svg { display: none; }
}

/* 手機直式 <= 480 */
@media (max-width: 480px) {
  .page { box-shadow: none; }
  .content { padding: 24px 16px; }
  .hero-case { padding: 20px 16px 24px; }
  .hero-case-tag { font-size: 10px; padding: 3px 10px; }

  .hero-case-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .hero-case-right {
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .hero-case-right .hero-meta-block + .hero-meta-block::before {
    display: none;
  }
  .hero-case-right .hero-meta-block { flex: 1; min-width: 130px; }
  .hero-case-date { font-size: 22px !important; letter-spacing: 0.5px !important; }
  .hero-case-right .hero-case-amount { font-size: 28px !important; letter-spacing: 0.5px !important; }
  .hero-case-right .hero-case-amount .unit { font-size: 13px !important; }
  .hero-meta-label { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 4px; }
  .hero-meta-label::after { width: 18px; }

  .hero-case-id-row .meta { padding: 8px 14px; }
  .hero-case-id-row .meta-value.lg { font-size: 20px; }

  /* 案例列表 */
  .case-diamond-row { grid-template-columns: 1fr; }
  .case-gold-row { grid-template-columns: 1fr; }
  .case-std-row { grid-template-columns: 1fr 1fr; }
  .diamond-grid { grid-template-columns: 1fr; }
  .gold-grid { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr 1fr; }

  /* 對帳單 */
  .screenshot-month-header { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .month-label { font-size: 18px; letter-spacing: 1px; }
  .month-badge { font-size: 9px; padding: 3px 10px; }
  .month-count { font-size: 10px; margin-left: 0; width: 100%; text-align: right; margin-top: 4px; }
  .screenshot-card { border-width: 2px; border-radius: 12px; }
  .ss-header { padding: 8px 12px; }
  .screenshot-card .ss-tag { font-size: 10px; padding: 3px 8px; letter-spacing: 1px; }
  .screenshot-card .ss-date { font-size: 11px; letter-spacing: 1px; }

  /* 首頁 hero */
  .hero { padding: 28px 18px 36px; }
  .hero-title { font-size: 38px; letter-spacing: 2px; }
  .hero-title .hero-title-en { font-size: 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-stat-value { font-size: 32px; }
  .hero-trend-svg { display: none; }

  /* 商品 / 資源 */
  .products-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .allianz-card { grid-template-columns: 1fr; }

  /* CTA */
  .cta-title { font-size: 24px; letter-spacing: 1px; }
  .cta-btn { font-size: 12px; padding: 12px 24px; }

  /* nav-cases */
  .nav-cases { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* Lightbox 手機優化 */
  #case-lightbox img { max-width: 100vw; max-height: 75vh; }
  #case-lightbox .lb-counter { bottom: 10px; font-size: 14px; padding: 5px 12px; }

  /* Float CTA 縮小 */
  .float-cta { padding: 10px 18px; font-size: 12px; }
  .theme-toggle { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 14px; }
}

/* ───── V3.38 列印優化 ───── */
@media print {
  body { background: #fff !important; }
  .page { box-shadow: none !important; }
  .float-cta, .theme-toggle, .spa-home-btn, #spa-loader, #spa-progress, .back-link, .nav-cases { display: none !important; }
  .hero-case { padding: 20px 24px !important; page-break-after: avoid; }
  .hero-case-date, .hero-case-right .hero-case-amount {
    color: #0D2A3A !important;
    -webkit-text-fill-color: #0D2A3A !important;
    background: none !important;
    filter: none !important;
  }
  .case-screenshots-section { page-break-inside: avoid; }
  .screenshot-month-group { page-break-inside: avoid; }
  .screenshot-card { page-break-inside: avoid; break-inside: avoid; border-width: 1px !important; }
  .ss-header { background: #f5f5f5 !important; }
  .screenshot-card img { max-height: 80vh; }
  /* 隱藏不需印的 */
  .case-screenshots-section [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* 每頁邊距 */
  @page { margin: 12mm; }
}

/* ───── V3.39 觸控優化（行動裝置點擊熱區、無 hover 處理） ───── */
@media (hover: none) {
  /* 手機沒 hover，把 hover 效果改成 active */
  .case-card-diamond:active, .case-card-gold:active, .case-card-std:active,
  .case-diamond:active, .case-gold:active, .case-std:active,
  .product-card:active, .knowledge-card:active, .res-card:active,
  .screenshot-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s;
  }
  /* 預設展示 hover 視覺 */
  .screenshot-card::after { opacity: 0.85; }
}

/* ───── V3.40 平板橫式（iPad landscape 1024-1366） ───── */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-case-right { gap: 44px; }
  .hero-case-date { font-size: 60px; }
  .hero-case-right .hero-case-amount { font-size: 70px !important; }
  /* 主頁 hero 縮小 trend SVG */
  .hero-trend-svg { width: 260px; opacity: 0.45; }
}

/* ───── V3.41 hero 高度動態 ───── */
@media (min-width: 481px) {
  .hero-case { min-height: auto; }
}

/* ───── V3.42 對帳單最大顯示寬度（避免在 iPad 橫式太寬看不清楚） ───── */
@media (min-width: 1025px) {
  .screenshots-grid {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ───── V3.43 Lightbox 觸控滑動切換 ───── */
#case-lightbox img {
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

/* ===== V4 a11y + detail polish (2026/06) ===== */

/* V4.0 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-countup] { animation: none !important; }
}

/* V4.1 keyboard focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--gold, #E8A020) !important;
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(232,160,32,0.18);
  transition: outline-offset .12s, box-shadow .12s;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* V4.2 skip-to-content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--navy, #0D2A3A);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100000;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* V4.3 touch device disable hover transform */
@media (hover: none) {
  .case-diamond:hover,
  .case-gold:hover,
  .case-std:hover,
  .product-card:hover,
  .filter-tab:hover {
    transform: none !important;
  }
}

/* V4.4 selection color */
::selection {
  background: var(--gold, #E8A020);
  color: var(--navy, #0D2A3A);
}

/* V4.5 custom scrollbar (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(13,42,58,0.04); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold, #E8A020) 0%, var(--orange, #F05A28) 100%);
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.6);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFD700 0%, var(--orange-deep, #D04618) 100%);
}
body[data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }

/* V4.6 case ID select all on click */
.id-cell, .case-d-id, .case-g-id, .case-std-id {
  -webkit-user-select: all;
  user-select: all;
}

/* End V4 layer */
