/* =====================================================
   曦樂 Sunrise — 內頁共用樣式 (pages.css)
   給 workshop.html / news.html / training.html 使用
   設計語言與 index.html 完全一致（粉藍色系）
   ===================================================== */

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: #1A3347;
  background-color: #F4F9FD;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ COLOR VARIABLES ============ */
:root {
  --blue-primary:  #6BAED6;
  --blue-light:    #9ECBE8;
  --blue-pale:     #DAF0FA;
  --blue-deep:     #3D7FA8;
  --blue-deeper:   #255F82;
  --cream:         #F4F9FD;
  --warm-white:    #EEF6FB;
  --mist:          #D8EDF8;
  --navy-dark:     #1A3347;
  --navy-mid:      #3D6680;
  --navy-light:    #7AAABB;
  --gray-soft:     #EAF4FA;
}

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,249,253,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,174,214,0.18);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(26,51,71,0.08); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-deeper);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-logo span { font-style: italic; font-weight: 400; color: var(--blue-primary); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  position: relative;
  transition: color 0.3s;
}
.nav-links a.active { color: var(--blue-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue-primary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--blue-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--blue-primary);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-deep) !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none !important; }

/* ============ PAGE HERO (內頁小型英雄區) ============ */
.page-hero {
  position: relative;
  padding: 168px 60px 88px;
  text-align: center;
  overflow: hidden;
  background: #0D2233;
}
.page-hero-photo {
  position: absolute;
  inset: -12px;
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(4px) saturate(1.05);
  transform: scale(1.06);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,34,51,0.62) 0%, rgba(13,34,51,0.48) 45%, rgba(13,34,51,0.72) 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.page-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(158,203,232,0.4);
  border-radius: 50px;
  padding: 7px 20px;
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--blue-light); }
.page-hero p {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(218,240,250,0.72);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  margin-top: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(218,240,250,0.5);
}
.page-hero .breadcrumb a { color: rgba(218,240,250,0.72); transition: color 0.3s; }
.page-hero .breadcrumb a:hover { color: var(--blue-light); }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--blue-primary);
  color: white;
  padding: 14px 38px;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,127,168,0.5);
}
.btn-outline {
  border: 1px solid rgba(107,174,214,0.55);
  color: var(--blue-deep);
  padding: 14px 38px;
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--blue-primary);
  background: rgba(107,174,214,0.1);
}

/* ============ SECTION COMMON ============ */
section { padding: 96px 60px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 14px;
  font-weight: 400;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: var(--navy-dark);
  line-height: 1.28;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--blue-primary); }
.section-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--navy-light);
  font-weight: 300;
  max-width: 620px;
}
.section-head .section-desc { margin: 0 auto; }
.divider {
  width: 50px; height: 2px;
  background: linear-gradient(to right, var(--blue-primary), var(--blue-light));
  margin: 20px 0 32px;
  border-radius: 2px;
}
.section-head .divider { margin: 20px auto 32px; }

/* ============ CARD GRID (共用卡片) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-card {
  background: white;
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 4px 24px rgba(26,51,71,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid var(--blue-primary);
  display: flex;
  flex-direction: column;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(61,127,168,0.14); }
.info-card .card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
}
.info-card .card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 8px;
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.info-card p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--navy-light);
  font-weight: 300;
}
.info-card .card-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-card .card-tag {
  font-size: 0.72rem;
  color: var(--blue-deep);
  background: var(--blue-pale);
  border-radius: 50px;
  padding: 5px 13px;
  font-weight: 400;
}
.info-card .card-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--blue-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.3s, gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.info-card .card-link:hover { color: var(--blue-deep); gap: 10px; }

/* ============ CTA BAND (呼籲行動橫幅) ============ */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-deeper) 100%);
  border-radius: 26px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  box-shadow: 0 18px 50px rgba(37,95,130,0.28);
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 0.94rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 30px;
}
.cta-band .btn-primary { background: #fff; color: var(--blue-deep); }
.cta-band .btn-primary:hover { background: var(--blue-pale); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 13px 22px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
  50%     { box-shadow: 0 6px 28px rgba(37,211,102,0.75); }
}

/* ============ FOOTER ============ */
footer {
  background: #0D2233;
  color: rgba(255,255,255,0.65);
  padding: 60px 60px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto 48px;
}
.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 14px; color: #9ECBE8; }
.footer-brand .nav-logo span { color: #6BAED6; }
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.95;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
}
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: all 0.3s;
}
.social-btn:hover { background: var(--blue-primary); color: white; }
.footer-col h5 {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
  font-weight: 300;
}
.footer-col li a:hover { color: var(--blue-light); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  nav { padding: 16px 32px; }
  section { padding: 76px 32px; }
  .page-hero { padding: 150px 32px 72px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .page-hero { padding: 128px 20px 60px; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  footer { padding: 48px 20px 28px; }
}
