/* ==========================================
   EAP 員工協助方案介紹網站 - 核心樣式表
   設計風格：現代溫暖、極簡專業、動態互動
   ========================================== */

/* 引入 Google Fonts 提升字體質感 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Outfit:wght@300;400;600;700&display=swap');

/* 全域設計變數 (Design Tokens) */
:root {
  /* HSL 配色系統：方便透過飽和度與亮度微調顏色 */
  --primary-h: 215;
  --primary-s: 60%;
  --primary-l: 35%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l)); /* 深琉璃藍 - 象徵專業與信賴 */
  --primary-hover: hsl(var(--primary-h), var(--primary-s), 28%);
  --primary-light: hsl(var(--primary-h), var(--primary-s), 96%);
  
  --accent-h: 172;
  --accent-s: 45%;
  --accent-l: 45%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); /* 溫暖綠色 - 象徵療癒與安心 */
  --accent-hover: hsl(var(--accent-h), var(--accent-s), 38%);
  --accent-light: hsl(var(--accent-h), var(--accent-s), 96%);

  --text-dark: hsl(210, 30%, 15%); /* 深色文字 */
  --text-muted: hsl(210, 15%, 45%); /* 輔助說明文字 */
  --bg-main: hsl(210, 25%, 98%); /* 網頁底色 */
  --bg-white: #ffffff;
  
  /* 介面細節 */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px rgba(42, 92, 138, 0.05);
  --shadow-md: 0 10px 30px rgba(42, 92, 138, 0.08);
  --shadow-lg: 0 20px 40px rgba(42, 92, 138, 0.12);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* 平滑過渡動畫 */
}

/* 全域基本重設 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 平滑滾動 */
}

body {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 網頁容器限制 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   導覽列 (Header & Navigation)
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px); /* 玻璃擬物化毛玻璃效果 */
  border-bottom: 1px solid rgba(42, 92, 138, 0.08);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(42, 92, 138, 0.2);
}

.nav-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 92, 138, 0.3);
}

/* ==========================================
   英雄橫幅區 (Hero Section)
   ========================================== */
.hero {
  padding-top: 150px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, var(--accent-light) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, var(--primary-light) 0%, transparent 50%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(42, 92, 138, 0.15);
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 92, 138, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 92, 138, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(42, 92, 138, 0.2);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* 英雄區視覺圖像 (純 CSS 繪製) */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-bg-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: 50%;
  filter: blur(10px);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.visual-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
  width: 280px;
  animation: float-reverse 7s ease-in-out infinite;
}

.visual-card-2 {
  position: absolute;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 3;
  right: 10px;
  bottom: 30px;
  width: 200px;
  animation: float 5s ease-in-out infinite;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ==========================================
   通用標題區 (Section Headers)
   ========================================== */
section {
  padding: 100px 0;
}

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

.section-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================
   服務細節區 - 互動 Tabs
   ========================================== */
.services-section {
  background-color: var(--bg-white);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 1px solid rgba(42, 92, 138, 0.12);
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(42, 92, 138, 0.2);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition);
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(42, 92, 138, 0.05);
  box-shadow: var(--shadow-sm);
}

.service-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.service-tag {
  background-color: white;
  border: 1px solid rgba(42, 92, 138, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.service-bullets {
  list-style: none;
}

.service-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

/* 服務範例卡片 */
.service-example {
  background-color: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--accent);
}

.example-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ==========================================
   諮詢流程區 - 互動 Stepper
   ========================================== */
.process-section {
  background-color: var(--bg-main);
  position: relative;
}

/* 互動步驟條 */
.stepper-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 進度底線 */
.stepper-progress-line {
  position: absolute;
  top: 25px;
  left: 5%;
  right: 5%;
  height: 4px;
  background-color: rgba(42, 92, 138, 0.1);
  z-index: 1;
}

.stepper-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%; /* JS 控制填滿度 */
  background-color: var(--accent);
  transition: var(--transition);
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 80px;
}

.step-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: white;
  border: 3px solid rgba(42, 92, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-node:hover .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.08);
}

.step-node.active .step-circle {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 0 6px rgba(95, 158, 160, 0.2);
}

.step-title {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.step-node.active .step-title {
  color: var(--primary);
}

/* 步驟說明卡片 */
.step-details-wrapper {
  max-width: 750px;
  margin: 0 auto;
  min-height: 250px;
}

.step-detail-card {
  display: none;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(42, 92, 138, 0.05);
}

.step-detail-card.active {
  display: block;
  animation: tabFadeIn 0.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.step-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(42, 92, 138, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.step-detail-number {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.step-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.step-detail-time {
  font-size: 0.85rem;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 500;
}

.step-detail-desc {
  color: var(--text-dark);
  margin-bottom: 20px;
}

.step-detail-tips {
  background-color: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: hsl(var(--accent-h), var(--accent-s), 25%);
  display: flex;
  gap: 12px;
}

.step-detail-tips::before {
  content: "💡";
}

/* ==========================================
   保密性與安全保障專區 (Privacy & Security)
   ========================================== */
.privacy-section {
  background-color: var(--bg-white);
}

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

.privacy-card {
  background-color: var(--bg-main);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(42, 92, 138, 0.04);
  transition: var(--transition);
}

.privacy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(95, 158, 160, 0.2);
}

.privacy-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  transition: var(--transition);
}

.privacy-card:hover .privacy-icon {
  background-color: var(--accent);
  color: white;
  transform: rotateY(360deg); /* 翻轉微動畫 */
}

.privacy-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
}

.privacy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   互動預約表單區 (Booking Section)
   ========================================== */
.booking-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(95, 158, 160, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.booking-section .section-title {
  color: white;
}

.booking-section .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.booking-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  border: 1px solid rgba(42, 92, 138, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background-color: var(--bg-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(95, 158, 160, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
  cursor: pointer;
}

.privacy-checkbox input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.privacy-checkbox span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.privacy-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(95, 158, 160, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95, 158, 160, 0.4);
}

/* ==========================================
   成功送出的彈出式確認視窗 (Modal)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 92, 138, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-success-icon {
  width: 72px;
  height: 72px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px auto;
  animation: popScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* ==========================================
   聯絡資訊與頁尾 (Footer)
   ========================================== */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-icon {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-privacy-links {
  display: flex;
  gap: 20px;
}

.footer-privacy-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: var(--transition);
}

.footer-privacy-links a:hover {
  color: var(--accent);
}

/* ==========================================
   懸浮工具按鈕與返回頂部
   ========================================== */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-float-chat {
  background-color: var(--accent);
  color: white;
  font-size: 1.4rem;
}

.btn-float-chat:hover {
  background-color: var(--accent-hover);
  transform: translateY(-4px) scale(1.05);
}

.btn-float-top {
  background-color: white;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(42, 92, 138, 0.1);
}

.btn-float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.btn-float-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-4px);
}

/* ==========================================
   動畫效果集錦 (Keyframes & Animations)
   ========================================== */

/* 懸浮漂浮效果 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}

/* Tab 內容切換淡入動畫 */
@keyframes tabFadeIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 送出成功縮放動畫 */
@keyframes popScale {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   響應式版面微調 (RWD Media Queries)
   ========================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .visual-bg-circle {
    width: 240px;
    height: 240px;
  }
  
  .visual-card {
    width: 220px;
    padding: 16px;
    left: 20%;
  }
  
  .visual-card-2 {
    width: 160px;
    right: 20%;
  }
  
  .service-card {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }
  
  .stepper-container {
    overflow-x: auto;
    padding-bottom: 12px;
    justify-content: flex-start;
    gap: 30px;
  }
  
  .stepper-progress-line {
    display: none; /* RWD下隱藏橫向連線 */
  }
  
  .step-node {
    flex-shrink: 0;
  }
  
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* RWD 下照片英雄區調整 */
  .hero-photo-frame {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ==========================================
   英雄區真實照片框樣式 (Hero Photo Frame)
   ========================================== */

/* 外層容器：取代原本的純 CSS 裝飾 */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 照片外框卡片 */
.hero-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* 平滑的懸浮漂浮效果 */
  animation: float 6s ease-in-out infinite;
  border: 4px solid rgba(255, 255, 255, 0.8);
  /* 照片加一圈柔和發光邊框 */
  outline: 2px solid rgba(95, 158, 140, 0.2);
  outline-offset: 6px;
}

/* 照片本體 */
.hero-photo-frame img {
  width: 100%;
  max-width: 460px;
  height: 340px;
  object-fit: cover;
  /* 輕微縮放懸停效果 */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.hero-photo-frame:hover img {
  transform: scale(1.04);
}

/* 照片底部說明標籤 */
.hero-photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.6);
}

.hero-photo-caption-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-photo-caption-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

/* 照片周圍的裝飾光暈 */
.hero-photo-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(20px);
  animation: float-reverse 7s ease-in-out infinite;
}

/* 右上角的小型浮動徽章 */
.hero-photo-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(95, 158, 140, 0.35);
  z-index: 3;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
