/* ==========================================================================
   Components — 圖表與互動元件樣式
   ========================================================================== */

/* ------------------------------------------------------------------
   KPI 卡片
   ------------------------------------------------------------------ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  width: 100%;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--green-mid);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kpi-card--green { border-top-color: var(--green-deep); }
.kpi-card--gold { border-top-color: var(--growth-gold); }
.kpi-card--coral { border-top-color: var(--cta-coral); }
.kpi-card--green-deep { border-top-color: var(--green-deep); }
.kpi-icon { margin-bottom: var(--space-md); }
.kpi-number { font-size: 42px; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: var(--space-xs); }
.kpi-unit { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.kpi-label { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs); }
.kpi-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; gap: var(--space-md); } .kpi-number { font-size: 36px; } }

/* ------------------------------------------------------------------
   折線圖共用
   ------------------------------------------------------------------ */
.line-chart { display: flex; gap: var(--space-sm); height: 340px; margin-bottom: var(--space-md); }
.line-chart__y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--text-secondary); padding: 10px 0; min-width: 60px; text-align: right; }
.line-chart__area { flex: 1; position: relative; border-left: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.line-chart__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.line-chart__grid-line { border-top: 1px solid var(--gray-100); }
.line-chart__svg { position: absolute; inset: 10px 10px 30px 10px; }
.line-chart__line { stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.is-visible .line-chart__line { animation: drawLine 2s ease-out 0.5s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.line-chart__area-fill { opacity: 0; }
.is-visible .line-chart__area-fill { animation: fadeIn 0.5s ease-out 2s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.line-chart__labels { position: absolute; inset: 0 10px 30px 10px; }
.line-chart__point-label { position: absolute; font-size: 11px; color: var(--text-secondary); transform: translateX(-50%); white-space: nowrap; opacity: 0; }
.is-visible .line-chart__point-label { animation: fadeInUp 0.4s ease-out 2.2s forwards; }
.line-chart__point-label--active { color: var(--green-deep); font-weight: 700; font-size: 13px; }
.line-chart__point-label--forecast { color: var(--green-mid); font-style: italic; }
.line-chart__badge { display: inline-block; background: var(--green-deep); color: var(--white); font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; font-style: normal; font-weight: 600; }
.line-chart__x-axis { position: absolute; bottom: 0; left: 10px; right: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); padding-top: var(--space-sm); }
.line-chart__x-active { color: var(--green-deep); font-weight: 700; }
.insight-row { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-md); }
.insight-chip { display: inline-flex; align-items: center; gap: var(--space-xs); background: var(--green-bg); color: var(--green-deep); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.insight-chip__icon { font-size: 14px; }

@media (max-width: 600px) {
  .line-chart { height: 260px; }
  .line-chart__y-axis { font-size: 10px; min-width: 45px; }
  .line-chart__point-label { font-size: 9px; }
  .insight-row { gap: var(--space-sm); }
  .insight-chip { font-size: 11px; padding: 4px 10px; }
}

/* ------------------------------------------------------------------
   產品時間軸
   ------------------------------------------------------------------ */
.timeline { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: var(--space-md); }
.timeline__phase { flex: 1; min-width: 260px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: var(--space-lg); }
.timeline__phase--active { border-color: var(--green-deep); box-shadow: var(--shadow-md); }
.timeline__phase:hover { box-shadow: var(--shadow-md); }
.timeline__connector { display: flex; align-items: center; padding: 0 var(--space-xs); flex-shrink: 0; margin-top: 60px; }
.timeline__header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.timeline__badge { font-size: 12px; font-weight: 700; color: var(--white); padding: 3px 10px; border-radius: 12px; }
.timeline__period { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.timeline__title { font-size: 18px; font-weight: 700; margin-bottom: var(--space-md); color: var(--text-primary); }
.timeline__products { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); }
.timeline__product-bar { height: 28px; border-radius: 6px; display: flex; align-items: center; padding: 0 var(--space-sm); color: var(--white); font-size: 12px; font-weight: 600; min-width: 80px; }
.timeline__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: var(--space-sm); }
.timeline__kpi { display: flex; flex-direction: column; gap: 4px; }
.timeline__kpi span { font-size: 12px; color: var(--green-deep); background: var(--green-bg); padding: 3px 8px; border-radius: 4px; display: inline-block; }

@media (max-width: 768px) {
  .timeline { flex-direction: column; align-items: stretch; }
  .timeline__connector { margin-top: 0; justify-content: center; padding: var(--space-sm) 0; }
  .timeline__connector svg { transform: rotate(90deg); }
  .timeline__phase { min-width: auto; }
}

/* ------------------------------------------------------------------
   Human Cycle 循環圖
   ------------------------------------------------------------------ */
.cycle-ring { position: relative; max-width: 500px; margin: 0 auto var(--space-xl); }
.cycle-ring__svg { width: 100%; height: auto; }
.cycle-labels { position: absolute; inset: 0; }
.cycle-label { position: absolute; max-width: 160px; }
.cycle-label__day { display: inline-block; color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-bottom: 2px; }
.cycle-label__task { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.cycle-label__detail { font-size: 11px; color: var(--text-secondary); line-height: 1.3; }

/* Cycle Grid (replacement for SVG ring) */
.cycle-grid-wrapper { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.cycle-center { text-align: center; background: var(--white); border: 2px solid var(--green-bg); border-radius: 50%; width: 160px; height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.cycle-center__title { font-size: 20px; font-weight: 800; color: var(--green-deep); }
.cycle-center__sub { font-size: 14px; color: var(--text-secondary); }
.cycle-center__detail { font-size: 12px; color: var(--text-secondary); }
.cycle-day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); width: 100%; }
.cycle-day-card { background: var(--white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); }
.cycle-day-card__day { display: inline-block; color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 8px; margin-bottom: 6px; }
.cycle-day-card__task { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cycle-day-card__detail { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.weekly-output { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); width: 100%; margin: 0 auto; }
.weekly-output__item { text-align: center; background: var(--green-bg); border-radius: var(--radius-md); padding: var(--space-lg) var(--space-md); }
.weekly-output__num { font-size: 36px; font-weight: 800; color: var(--green-deep); line-height: 1; margin-bottom: var(--space-xs); }
.weekly-output__text { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.weekly-output__text small { font-size: 11px; color: var(--text-secondary); font-weight: 400; }

@media (max-width: 600px) {
  .cycle-ring { max-width: 320px; }
  .cycle-label { max-width: 120px; }
  .cycle-label__task { font-size: 12px; }
  .cycle-label__detail { font-size: 10px; }
  .cycle-day-grid { grid-template-columns: repeat(2, 1fr); }
  .weekly-output { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------
   橫條圖（市場趨勢）
   ------------------------------------------------------------------ */
.bar-chart { display: flex; flex-direction: column; gap: var(--space-sm); }
.bar-row { display: flex; align-items: center; gap: var(--space-md); }
.bar-year { min-width: 48px; font-size: 14px; font-weight: 600; color: var(--text-secondary); text-align: right; }
.bar-track { flex: 1; height: 32px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green-deep); border-radius: 6px; transition: width 1s ease-out; }
.bar-fill--active { background: var(--green-deep); }
.bar-fill--forecast { background: var(--green-light); }
.bar-val { min-width: 100px; font-size: 14px; color: var(--text-primary); }
.bar-row--active .bar-year { color: var(--green-deep); font-weight: 800; }
.bar-row--active .bar-val { font-weight: 700; color: var(--green-deep); }
.bar-row--forecast .bar-year { color: var(--text-secondary); font-style: italic; }
.bar-badge { display: inline-block; background: var(--green-deep); color: var(--white); font-size: 11px; padding: 1px 8px; border-radius: 4px; margin-left: 4px; font-weight: 700; }
@media (max-width: 480px) { .bar-val { min-width: 70px; font-size: 12px; } .bar-year { min-width: 36px; font-size: 12px; } }

/* ------------------------------------------------------------------
   三情境營收圖
   ------------------------------------------------------------------ */
.revenue-chart { display: flex; gap: var(--space-sm); height: 380px; margin-bottom: var(--space-lg); }
.revenue-chart__y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--text-secondary); padding: 5px 0 30px; min-width: 72px; text-align: right; }
.revenue-chart__area { flex: 1; position: relative; border-left: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.revenue-chart__grid { position: absolute; inset: 0 0 30px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.revenue-chart__grid-line { border-top: 1px solid var(--gray-100); }
.revenue-chart__svg { position: absolute; top: 5px; left: 5px; right: 0; bottom: 30px; width: calc(100% - 5px); height: calc(100% - 35px); }
.revenue-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.is-visible .revenue-line { animation: drawLine 2.5s ease-out 0.3s forwards; }
.revenue-line--animate { opacity: 0; }
.is-visible .revenue-line--animate { animation: fadeIn 0.8s ease-out 2.5s forwards; }
.revenue-chart__baseline { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--alert-red); opacity: 0.4; }
.revenue-chart__baseline-label { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--alert-red); font-weight: 600; }
.revenue-chart__annotation { position: absolute; }
.revenue-chart__annotation-box { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; }
.is-visible .revenue-chart__annotation-box { animation: fadeInUp 0.4s ease-out 2.8s forwards; }
.revenue-chart__annotation-box--green { background: var(--green-bg); color: var(--green-deep); border: 1px solid var(--green-light); }
.revenue-chart__annotation-box--gold { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.revenue-chart__x-axis { position: absolute; bottom: 0; left: 5px; right: 15px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); padding-top: var(--space-sm); }
.revenue-legend { display: flex; gap: var(--space-lg); justify-content: center; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.revenue-legend__item { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; color: var(--text-secondary); }
.revenue-legend__line { width: 24px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.revenue-legend__line--thick { height: 4px; }
.revenue-legend__line--dashed { height: 0; border-top: 2.5px dashed var(--gray-500); width: 24px; }
.revenue-legend__line--baseline { height: 0; border-top: 2px dashed var(--alert-red); width: 24px; opacity: 0.5; }
.revenue-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-bottom: var(--space-md); }
.revenue-total-card { background: var(--warm-gray); border-radius: var(--radius-md); padding: var(--space-lg); text-align: center; border: 1px solid var(--gray-200); }
.revenue-total-card--primary { background: var(--green-bg); border: 2px solid var(--green-deep); box-shadow: var(--shadow-md); }
.revenue-total-card__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-xs); }
.revenue-total-card--primary .revenue-total-card__label { color: var(--green-deep); }
.revenue-total-card__amount { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-xs); }
.revenue-total-card--primary .revenue-total-card__amount { color: var(--green-deep); }
.revenue-total-card__cond { font-size: 12px; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.revenue-total-card__bep { font-size: 12px; font-weight: 600; color: var(--green-deep); background: var(--white); display: inline-block; padding: 2px 8px; border-radius: 8px; }

@media (max-width: 768px) {
  .revenue-chart { height: 300px; }
  .revenue-chart__y-axis { font-size: 10px; min-width: 55px; }
  .revenue-totals { grid-template-columns: 1fr; }
  .revenue-legend { gap: var(--space-md); }
}

/* ------------------------------------------------------------------
   銷售漏斗
   ------------------------------------------------------------------ */
.funnel { width: 100%; display: flex; flex-direction: column; gap: var(--space-sm); }
.funnel__stage { display: flex; align-items: center; gap: var(--space-lg); }
.funnel__bar { width: 300px; flex-shrink: 0; display: flex; justify-content: center; }
.funnel__bar-fill { height: 38px; border-radius: 6px; min-width: 40px; }
.funnel__content { flex: 1; }
.funnel__label { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.funnel__desc { font-size: 13px; color: var(--text-secondary); }
.funnel__metric { font-size: 12px; font-weight: 600; color: var(--green-deep); margin-top: 2px; }

@media (max-width: 600px) {
  .funnel__stage { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .funnel__bar { width: 100%; }
  .funnel__bar-fill { height: 28px; }
}

/* ------------------------------------------------------------------
   法規合規防線
   ------------------------------------------------------------------ */
.compliance { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; margin: 0 auto var(--space-lg); }
.compliance__layer { width: 100%; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: var(--space-lg); display: flex; align-items: flex-start; gap: var(--space-md); position: relative; }
.compliance__arrow { padding: var(--space-xs) 0; }
.compliance__number { font-size: 12px; font-weight: 800; color: var(--green-deep); background: var(--green-bg); padding: 2px 8px; border-radius: 6px; position: absolute; top: var(--space-md); right: var(--space-md); }
.compliance__title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.compliance__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.compliance__badge { display: inline-block; font-size: 10px; font-weight: 700; color: var(--white); background: var(--green-deep); padding: 2px 6px; border-radius: 4px; margin-top: var(--space-xs); }
.compliance__badge--manual { background: var(--cta-coral); }
.compliance__result { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); font-size: 16px; font-weight: 700; color: var(--green-deep); }
.compliance__warning { display: flex; align-items: flex-start; gap: var(--space-md); background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); width: 100%; }
.compliance__warning-icon { flex-shrink: 0; margin-top: 2px; }
.compliance__warning-text { font-size: 13px; color: #92400e; line-height: 1.5; }

@media (max-width: 480px) {
  .compliance__layer { padding: var(--space-md); }
  .compliance__icon { display: none; }
}

/* ------------------------------------------------------------------
   行動步驟
   ------------------------------------------------------------------ */
.steps-flow { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: var(--space-md); }
.step-card { flex: 1; min-width: 160px; text-align: center; padding: var(--space-lg) var(--space-md); background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); position: relative; transition: box-shadow 0.2s ease; }
.step-card:hover { box-shadow: var(--shadow-md); }
.step-card__connector { display: flex; align-items: center; padding: 0 var(--space-xs); flex-shrink: 0; margin-top: 50px; }
.step-card__number { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--green-deep); color: var(--white); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-card__icon { margin-bottom: var(--space-sm); }
.step-card__title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-xs); }
.step-card__desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin-bottom: var(--space-sm); }
.step-card__time { font-size: 11px; font-weight: 600; color: var(--green-deep); background: var(--green-bg); display: inline-block; padding: 2px 8px; border-radius: 8px; }

@media (max-width: 768px) {
  .steps-flow { flex-direction: column; align-items: stretch; }
  .step-card { min-width: auto; }
  .step-card__connector { justify-content: center; margin-top: 0; padding: var(--space-xs) 0; }
  .step-card__connector svg { transform: rotate(90deg); }
}

/* ------------------------------------------------------------------
   產品卡片
   ------------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: var(--space-lg); border-top: 4px solid var(--product-color, var(--gray-300)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card--primary { border-width: 4px; box-shadow: var(--shadow-md); }
.product-card__priority { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.product-card__priority-badge { font-size: 11px; font-weight: 700; color: var(--white); padding: 2px 8px; border-radius: 8px; }
.product-card__phase { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.product-card__name { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-xs); }
.product-card__price { font-size: 22px; font-weight: 700; color: var(--product-color); }
.product-card__price span { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.product-card__highlight { font-size: 12px; font-weight: 600; color: var(--green-deep); background: var(--green-bg); display: inline-block; padding: 2px 8px; border-radius: 6px; margin: var(--space-sm) 0 var(--space-md); }
.product-card__stats { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-md); }
.product-card__stat { display: grid; grid-template-columns: 70px 1fr 40px; gap: var(--space-sm); align-items: center; }
.product-card__stat-label { font-size: 11px; color: var(--text-secondary); }
.product-card__stat-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.product-card__stat-bar div { height: 100%; border-radius: 3px; }
.product-card__stat-value { font-size: 11px; font-weight: 600; color: var(--text-primary); text-align: right; }
.product-card__target { font-size: 12px; color: var(--text-secondary); margin-bottom: var(--space-xs); }
.product-card__ingredient { font-size: 11px; color: var(--green-deep); line-height: 1.4; }

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   越南市場路線圖
   ------------------------------------------------------------------ */
.vietnam-timeline { display: flex; gap: 0; margin-bottom: var(--space-xl); }
.vietnam-phase { flex: 1; }
.vietnam-phase__bar { height: 6px; margin-bottom: var(--space-md); }
.vietnam-phase--idle .vietnam-phase__bar { background: var(--gray-300); }
.vietnam-phase--observe .vietnam-phase__bar { background: linear-gradient(90deg, var(--gray-300), var(--growth-gold)); }
.vietnam-phase--active .vietnam-phase__bar { background: var(--green-deep); }
.vietnam-phase__content { padding: 0 var(--space-md); }
.vietnam-phase__period { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: var(--space-xs); }
.vietnam-phase__label { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-md); }
.vietnam-phase--active .vietnam-phase__label { color: var(--green-deep); }
.vietnam-phase__items { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-md); }
.vietnam-phase__item { font-size: 13px; color: var(--text-secondary); padding-left: var(--space-md); position: relative; line-height: 1.5; }
.vietnam-phase__item::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); }
.vietnam-phase--active .vietnam-phase__item::before { background: var(--green-deep); }
.vietnam-phase__revenue { font-size: 13px; font-weight: 600; color: var(--text-secondary); padding: var(--space-sm) var(--space-md); background: var(--warm-gray); border-radius: var(--radius-sm); }
.vietnam-phase--active .vietnam-phase__revenue { background: var(--green-bg); color: var(--green-deep); }
.vietnam-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-bottom: var(--space-md); }
.vietnam-data__card { text-align: center; background: var(--warm-gray); border-radius: var(--radius-md); padding: var(--space-lg); }
.vietnam-data__num { font-size: 28px; font-weight: 800; color: var(--green-deep); margin-bottom: var(--space-xs); }
.vietnam-data__label { font-size: 12px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .vietnam-timeline { flex-direction: column; gap: var(--space-md); }
  .vietnam-phase__bar { height: 4px; }
  .vietnam-data { grid-template-columns: 1fr; }
  .vietnam-data__num { font-size: 24px; }
}

/* ------------------------------------------------------------------
   定價卡片
   ------------------------------------------------------------------ */
.pricing-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); align-items: start; }
.pricing-main { background: var(--white); border: 2px solid var(--green-deep); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.pricing-main__header { background: var(--green-deep); color: var(--white); padding: var(--space-xl) var(--space-lg); text-align: center; }
.pricing-main__name { font-size: 18px; font-weight: 600; margin-bottom: var(--space-md); opacity: 0.9; }
.pricing-main__amount { font-size: 42px; font-weight: 800; }
.pricing-main__period { font-size: 16px; opacity: 0.8; }
.pricing-main__alt { font-size: 13px; margin-top: var(--space-sm); opacity: 0.8; }
.pricing-main__contract { font-size: 12px; margin-top: var(--space-sm); background: rgba(255,255,255,0.15); display: inline-block; padding: 3px 12px; border-radius: 12px; }
.pricing-main__features { padding: var(--space-lg); }
.pricing-feature-group { margin-bottom: var(--space-lg); }
.pricing-feature-group__title { font-size: 13px; font-weight: 700; color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--space-sm); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--gray-100); }
.pricing-feature { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; color: var(--text-primary); padding: var(--space-xs) 0; }
.pricing-feature svg { flex-shrink: 0; }
.pricing-main__tech { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: var(--warm-gray); font-size: 12px; color: var(--text-secondary); }
.pricing-main__tech span { background: var(--white); padding: 3px 10px; border-radius: 8px; }

/* 預算圓餅圖 */
.pricing-sidebar__title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-xs); }
.pricing-sidebar__subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space-lg); }
.budget-donut { max-width: 200px; margin: 0 auto var(--space-lg); }
.budget-donut__svg { width: 100%; }
.budget-legend { display: flex; flex-direction: column; gap: var(--space-sm); }
.budget-legend__item { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; }
.budget-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.budget-legend__text { flex: 1; color: var(--text-primary); }
.budget-legend__value { font-weight: 600; color: var(--text-secondary); font-size: 12px; }

@media (max-width: 768px) {
  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-main__amount { font-size: 36px; }
}

/* ------------------------------------------------------------------
   FAQ 手風琴
   ------------------------------------------------------------------ */
.faq-list { width: 100%; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; transition: box-shadow 0.2s; }
.faq-item.is-open { box-shadow: var(--shadow-sm); border-color: var(--green-light); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-md) var(--space-lg); background: none; border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-primary); text-align: left; gap: var(--space-md); }
.faq-question:hover { color: var(--green-deep); }
.faq-question__icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.is-open .faq-question__icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.is-open .faq-answer { max-height: 500px; }
.faq-answer__inner { padding: 0 var(--space-lg) var(--space-lg); font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ------------------------------------------------------------------
   比較表
   ------------------------------------------------------------------ */
.compare-table { width: 100%; border-collapse: collapse; margin: 0 auto var(--space-xl); }
.compare-table th { font-size: 13px; font-weight: 700; color: var(--text-secondary); padding: var(--space-sm) var(--space-md); border-bottom: 2px solid var(--gray-200); text-align: left; }
.compare-table th:nth-child(2) { color: var(--green-deep); }
.compare-table td { font-size: 14px; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--gray-100); color: var(--text-primary); }
.compare-table td:nth-child(2) { font-weight: 600; color: var(--green-deep); }
.compare-table tr:hover td { background: var(--green-bg); }

@media (max-width: 600px) {
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: var(--space-xs) var(--space-sm); }
}

/* ------------------------------------------------------------------
   滾動進場動畫
   ------------------------------------------------------------------ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* 延遲 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
