/* 自動生成的合併 CSS 檔案 - 2026-01-29 06:47:47 */

/* Source: css/design-system/variables.css */
/**
 * 翰華留學移民 - 新唐風設計系統
 * Design System Variables
 * 現代中式美學 + 專業教育品牌
 */

:root {
  /* ==========================================
     配色系統 - 優雅專業配色
     ========================================== */

  /* 主色 - 墨黑系列 (Ink Black) */
  --color-ink-900: #1a1a1a;        /* 濃墨 - 主要文字 */
  --color-ink-800: #2d2d2d;        /* 深墨 - 次要文字 */
  --color-ink-700: #404040;        /* 中墨 */
  --color-ink-600: #5a5a5a;        /* 淡墨 */
  --color-ink-500: #737373;        /* 灰墨 - 輔助文字 */

  /* 品牌色 - 深綠系列 (Deep Forest Green) */
  --color-forest-900: #1a2928;     /* 深森綠 */
  --color-forest-800: #253736;     /* 濃森綠 */
  --color-forest-700: #304948;     /* 標準森綠 - 主品牌色 */
  --color-forest-600: #3d5d5b;     /* 中森綠 */
  --color-forest-500: #4a716f;     /* 淡森綠 */
  --color-forest-100: #e8f0ef;     /* 淺綠底色 */

  /* 輔助色 - 深金系列 (Deep Gold) */
  --color-gold-900: #6b5010;       /* 深金 */
  --color-gold-800: #8b6914;       /* 濃金 - 輔助色主色 */
  --color-gold-700: #a07e1a;       /* 標準金 */
  --color-gold-600: #b69321;       /* 中金 */
  --color-gold-500: #cca828;       /* 淡金 */
  --color-gold-100: #faf6e8;       /* 淡金底色 */

  /* 功能色 - 朱紅系列 (Vermilion - CTA 用) */
  --color-vermilion-900: #8b0000;  /* 深硃紅 */
  --color-vermilion-800: #a01010;  /* 濃硃紅 */
  --color-vermilion-700: #c8102e;  /* 標準硃紅 - 功能色 */
  --color-vermilion-600: #d13449;  /* 中硃紅 */
  --color-vermilion-500: #dc5768;  /* 淡硃紅 */
  --color-vermilion-100: #fde8eb;  /* 粉紅底色 */

  /* 中性色 - 白色/淺灰綠系列 (Neutral Tones) */
  --color-white: #ffffff;          /* 純白 */
  --color-paper: #f8f9f7;          /* 淺灰綠 - 主背景 */
  --color-ivory: #ffffff;          /* 象牙白 - 卡片背景 */
  --color-stone-100: #f8f9fa;      /* 淺石灰 */
  --color-stone-200: #e8e9e7;      /* 石灰 */
  --color-stone-300: #d1d2d0;      /* 深石灰 */

  /* 狀態色 */
  --color-success: #52c41a;        /* 成功 - 翠綠 */
  --color-warning: #faad14;        /* 警告 - 橙黃 */
  --color-error: #c8102e;          /* 錯誤 - 朱紅 */
  --color-info: #304948;           /* 信息 - 深綠 */

  /* ==========================================
     語義化顏色命名
     ========================================== */
  --color-primary: var(--color-forest-700);      /* 品牌主色: #304948 深綠 */
  --color-primary-hover: var(--color-forest-800);
  --color-primary-light: var(--color-forest-100);

  --color-accent: var(--color-gold-800);         /* 輔助色: #8b6914 深金 */
  --color-accent-hover: var(--color-gold-900);
  --color-accent-light: var(--color-gold-100);

  --color-text-primary: var(--color-ink-900);
  --color-text-secondary: var(--color-ink-700);
  --color-text-muted: var(--color-ink-500);
  --color-text-inverse: var(--color-ivory);

  --color-bg-primary: var(--color-white);
  --color-bg-secondary: var(--color-stone-100);
  --color-bg-elevated: var(--color-ivory);

  --color-border-light: var(--color-stone-200);
  --color-border-medium: var(--color-stone-300);
  --color-border-dark: var(--color-ink-600);

  /* ==========================================
     字體系統 - 分層字體設計
     ========================================== */

  /* 字體家族 */
  --font-display: "Gloock", "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Source Han Serif SC", "思源宋體", "STSong", serif;  /* 標題專用 - Gloock */
  --font-primary: "Crimson Pro", "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Source Han Serif SC", "思源宋體", "STSong", serif;  /* 內文 - Crimson Pro (易讀) */
  --font-serif-cn: "Crimson Pro", "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Source Han Serif SC", "思源宋體", "STSong", serif;
  --font-sans-cn: "Crimson Pro", "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "Source Han Serif SC", "思源宋體", "STSong", serif;

  /* 字體大小 - 模塊化比例 (1.250 Major Third) */
  --text-xs: 0.64rem;      /* 10.24px */
  --text-sm: 0.8rem;       /* 12.8px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.125rem;     /* 18px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.563rem;     /* 25px */
  --text-2xl: 1.953rem;    /* 31.25px */
  --text-3xl: 2.441rem;    /* 39px */
  --text-4xl: 3.052rem;    /* 48.8px */
  --text-5xl: 3.815rem;    /* 61px */
  --text-6xl: 4.768rem;    /* 76.3px */

  /* 行高 */
  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --leading-loose: 2;

  /* 字重 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ==========================================
     間距系統 - 8px 基準
     ========================================== */
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  --space-24: 6rem;        /* 96px */
  --space-32: 8rem;        /* 128px */

  /* ==========================================
     圓角系統 - 柔和曲線
     ========================================== */
  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ==========================================
     陰影系統 - 層次感
     ========================================== */
  --shadow-xs: 0 1px 2px 0 rgba(26, 26, 26, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(26, 26, 26, 0.08);
  --shadow-base: 0 4px 6px -1px rgba(26, 26, 26, 0.1), 0 2px 4px -1px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 6px 12px -2px rgba(26, 26, 26, 0.12), 0 4px 6px -2px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 10px 20px -4px rgba(26, 26, 26, 0.15), 0 6px 10px -4px rgba(26, 26, 26, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(26, 26, 26, 0.18), 0 10px 10px -5px rgba(26, 26, 26, 0.12);
  --shadow-2xl: 0 25px 50px -12px rgba(26, 26, 26, 0.25);

  /* 中式邊框陰影 */
  --shadow-ink: 0 2px 8px 0 rgba(26, 26, 26, 0.15);
  --shadow-vermilion: 0 4px 12px 0 rgba(200, 16, 46, 0.2);
  --shadow-gold: 0 4px 12px 0 rgba(212, 175, 55, 0.25);

  /* ==========================================
     動畫系統
     ========================================== */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==========================================
     版面配置
     ========================================== */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1440px;
  --container-2xl: 1600px;

  --gutter: var(--space-6);
  --section-spacing: var(--space-10);

  /* ==========================================
     斷點系統
     ========================================== */
  --bp-xs: 360px;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1440px;

  /* ==========================================
     Z-index 層級
     ========================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ==========================================
     裝飾元素
     ========================================== */
  --border-traditional: 2px solid var(--color-primary);
  --border-accent: 1px solid var(--color-accent);
  --border-subtle: 1px solid var(--color-stone-200);

  /* 漸變色 */
  --gradient-primary: linear-gradient(135deg, var(--color-forest-700) 0%, var(--color-forest-900) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-gold-800) 0%, var(--color-gold-900) 100%);
  --gradient-vermilion: linear-gradient(135deg, var(--color-vermilion-700) 0%, var(--color-vermilion-900) 100%);
  --gradient-ink: linear-gradient(135deg, var(--color-ink-700) 0%, var(--color-ink-900) 100%);
  --gradient-paper: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-paper) 100%);
}


/* Source: css/design-system/global.css */
/**
 * 翰華留學移民 - 全局樣式
 * Global Styles - 新唐風設計
 */

/* ==========================================
   基礎重置與全局設定
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ==========================================
   排版系統
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: 0.05em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: 0.07em;
}

h3 {
  font-size: var(--text-2xl);
  letter-spacing: 0.1em;
}

h4 {
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
}

h5 {
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  letter-spacing: 0.01em;
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* 書法標題 - 用於特殊強調 */
.display-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* 副標題 */
.subtitle {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  font-weight: var(--font-normal);
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-6);
}

/* ==========================================
   連結樣式
   ========================================== */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================
   按鈕系統
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 主要按鈕 - 朱紅色 (功能色/CTA) */
.btn-primary {
  background: var(--gradient-vermilion);
  color: var(--color-text-inverse);
  border-color: var(--color-vermilion-700);
  box-shadow: var(--shadow-vermilion);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-vermilion-800) 0%, var(--color-vermilion-900) 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* 次要按鈕 - 深金色 (輔助色) */
.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-gold-900) 0%, var(--color-gold-900) 100%);
}

/* 輪廓按鈕 */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* 輪廓按鈕 - 品牌色風格 (More 按鈕風格的長方形版本) */
.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary svg {
  transition: transform var(--duration-base) var(--ease-out);
}

.btn-outline-primary:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* 幽靈按鈕 */
.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-stone-100);
}

/* 按鈕尺寸 */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ==========================================
   容器系統
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-left: auto;
  margin-right: auto;
}

.container-sm {
  max-width: var(--container-sm);
}

.container-md {
  max-width: var(--container-md);
}

.container-xl {
  max-width: var(--container-xl);
}

/* ==========================================
   分段樣式
   ========================================== */

section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: var(--text-4xl);
  font-family: var(--font-serif-cn);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

/* 中式標題裝飾 - 使用品牌色 */
/* .section-title::after {
  content: '';
  display: block;
  width: 80%;
  height: 3px;
  background: var(--gradient-primary);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
} */

/* ==========================================
   卡片系統
   ========================================== */

.card {
  background: var(--color-bg-elevated);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease-out);
}

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

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-subtle);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.card-body {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* 中式邊框卡片 */
.card-traditional {
  border: var(--border-traditional);
  position: relative;
}

.card-traditional::before,
.card-traditional::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: var(--border-traditional);
}

.card-traditional::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.card-traditional::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* ==========================================
   徽章與標籤
   ========================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--color-border-medium);
  color: var(--color-text-secondary);
}

/* ==========================================
   工具類
   ========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }
.font-medium { font-weight: var(--font-medium); }
.font-normal { font-weight: var(--font-normal); }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto; }

/* ==========================================
   響應式工具
   ========================================== */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .section-title {
    font-size: var(--text-3xl);
  }

  section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .btn {
    width: 100%;
  }
}


/* Source: css/design-system/components.css */
/**
 * 翰華留學移民 - 元件樣式庫
 * Component Styles - 新唐風設計
 */

/* ==========================================
   模態框 (Modal)
   ========================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn var(--duration-base) var(--ease-out);
}

.modal.is-active {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-bg-elevated);
  border: var(--border-traditional);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideUp var(--duration-slow) var(--ease-spring);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-stone-100);
  border: var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: rotate(90deg);
  border-color: var(--color-primary);
}

.modal-body {
  padding: var(--space-8);
}

.modal-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-accent);
}

/* Modal 內容區域的表情符號樣式 */
#modal-content img.emoji {
  display: inline !important;
  width: 1.2em !important;
  height: 1.2em !important;
  vertical-align: text-bottom;
  margin: 0 0.1em;
}

#modal-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

/* ==========================================
   學生好評卡片 (Testimonial Card)
   ========================================== */

/* Testimonials Section */
.testimonials-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    background-color: #fff;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 40px;
}


.testimonial-card{
  position: relative;
  overflow: visible;
  /* 讓預留高度與頭像大小一起縮放 */
  --avatar-size: clamp(48px, 6vw, 64px);
  --header-float: clamp(18px, 3.5vw, 28px); /* 浮出卡片的高度 */
  padding: 3rem 1.5rem 1.5rem;
  background: white;
  border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}


/* 2) 浮出置中：header 絕對定位在卡片頂部中央 */
.card-header{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(0px - var(--header-float)); /* 往上漂出卡片邊框 */
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin: 0; /* 避免不同瀏覽器額外空隙 */
  z-index: 2;
  background: white;
  padding: 0 2rem;
}


/* 如果沒有圖片，顯示預設樣式 */
.avatar:empty::before {
    content: '👤';
    font-size: 24px;
    color: #999;
}

.user-info {
    flex: 1;
}

.name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Card Content */
.card-content .date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.achievement {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background:  var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
}

.more-btn:hover {
    background: var(--color-gold-700);
    color: #fff;
}

.more-btn svg {
    transition: transform 0.3s ease;
}

.more-btn:hover svg {
    transform: translateX(2px);
}



.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-700);
}

.testimonial-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--color-gold-700);
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.testimonial-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  user-select: none;
}


.testimonial-card .sharer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}



.testimonial-card .testimonial-text {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* ==========================================
   英雄區 (Hero Section)
   ========================================== */

.hero-section {
  position: relative;
  padding: var(--space-32) 0;
  background: var(--gradient-paper);
  overflow: hidden;
}

/* 中式背景紋理 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      var(--color-stone-200) 10px,
      var(--color-stone-200) 11px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 10px,
      var(--color-stone-200) 10px,
      var(--color-stone-200) 11px
    );
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--container-md);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  text-shadow: 2px 2px 0 var(--color-gold-700);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* ==========================================
   頁尾 (Footer)
   ========================================== */

.site-footer {
  background: var(--gradient-ink);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
  position: relative;
}

/* 中式波浪分隔線 */
.site-footer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--gradient-ink);
  clip-path: polygon(
    0 50%,
    5% 30%,
    10% 50%,
    15% 30%,
    20% 50%,
    25% 30%,
    30% 50%,
    35% 30%,
    40% 50%,
    45% 30%,
    50% 50%,
    55% 30%,
    60% 50%,
    65% 30%,
    70% 50%,
    75% 30%,
    80% 50%,
    85% 30%,
    90% 50%,
    95% 30%,
    100% 50%,
    100% 100%,
    0 100%
  );
}

.footer-brand {
  margin-bottom: var(--space-8);
}

.footer-brand h2 {
  font-family: var(--font-display);
  color: var(--color-gold-700);
  margin-bottom: var(--space-2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links h4 {
  color: var(--color-gold-700);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration-base) var(--ease-out);
}



/* ==========================================
   CTA 區塊
   ========================================== */

.cta-section {
  background: var(--gradient-vermilion);
  color: var(--color-text-inverse);
  padding: var(--space-16) var(--space-6);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-vermilion);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-inverse);
}

.cta-section p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   響應式調整
   ========================================== */

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-body {
    padding: var(--space-6);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .navbar-menu {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }
}


/* Source: css/01-settings.css */
/**
 * 翰華留學移民 - 舊系統變數映射
 * 此文件保留輪播專用變數,並將舊變數映射到新唐風設計系統
 * 確保向後兼容性
 */

:root {
  /* ==========================================
     輪播專用響應式變數 (保留)
     ========================================== */
  --carousel-slide-width-2xl: 320px;
  --carousel-slide-width-xl: 300px;
  --carousel-slide-width-lg: 280px;
  --carousel-slide-width-md: 260px;
  --carousel-slide-width-sm: 240px;
  --carousel-slide-width-xs: 220px;

  --carousel-slide-height-2xl: 180px;
  --carousel-slide-height-xl: 170px;
  --carousel-slide-height-lg: 160px;
  --carousel-slide-height-md: 150px;
  --carousel-slide-height-sm: 140px;
  --carousel-slide-height-xs: 130px;

  --carousel-gap-base: 24px;
  --carousel-nav-size: 50px;

  /* ==========================================
     輪播顏色 - 使用新唐風配色
     ========================================== */
  --carousel-primary: var(--color-primary);
  --carousel-secondary: var(--color-ink-700);
  --carousel-white: var(--color-ivory);
  --carousel-shadow: var(--shadow-sm);
  --carousel-transition: var(--ease-out);

  /* ==========================================
     舊變數映射到新設計系統 (向後兼容)
     ========================================== */
  --color-bg: var(--color-bg-primary);
  --color-surface: var(--color-bg-secondary);
  --color-text: var(--color-text-primary);
  --color-muted: var(--color-text-muted);

  --chip-bg: var(--color-primary);
  --chip-fg: var(--color-text-inverse);
  --chip-bg-hover: var(--color-primary-hover);
  --panel: var(--color-bg-secondary);

  --container: var(--container-lg);

  /* 字體變數 (已在 variables.css 定義,這裡僅作註記) */
  --font-sans: var(--font-sans-cn);
}


/* Source: css/02-mixins.css */
/* 響應式 Mixins */
@media (min-width: 1400px) { .container-2xl { --slide-width: var(--carousel-slide-width-2xl); --slide-height: var(--carousel-slide-height-2xl); } }
@media (max-width: 1399px) { .container-xl { --slide-width: var(--carousel-slide-width-xl); --slide-height: var(--carousel-slide-height-xl); } }
@media (max-width: 1279px) { .container-lg { --slide-width: var(--carousel-slide-width-lg); --slide-height: var(--carousel-slide-height-lg); } }
@media (max-width: 1023px) { .container-md { --slide-width: var(--carousel-slide-width-md); --slide-height: var(--carousel-slide-height-md); } }
@media (max-width: 767px) { .container-sm { --slide-width: var(--carousel-slide-width-sm); --slide-height: var(--carousel-slide-height-sm); } }
@media (max-width: 639px) { .container-xs { --slide-width: var(--carousel-slide-width-xs); --slide-height: var(--carousel-slide-height-xs); } }

/* 通用響應式工具 */
.touch-target { min-width: 44px; min-height: 44px; }
.safe-area-inset { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }


/* Source: css/03-generic.css */
/**
 * 翰華留學移民 - Generic 樣式
 * 此文件已整合到 design-system/global.css
 * 保留此檔案以維持 ITCSS 架構完整性
 */

/* 所有 reset 和基礎樣式已移至 design-system/global.css */
/* 如需新增通用樣式,請在此處添加 */

/* 保留原有的 selection 樣式,使用新唐風配色 */
::selection {
  background: var(--color-primary-light);
  color: var(--color-text-primary);
}

/* 保留 visually-hidden 工具類 */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Source: css/04-elements.css */
/**
 * 翰華留學移民 - Elements 樣式
 * 此文件已整合到 design-system/global.css
 * 保留此檔案以維持 ITCSS 架構完整性
 */

/* 所有元素樣式(h1-h6, p, ul, ol, section, container等)已移至 design-system/global.css */
/* 如需新增元素樣式,請在此處添加 */

/* 保留 hr 樣式,使用新唐風配色 */
hr {
  border: none;
  border-top: var(--border-subtle);
  margin: var(--space-8) 0;
}


/* Source: css/05-objects.css */
/* .grid{ display:grid; gap: var(--space-6); } */
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 768px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width: 640px){ .grid-2, .grid-3{ grid-template-columns:1fr; } }

.stack>*+*{ margin-top: var(--space-4); }
.cluster{ display:flex; flex-wrap:wrap; gap: var(--space-3); align-items:center; }
.split{ display:flex; justify-content:space-between; align-items:center; gap: var(--space-4); }
@media (max-width:768px){ .split{ flex-direction:column; align-items:flex-start; } }

.card{ background:var(--color-surface); border-radius:var(--radius-lg); padding:var(--space-6); box-shadow: var(--shadow-sm); }
.btn{ display:inline-flex; gap:.5rem; align-items:center; justify-content:center;
      padding:.625rem 1rem; border-radius:var(--radius-md); background:var(--color-primary);
      color:#fff; border:none; cursor:pointer; transition: background .2s ease; }
.btn:hover{ background: var(--color-primary-600); text-decoration:none; }
/* .btn--outline{ background:transparent; border:1px solid var(--color-primary); color:var(--color-primary); } */

.section-header{ margin-bottom: var(--space-6); }
.section-header .subtitle{ text-transform:uppercase; letter-spacing:.08em; font-size: var(--text-md); color: var(--color-muted); }
.section-header h2{ margin-top: var(--space-3); }
.section-header p{ margin-top: var(--space-4); }


/* Source: css/06-components.css */
/* ===========================
   頁面過渡動畫（安全版，兼容 LINE 等 in-app 瀏覽器）
   =========================== */
body.page-transition-ready {
    opacity: 0;
    transition: opacity 0.4s ease;
}
body.page-transition-ready.page-loaded {
    opacity: 1;
}
/* 兜底：如果 JS 失敗，3 秒後 CSS 動畫強制顯示 */
@keyframes force-show {
    to { opacity: 1; }
}
body.page-transition-ready {
    animation: force-show 0s 2s forwards;
}

/* ===========================
   HERO - 背景圖版本
   =========================== */

/* 移除 main 標籤的上方 padding，讓 hero 緊貼 header */
main {
    padding-top: 0 !important;
}


.hh-hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    background-color: #DEDEDE;
    background-image:
        url(https://hanhuaedu.com.au/wp-content/themes/hanhua-child/images/bg01.png),
        linear-gradient(90deg, #DEDEDE 0%, #D7DFE4 100%);
    background-repeat: no-repeat;
    background-position: 150% 0, 0, 0;
    background-size: 80%, 100%;
}

.hh-hero-inner {
    position: absolute;
    top: calc(50% - 80px);
    transform: translateY(-50%);
    z-index: 5;
    padding-left: 6vw;
}

.hh-hero h1 {
    font-family: "Gilda Display","Noto Serif TC", serif;
    font-size: clamp(48px, 7vw, 110px);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 0.5rem;

    /* → 漸層文字（模擬 Diamond） */
    background: radial-gradient(
        circle at center,
        #39B68B 0%,
        #19503D 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* 字更銳利 */
    letter-spacing: 1px;
}

/* 預設隱藏手機版換行符 */
.hh-hero h1 .mobile-br {
    display: none;
}

.hh-hero-inner > span {
    display: block;
    font-size: clamp(12px, 1.25vw, 18px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #19503D;
    line-height: 1.8;
    margin-top: 2rem;
    margin-left: 1rem;
    max-width: 90%;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.9),
        0 0 16px rgba(255, 255, 255, 0.7),
        0 2px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 1240px) {
     .hh-hero {
        background-size: 130%, 100%;
        background-position: 10% 40%, 0px 0px;
     }
}

/* 手機版調整 */
@media (max-width: 768px) {
    .hh-hero {
        width: 100%;
        height: 70vh;
        min-height: 500px;
        background-position: center center;
        background-size: cover;
    }

    .hh-hero-inner {
        top: calc(50% - 110px);
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .hh-hero h1 {
        font-size: clamp(36px, 10vw, 60px);
    }

    .hh-hero-inner > span {
        font-size: clamp(12px, 2vw, 13px);
        letter-spacing: 0.3px;
        line-height: 1.6;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .hh-hero {
        min-height: 580px;
        background-size: 200%, 100%;
        background-position: 50% 0, 0 0;
    }

    .hh-hero-inner {
        top: calc(50% - 60px);
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .hh-hero h1 {
        font-size: clamp(32px, 16vw, 70px);
        /* → 漸層文字（模擬 Diamond） */
        background: radial-gradient(
            circle at center,
            #38ffba 0%,
            #028a7a 30%,
            #000000 100%
        );
         -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    }

    /* 手機版顯示換行符 */
    .hh-hero h1 .mobile-br {
        display: inline;
    }

    /* 手機版隱藏服務列表 */
    .hh-hero-inner > span {
        display: none;
    }
}


/* Hero */
.hero{ padding: var(--space-16) 0 var(--space-12); }
.hero__inner{ display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items:center; color:#fff; }
@media (max-width:1024px){ .hero__inner{ grid-template-columns:1fr; } }
.hero__title{ font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: var(--space-4); color:#fff; }
.hero__subtitle{ color: var(--color-muted); margin-bottom: var(--space-6); color:#fff; }
/* Hero as background image */
/* 基準：先給 vh 當相容性後備 */
.hero {
  /* 1) 高度策略：至少 360px，目標佔 60vh，最多 720px */
  min-height: clamp(360px, 60vh, 720px);

  /* 2) 直向置中內容 */
  display: flex;
  align-items: center;

  /* 3) 背景圖本來就有 */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: 65% center; /* 右偏一點較好構圖，可依圖調整 */
  background-repeat: no-repeat;

  /* 建議保留些內距 */
  padding: clamp(24px, 6vw, 64px) 0;
}

/* 支援新單位時，用 svh 更穩（不受手機瀏覽器工具列影響） */
@supports (height: 1svh) {
  .hero { min-height: clamp(360px, 60svh, 720px); }
}

/* 平板 / 手機微調 */
@media (max-width: 1024px) {
  .hero { background-position: center; } /* 縮小時置中 */
}

/* 讓文字不被背景干擾（可依喜好調淡或移除） */
.hero::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__inner{ position: relative; z-index: 1; }

@media (max-width:1024px){
  .hero{ background-position: center; } /* 手機置中 */
}

/* Carousel */
.carousel{ overflow:hidden; }
.carousel__track{ display:flex; gap: var(--space-4); scroll-snap-type:x mandatory; overflow-x:auto; padding-bottom:.5rem; }
.carousel__item{ min-width: 260px; scroll-snap-align:start; }
.carousel__item .card{ height:100%; }

/* Carousel  */

 /* 優化的無限循環輪播樣式 */
  :root {
      --carousel-primary: #5a6c57;
      --carousel-secondary: #666666;
      --carousel-white: #ffffff;
      --carousel-shadow: rgba(0, 0, 0, 0.1);
      --carousel-transition: cubic-bezier(0.4, 0, 0.2, 1);

      /* 響應式變數 */
      --slide-width: min(320px, 100vw);
      --slide-height: min(180px, 50vw);
      --slide-gap: min(12px, 1.5vw);
      --nav-size: min(50px, 12vw);
  }


    .section-header {
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 0 40px;
    }

    .carousel-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 5;
    }

    /* 只針對 hero section 內的 carousel-container */
    .hh-hero .carousel-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 5;
        transform: none;
    }

    /* 黑色背景條 - 位於輪播下方約 4/3 處 */
    .carousel-container::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 220px;
        background-color: #000;
        z-index: -1;
        transform: translateY(15%);
    }

    .carousel-viewport {
        /* width: 100%; */
        overflow: hidden;
        position: relative;
    }

    .carousel-slider {
        display: flex;
        align-items: center;
        transition: transform 0.6s var(--carousel-transition);
        will-change: transform;
        backface-visibility: hidden;
        perspective: 1000px;
        padding: 20px 0;

    }
.slide-item {
    flex: 0 0 auto;
    width: var(--slide-width);
    height: var(--slide-height);
    margin-right: var(--slide-gap);
    border-radius: clamp(4px, 2vw, 12px);
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 10px 6px rgba(255, 255, 255, 0.25); */
    cursor: pointer;
    transition: box-shadow 300ms ease;
}

/* 金色漸層圓角邊框（新唐風主角） */
.slide-item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 4px; /* 邊框粗細 */
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #AF8F1C 0%,
        #EED062 26%,
        #AE8B0E 44%,
        #EED062 71%,
        #AE8B0E 100%
    );

    /* 製造「中間挖空 → 只剩邊框」 */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    /* 柔和金色光暈 */
    box-shadow: 0 0 12px rgba(238, 208, 98, 0.55);

    pointer-events: none;
}

/* Hover：整個卡片微微浮起＋邊框更亮 */
.slide-item:hover {
    box-shadow: 0 14px 10px rgba(245, 163, 56, 0.35) !important;
}

.slide-item:hover::before {
    box-shadow: 0 0 26px rgba(238, 208, 98, 0.65);
}

    /* .slide-item {
        flex: 0 0 auto;
        width: var(--slide-width);
        height: var(--slide-height);
        margin-right: var(--slide-gap);
        border-radius: clamp(4px, 2vw, 4px);
        border: 4px solid transparent;
        border-image: linear-gradient( 90deg, #AF8F1C 0%,#EED062 26%,#AE8B0E 44%, #EED062 71%,#AE8B0E 100% ) 1;
        overflow: hidden;
        box-shadow: 0 4px 10px var(--carousel-shadow);
        transition: all 0.4s var(--carousel-transition);
        cursor: pointer;
        position: relative;
    }

    .slide-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 70%, rgba(255, 255, 255, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .slide-item:hover {
        transform: translateY(clamp(-3px, -1vw, -8px)) scale(1.02);
        box-shadow: 0 clamp(8px, 2vw, 10px) clamp(10px, 5vw, 10px) rgba(0, 0, 0, 0.15);
    }

    .slide-item:hover::before {
        opacity: 1;
    } */

    .slide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s var(--carousel-transition);
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 2s infinite;
    }

    .slide-item:hover img {
        transform: scale(1.0);
    }

    /* 導航箭頭 */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        width: var(--nav-size);
        height: var(--nav-size);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s var(--carousel-transition);
        z-index: 10;
        backdrop-filter: blur(20px);
        color: #2c3e50;
        padding: 0;
        outline: none;
    }

    .carousel-nav:hover {
        background: var(--carousel-white);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1.1);
        border-color: var(--carousel-primary);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .prev-nav {
        left: clamp(15px, 3vw, 30px);
    }

    .next-nav {
        right: clamp(15px, 3vw, 30px);
    }

    /* 導航點 */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: clamp(8px, 2vw, 12px);
        margin-top: clamp(20px, 5vw, 30px);
        padding: 0 20px;
    }

    .dot {
        width: clamp(10px, 2.5vw, 12px);
        height: clamp(3px, 1vw, 4px);
        padding: 0;
        border: none;
        background-color: #d1d5db;
        cursor: pointer;
        transition: all 0.3s var(--carousel-transition);
        border-radius: 2px;
        outline: none;
    }

    .dot.active {
        background-color: var(--carousel-primary);
        transform: scale(1.4);
        width: clamp(20px, 4vw, 24px);
    }

    .dot:hover:not(.active) {
        background-color: #9ca3af;
        transform: scale(1.2);
    }

    /* 進度條 */
    .carousel-progress {
        width: 100%;
        height: 2px;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 20px;
        border-radius: 1px;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--carousel-primary), #7ba877);
        width: 20%;
        transition: width 4s linear;
        border-radius: 1px;
    }

    /* 響應式優化 */
    @media (max-width: 1400px) {
        :root {
            --slide-width: min(380px, 82vw);
            --slide-height: min(220px, 48vw);
        }
    }

    @media (max-width: 1200px) {
        :root {
            --slide-width: min(350px, 80vw);
            --slide-height: min(200px, 45vw);
            --slide-gap: min(10px, 1.2vw);
        }
    }

    @media (max-width: 992px) {
        :root {
            --slide-width: min(320px, 75vw);
            --slide-height: min(180px, 42vw);
            --slide-gap: min(8px, 1vw);
            --nav-size: min(45px, 11vw);
        }
    }

    @media (max-width: 768px) {
        :root {
            --slide-width: min(300px, 85vw);
            --slide-height: min(170px, 50vw);
            --slide-gap: min(8px, 1vw);
            --nav-size: min(42px, 10vw);
        }

        /* 手機版黑色背景條調整 */
        .carousel-container::after {
            height: 200px;
        }

        .carousel-nav {
            opacity: 0.9;
        }

        .carousel-nav:hover {
            opacity: 1;
        }

        .gp-icon svg {
          height: 1.5em;
          width: 1.5em;
          top: .125em;
          position: relative;
        }
    }

    @media (max-width: 480px) {
        :root {
            --slide-width: min(280px, 88vw);
            --slide-height: min(160px, 52vw);
            --slide-gap: min(6px, 0.8vw);
            --nav-size: min(40px, 9vw);
        }

        /* 小螢幕黑色背景條調整 */
        .carousel-container::after {
            height: 150px;
        }
    }

    @media (max-width: 360px) {
        :root {
            --slide-width: min(260px, 90vw);
            --slide-height: min(150px, 55vw);
            --slide-gap: min(5px, 0.6vw);
        }

    }

    /* 載入狀態 */


    @keyframes loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .slide-item img[src] {
        animation: none;
        background: none;
    }

    /* 高對比度模式支持 */
    @media (prefers-contrast: high) {
        .carousel-nav {
            border-width: 2px;
            border-color: #000;
        }

        .dot {
            border: 1px solid #000;
        }

        .dot.active {
            background-color: #000;
        }
    }

    /* 減少動畫模式支持 */
    @media (prefers-reduced-motion: reduce) {

        .carousel-slider,
        .slide-item,
        .carousel-nav,
        .dot,
        .progress-bar {
            transition-duration: 0.1s;
        }

        .slide-item:hover {
            transform: none;
        }
    }

/* Feature */
.feature{ display:flex; gap: var(--space-4); align-items:flex-start; }
.feature__icon{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--color-bg); }
.feature__title{ margin:0; font-weight:700; }
.feature__desc{ margin:.25rem 0 0; color: var(--color-bg); }

/* CTA */
.cta{ background: linear-gradient(180deg, #f0f9ff, #fff); border-top:1px solid #e6f0ff; border-bottom:1px solid #e6f0ff; }
.cta__box{ display:flex; align-items:center; justify-content:space-between; gap: var(--space-6); }
@media (max-width:768px){ .cta__box{ flex-direction:column; align-items:flex-start; } }

/* Footer */
.footer{ padding: var(--space-12) 0; background:#0b1220; color:#cbd5e1; }
.footer a{ color:#e2e8f0; }
.footer__cols{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width:1024px){ .footer__cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .footer__cols{ grid-template-columns:1fr; } }
.footer__brand{ font-weight:800; font-size: var(--text-xl); margin-bottom: var(--space-4); }
.footer__bottom{ margin-top: var(--space-8); border-top:1px solid rgba(255,255,255,.1); padding-top: var(--space-4);
                 display:flex; justify-content:space-between; gap: var(--space-4); }
@media (max-width:640px){ .footer__bottom{ flex-direction:column; } }


/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 4rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Interest Tile Styling */
.interest-tile {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3; /* 保持固定比例 */
}

.interest-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.interest-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.interest-tile:hover img {
  transform: scale(1.05);
}

/* Text Overlay */
.interest-tile span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(110 , 110, 110, 0.3); /* 背景 */
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 20px;
  transition: background-color 0.3s ease;
}

.interest-tile:hover span {
  background: rgba(10, 10, 10, 0.8); /* 深背景 */
}

/* Text Styling */
.interest-tile span br {
  margin-bottom: 0.5rem;
}


/* Destination area */
.destinations{
  background: var(--panel);
  padding: var(--space-12) 0;
}

.destinations__grid{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  align-items:center;
  gap: clamp(var(--space-6), 4vw);
}

.destinations__copy h2{
  font-size: var(--text-2xl);
  line-height:1.25;
  margin: 0 0 var(--space-4);
  color:#466160;
}

.destinations__copy p{
  color:#4b5563;
  margin: 0 0 var(--space-6);
  font-size: var(--text-base);
}

.destination-section{
    /* margin-bottom: -20px !important; */
}
/* 膠囊按鈕群 */
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 50px 0 0 45px;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  color: #475569;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid #466160;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible,
.chip.active {
  background-color: #466160;
  color: #ffffff;
  border-color: #466160;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 地圖容器 */
.destinations__map {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 10/9;
  border-radius: 16px;
  padding: clamp(var(--space-4), 2vw, var(--space-8));
}

.destinations__map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.au-map {
  max-width: 100%;
  height: auto;
}

/* SVG 樣式 */
.au-stroke {
  fill: #e8f0ef;
  stroke: #a0b5ae;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.au-hit {
  fill: transparent;
  cursor: pointer;
}

.au-label {
  font: 100 3rem Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Hiragino Kaku Gothic ProN", "Microsoft JhengHei", sans-serif;
  fill: #5a726c;
  transition: all 0.3s ease;
  pointer-events: none;
}

.au-label.active {
  fill: #fff;
  font-weight: 400;
}

/* ACT 與 TAS 只加粗，保持原色 */
.au-label[data-state="ACT"].active,
.au-label[data-state="TAS"].active {
  fill: #5a726c;
  font-weight: 400;
}

/* 激活狀態的地圖區域 */
g.active .au-stroke,
g:hover .au-stroke {
  fill: var(--color-primary);
  stroke: var(--color-accent);
}

g.active .au-label,
g:hover .au-label {
  fill: #ffffff;
  font: 400 3rem Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Hiragino Kaku Gothic ProN", "Microsoft JhengHei", sans-serif;
}

/* 州互動 */
.destinations__map [id],
.au-map [id] {
  transition: fill .2s, stroke .2s;
}

.destinations__map .is-active {
  fill: #cfe3df;
  stroke: #41615f;
}

.au-map .is-active path,
.au-map .is-active circle {
  fill: #cfe3df;
  stroke: #466160;
}

/* RWD：≤ 900px 改為上下排 */
@media (max-width: 900px){
  .destinations__grid {
    grid-template-columns: 1fr;
  }

  .destinations__map {
    order: 2;
  }

  .destinations__copy {
    order: 1;
  }

  .destinations__copy h2 {
    font-size: var(--text-xl);
  }
}

/* RWD：≤ 768px */
@media (max-width: 768px) {
  .destinations__grid {
    gap: 1rem;
  }

  .chip-list {
    justify-content: center;
    margin: 48px 16px 32px 16px;
  }

  /* 手機版顯示換行 */
  .mobile-only-br {
    display: inline;
  }
}

/* 桌面版隱藏換行 */
@media (min-width: 769px) {
  .mobile-only-br {
    display: none;
  }
}

/* Blog Articles Section */
.home-blog {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}


.section-header .description {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0;
    margin-top:0.5rem;
}
.section-header h1{
text-align: center;

}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::before {
    content: "📝";
    font-size: 2rem;
    opacity: 0.5;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.blog-tags .tag {
    font-size: 0.85rem;
    color: #fff;
    background: #304948;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.blog-cta {
    text-align: center;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-more:hover {
    background: #333;
    color: white;
    transform: translateX(5px);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 0;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-head h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .home-blog {
        margin: 0 auto;
        padding: 0 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 首頁手機版只顯示前3篇文章 */
    #home-blog-grid .blog-card:nth-child(n+4) {
        display: none;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-head h2 {
        font-size: 1.8rem;
    }

    .blog-image {
        height: 180px;
    }
}

.feature-item {
    text-align: center;
}


.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #304948;
    border-radius: 20px;
    padding: 8px;
}


.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
   
}


.feature-description {
    text-align: left;
    max-width: 200px;
    margin: 0 auto;
}

.feature-description p {
    font-size: 0.9rem;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0 0 8px 0;
    padding-left: 12px;
    position: relative;
}

.feature-description p::before {
    content: '•';
    color: #d49830ff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.feature-description p:last-child {
    margin-bottom: 0;
}


/* 響應式設計 */

@media (max-width: 768px) {
  
    .feature-item {
        padding: 25px 15px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .feature-icon svg {
        width: 40px;
        height: 40px;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .feature-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    .feature-item {
        padding: 20px 15px;
    }

    .feature-description p {
        font-size: 0.85rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}
.contact-about-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Section Titles */
.section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* .section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background-color: #ddd;
}

.section-title h2::before {
    left: -10px;
}

.section-title h2::after {
    right: -10px;
} */

/* Office Section */
.office-section {
    text-align: center;
}

.office-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.office-image img {
  display:block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.office-image:hover img {
    transform: scale(1.05);
}

.office-locations {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 800;
    transition: all 0.3s ease;
    background: white;
}

.location-btn.goldcoast {
    border-color: var(--color-gold-700);
    color: var(--color-gold-700);
}

.location-btn:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateX(5px);
}

.location-btn.goldcoast:hover {
    background-color: var(--color-gold-700);
    color: white;
}

.company-type {
    font-size: 0.9rem;
    opacity: 0.8;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.location-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* LINE Consultation Section */
.line-consultation {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.line-content {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.line-description {
    margin-bottom: 30px;
}

.line-description p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.line-description p:last-child {
    margin-bottom: 0;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00c851, #00a63f);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
    background: linear-gradient(135deg, #00a63f, #007e33);
}

.line-btn .arrow-icon {
    transition: transform 0.3s ease;
}

.line-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* Social Section */
.social-section {
    /* border-top: 1px solid #eee; */
    padding-top: 30px;
}

.section-subtitle h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.section-subtitle h3::before,
.section-subtitle h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background-color: #ddd;
}

.section-subtitle h3::before {
    left: -5px;
}

.section-subtitle h3::after {
    right: -5px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-icon.instagram:hover {
    border-color: #e4405f;
    color: #e4405f;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-icon.facebook:hover {
    border-color: #1877f2;
    background-color: #1877f2;
    color: white;
}

.social-icon.youtube:hover {
    border-color: #ff0000;
    background-color: #ff0000;
    color: white;
}

.social-icon.tiktok:hover {
    border-color: #000;
    background-color: #000;
    color: white;
}
.social-icon.tiktok:hover {
    border-color: #000;
    background-color: #000;
    color: white;
}

.social-icon.wechat:hover {
    border-color: #07c160;
    background-color: #07c160;
    color: white;
}
.social-icon.xhs:hover {
    border-color:  #ff2442;
    background-color:  #ff2442;
    color: white;
}

.social-icon:hover {
    border-color: #ff2442;
    background-color: #ff2442;

}


.social-popup {
  position: relative;
  display: inline-flex;
}

.social-popup button {
  padding: 0;
  cursor: pointer;
   
}
.social-popup button:hover {
    border-color: #ff2442;
    background-color: #ff2442;
    color: white;
}

.popup-panel {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
  z-index: 999;
}

.popup-panel a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.popup-panel a:hover {
  background: #f5f5f5;
}

.social-popup.active .popup-panel {
  opacity: 1;
  visibility: visible;
}


/* 響應式設計 */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 60px;
    }

    .section-title h2::before,
    .section-title h2::after {
        width: 60px;
    }

    .section-title h2::before {
        left: -80px;
    }

    .section-title h2::after {
        right: -80px;
    }

    .section-subtitle h3::before,
    .section-subtitle h3::after {
        width: 40px;
    }

    .section-subtitle h3::before {
        left: -60px;
    }

    .section-subtitle h3::after {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .line-consultation {
        padding: 30px 20px;
    }

    .section-title h2::before,
    .section-title h2::after,
    .section-subtitle h3::before,
    .section-subtitle h3::after {
        display: none;
    }

    .office-locations {
        flex-direction: column;
        align-items: center;
    }

    .location-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .social-icons {
        gap: 7px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contact-section .container {
        padding: 0 15px;
    }
 .contact-about-section {
        padding: 0 24px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .line-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .office-image img {
        height: 250px;
    }
}

/* ---- */

/* ==========================================
   側邊欄社交媒體圖標橫向顯示
   ========================================== */

/* 社交媒體圖標並排顯示 */
.widget_block .wp-block-social-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.widget_block .wp-block-social-links li {
    display: inline-flex !important;
    margin: 0 !important;
}

.widget_block .wp-block-social-links .wp-social-link {
    width: 40px;
    height: 40px;
}

.widget_block .wp-block-social-links .wp-social-link a {
    transition: all 0.3s ease;
}

.widget_block .wp-block-social-links .wp-social-link a:hover {
    transform: translateY(-2px);
}

/* ==========================================
   文章內容排版 (Article/Post Content)
   ========================================== */

/* 移除文章頁面上方的 padding */
.single-post .site-content,
.single-post,
.widget-area .widget  {
    padding-top: 0 !important;
}
.content-area {
    width: 100% !important;
}
/* 移除 GeneratePress 預設的 .inside-article padding (40px) */
.separate-containers .inside-article {
    padding: 0 !important;
}

/* 移除 GeneratePress 預設的 entry-content margin-top */
.entry-content:not(:first-child),
.entry-summary:not(:first-child),
.page-content:not(:first-child) {
    margin-top: 0 !important;
}
.separate-containers .site-main,
.separate-containers .inside-left-sidebar, .separate-containers .inside-right-sidebar {
    margin-top: 0 !important;
}

/* ===== 新版文章排版===== */
/* ===============================
   基本設定（只作用於 single）
================================ */
.section{

}
.single .site-main {
    max-width: 1200px;
    margin: 0 auto !important;
}

.featured-image{
        margin-top: 0 !important;
}

.single article {
    padding: 0 16px;
}

.single img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===============================
   HERO 區：左文右圖
================================ */

.article-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin: 0 auto;
    padding-top: 0;
}

/* 左側文字 */
.entry-header {
    max-width: 620px;
}

/* 分類 */
.entry-categories {
    margin-bottom: 16px;
}

.entry-categories a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b2d8b; /* 可換成翰華品牌色 */
    margin-right: 12px;
}

/* 標題 */
.entry-title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 24px;
}

/* 日期 / 作者 */
.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.entry-meta span::before {
    content: "•";
    margin: 0 8px;
}

/* 摘要 */
.entry-summary {
    font-size: 20px;
    line-height: 1.6;
    color: #333;
    max-width: 42ch;
}

/* 右側圖片 */
.post-image {
    width: 100%;
    aspect-ratio: 6 / 3;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   主內容 + Sidebar
================================ */

.article-main-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    margin-bottom: 24px;
}

/* 正文 */
.entry-content {
    font-size: 18px;
    line-height: 1.85;
    color: #222;
}

/* 第一段（新聞 lead） */
.entry-content p:first-of-type {
    font-size: 20px;
    font-weight: 500;
}

/* 內文標題 */
.entry-content h2 {
    font-size: 28px;
    margin: 56px 0 24px;
}

.entry-content h3 {
    font-size: 22px;
    margin: 40px 0 20px;
}

/* 內文圖片 */
.entry-content img {
    margin: 40px 0;
    border-radius: 4px;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
}

/* ===============================
   Footer / Tags
================================ */

.entry-footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.tags-links a {
    font-size: 14px;
    margin-right: 8px;
    color: #555;
}

/* ===============================
   RWD：平板
================================ */

@media (max-width: 1024px) {
    .article-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        margin:0;
        padding:0;
    }

    .entry-title {
        font-size: 40px;
    }

    .article-main-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-bottom: 0;

    }

    .article-sidebar {
        position: relative;
        top: auto;
    }
    .post-image {
        order: -1; /* 圖片排到最上面 */
        width: 100%;
        margin-left: 0;
        margin-right: 0;
         aspect-ratio: 16 / 9;
    }

   

    .entry-header {
        padding: 24px 20px 0;
    }
    .post-image:not(:first-child){
            margin-top:0;

    }
}

/* ===============================
   RWD：手機
================================ */

@media (max-width: 600px) {

    .article-hero:first-child, .featured-image{
        margin-top: 0 !important;
    }
    .entry-title {
        font-size: 32px;
    }

    .entry-summary {
        font-size: 18px;
    }

    .entry-content {
        font-size: 16px;
    }

    .entry-content p:first-of-type {
        font-size: 18px;
    }

    /* Hero 圖全寬 */
    .post-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        aspect-ratio: 4 / 3;
    }
}


/* ---- */

/* Consultation CTA Section */
.consultation-cta {
    background:  var(--color-primary);
    color: white;
    padding: 50px 40px;
    text-align: center;

}

.consultation-cta .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 -20px;
}

.consultation-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.download-btn {
    background: white;
    color: #2c3e50;
    border: 2px solid white;
}

.download-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.contact-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.contact-btn:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.testimonials-grid{
    margin-top: 40px;
}
/* 響應式設計 */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 0 20px 50px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 40px;
    }

    .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .section-header {
        padding-bottom: 20px !important;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .consultation-cta {
        padding: 40px 20px;
    }

    .consultation-cta h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

     .testimonials-section {
       padding: 0 20px;
       margin-bottom: 60px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .testimonial-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .testimonial-card {
        padding: 3rem 1rem 1.5rem;
    }

    .card-header {
        gap: 12px;
        margin-bottom: 15px;
    }

    .avatar {
        width: 45px;
        height: 45px;
    }

    .achievement {
        font-size: 1rem;
    }

    .testimonial-text p {
        font-size: 1.1rem;
    }
}

/* 兩欄：中間大輪播 + 右側資訊面板 */
.oricom-hero { margin: 32px 0; }
.oricom-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
}

/* 讓左右露出半張的關鍵：容器溢出可視 + 內距 */
.hero-swiper { overflow: visible; padding: 0 8vw; }
.hero-swiper .swiper-wrapper { align-items: stretch; }
.hero-swiper .swiper-slide { width: min(1100px, 80vw); } /* 每張的實際寬度 */
.hero-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 20px; box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

/* 箭頭稍微外推 */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #0b4c3c; top: 50%; transform: translateY(-50%);
}

/* 右側資訊面板（跟主視覺同高感） */
.hero-info { padding-right: 8px; }
.info-head { font-weight: 800; letter-spacing: .04em; color:#11584b; margin-bottom: 16px; font-size: 28px; }
.info-date { display:block; color:#6b8582; margin-bottom: 10px; font-size: 14px; }
.info-title { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; margin: 0 0 14px; }
.info-title a { color:#0f3f35; text-decoration: none; }
.info-tags { display:flex; flex-wrap:wrap; gap:10px; }
.info-tags .tag {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background:#f3f7f6; border:1px solid rgba(0,0,0,.12);
}

/* RWD：手機改一欄，上下排 */
@media (max-width: 992px){
  .oricom-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-swiper { padding: 0 5vw; }
  .hero-swiper .swiper-slide { width: 92vw; }
}


a[href*="unicorn.studio"] {
  display: none !important;
  visibility: hidden !important;
}

/* ====================================
   Features Grid Layout - 橫排一列，手機版 2x2
   ==================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0  auto 40px;
}

/* Tablet 版 - 2x2 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 手機版 - 2x2 */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Feature Item Styling */
.features-grid .feature-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.features-grid .feature-item:hover {
    transform: translateY(-5px);
}

.features-grid .feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-grid .feature-icon svg {
    width: 100%;
    height: 100%;
}

.features-grid .feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #333;
}

.features-grid .feature-item .subtitle {
    /* font-size: 14px; */
    color: #304948;
    margin: 0;
    font-weight: 600;
}

/* 手機版調整字體大小 */
@media (max-width: 480px) {
    .features-grid{
        margin: 0;
    }
    .features-grid .feature-item h3 {
        font-size: 16px;
    }

    .features-grid .feature-icon {
        width: 48px;
        height: 48px;
    }
}

/* ====================================
   興趣選擇區塊 - 垂直文字排列
   ==================================== */
.interests-vertical-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.interest-tile-vertical {
    position: relative;
    flex: 1;
    min-height: 480px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.interest-tile-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: background 0.3s ease;
}

.interest-tile-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.interest-tile-vertical:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.interest-tile-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vertical-text-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 2;
}

.vertical-text-overlay .text-en,
.vertical-text-overlay .text-zh {
    writing-mode: vertical-rl;
    max-height: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.vertical-text-overlay .text-en {
    font-size: 18pt;
    color: #39B68B;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
    text-orientation: upright;
}

.vertical-text-overlay .text-zh {
    font-size: 20pt;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-orientation: mixed;
}

/* 手機版 - 改為橫向一列 7 行 */
@media (max-width: 768px) {
    .interests-vertical-grid {
        flex-direction: column;
        gap: 15px;
    }

    .interest-tile-vertical {
        min-height: 120px;
        max-height: 120px;
    }

    .interest-tile-vertical img {
       
        transform: translateY(-90px);
    }

    .vertical-text-overlay {
        top: 20px;
        right: 20px;
        left: 20px;
        bottom: auto;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .vertical-text-overlay .text-en,
    .vertical-text-overlay .text-zh {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        max-height: none;
        max-width: 100%;
    }

    .vertical-text-overlay .text-zh {
        font-size: 18pt;
        order: 1;
        letter-spacing: 1px;
    }

    .vertical-text-overlay .text-en {
        font-size: 14pt;
        order: 2;
        letter-spacing: 0;
    }
}

/* 超小螢幕優化 */
@media (max-width: 480px) {
    .interest-tile-vertical {
        min-height: 100px;
        max-height: 100px;
    }

    .vertical-text-overlay .text-zh {
        font-size: 16pt;
    }

    .vertical-text-overlay .text-en {
        font-size: 12pt;
    }
}



/* Source: css/07-utilities.css */
.mt-0{ margin-top:0!important; } .mt-2{ margin-top:var(--space-2)!important; } .mt-4{ margin-top:var(--space-4)!important; } .mt-8{ margin-top:var(--space-8)!important; }
.mb-0{ margin-bottom:0!important; } .mb-2{ margin-bottom:var(--space-2)!important; } .mb-4{ margin-bottom:var(--space-4)!important; } .mb-8{ margin-bottom:var(--space-8)!important; }
.pt-0{ padding-top:0!important; } .pt-4{ padding-top:var(--space-4)!important; } .pt-8{ padding-top:var(--space-8)!important; }
.pb-0{ padding-bottom:0!important; } .pb-4{ padding-bottom:var(--space-4)!important; } .pb-8{ padding-bottom:var(--space-8)!important; }
.text-center{ text-align:center!important; } .text-right{ text-align:right!important; }
.hide-sm{ display:block; } @media (max-width:640px){ .hide-sm{ display:none!important; } }
.w-full{ width:100%!important; }
.max-w-md{ max-width: 720px!important; }


/* Source: css/performance-optimizations.css */
/**
 * 性能優化 CSS
 * Performance Optimizations
 */

/* 為經常動畫的元素添加 will-change */
.card,
.btn,
.testimonial-card,
.instagram-post-card,
.video-card {
  will-change: transform;
}

/* 滾動容器優化 */
.instagram-grid,
.video-grid,
.blog-grid {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto; /* 避免與 JS 滾動衝突 */
}

/* 減少重排：使用 transform 而不是 top/left */
.modal {
  transform: translateZ(0); /* 強制 GPU 加速 */
}

/* 優化圖片渲染 */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}


/* Source: css/page-header-common.css */
/**
 * 統一頁面 Header 樣式
 * 適用於：關於我們、課程優惠、簽證與續簽、推薦好評、學校搜尋、Blog
 * 所有頁面統一使用 .blog-header class
 */

/* 強制 site-content 為 column 佈局 */
.site-content {
    flex-direction: column;
}

/* 統一的 Page Header */
.blog-header {
    padding: 60px 0 40px;
    text-align: center;
    width: 100%;
}

.blog-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 統一的標題樣式 */
.blog-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

/* 統一的副標題樣式 */
.blog-header .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* 統一的描述文字樣式 */
.blog-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* 手機版響應式 */
@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 30px;
    }

    .blog-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .blog-header .subtitle {
        font-size: 12px;
    }

    .blog-header p {
        font-size: 14px;
        padding: 0 15px;
    }

    .blog-header .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 20px;
    }

    .blog-header .container {
        padding: 0 12px;
    }
}


/* Source: css/language-selector.css */
/* ====================================
   語言切換器（Header 右上角）
   ==================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.language-switcher li {
    margin: 0;
    padding: 0;
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background: #f0f0f0;
    color: #39B68B;
}

.language-switcher .current-lang a {
    background: #39B68B;
    color: white;
}

/* ====================================
   語言選擇頁面
   ==================================== */
.language-selector-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.language-selector-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.selector-title {
    font-size: clamp(28px, 5vw, 48px);
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.language-option {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.language-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.lang-icon {
    margin-bottom: 20px;
}

.lang-flag {
    font-size: 64px;
    display: inline-block;
}

.language-option h2 {
    font-size: 24px;
    margin: 10px 0;
    color: #333;
    font-weight: 600;
}

.lang-native {
    font-size: 16px;
    color: #666;
    margin: 5px 0 0;
}

/* 手機版調整 */
@media (max-width: 640px) {
    .language-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .language-option {
        padding: 30px 20px;
    }

    .lang-flag {
        font-size: 48px;
    }
}


