@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Bebas+Neue&display=swap');

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

:root {
  --navy: #0D1B2A;
  --navy-mid: #1A2E42;
  --navy-light: #253D54;
  --teal: #2BBFA4;
  --teal-dark: #1E8C78;
  --cream: #F5F2EC;
  --white: #FFFFFF;
  --text-main: #0D1B2A;
  --text-muted: #5A6E82;
  --border: #D6E0EA;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', sans-serif; background: var(--cream); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,191,164,0.2);
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 3px; color: #fff; text-decoration: none; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-mobile-btn { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  padding: 48px 5% 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { display: block; margin-bottom: 1rem; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; }
.footer-col h4 { font-size: 11px; letter-spacing: 3px; color: var(--teal); text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 12px; }
.footer-bottom a { color: var(--teal); text-decoration: none; }

/* ── COMMON ── */
.section-label { display: inline-block; font-size: 11px; letter-spacing: 4px; color: var(--teal); text-transform: uppercase; margin-bottom: 0.75rem; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 4vw, 54px); letter-spacing: 1px; line-height: 1.1; margin-bottom: 1.25rem; }
.section-title.light { color: #fff; }
.section-desc { color: var(--text-muted); font-size: 15px; max-width: 540px; line-height: 1.8; }

.btn-primary { display: inline-block; background: var(--teal); color: var(--navy); padding: 13px 30px; border-radius: 3px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 1px; transition: background 0.2s, transform 0.15s; border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,0.35); color: #fff; padding: 13px 30px; border-radius: 3px; text-decoration: none; font-size: 14px; letter-spacing: 1px; transition: all 0.2s; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-dark { display: inline-block; background: var(--navy); color: #fff; padding: 13px 30px; border-radius: 3px; text-decoration: none; font-size: 14px; letter-spacing: 1px; transition: background 0.2s; border: none; cursor: pointer; font-family: inherit; font-weight: 500; }
.btn-dark:hover { background: var(--navy-light); }

/* ── PAGE BANNER ── */
.page-banner { background: var(--navy); padding: 140px 5% 80px; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; top: -200px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(43,191,164,0.1) 0%, transparent 70%); pointer-events: none; }
.page-banner h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px,6vw,80px); color: #fff; letter-spacing: 2px; position: relative; }
.page-banner h1 span { color: var(--teal); }
.page-banner p { color: rgba(255,255,255,0.6); font-size: 16px; margin-top: 1rem; max-width: 500px; position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; position: relative; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.25); }

/* ── FADE IN ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── LOADING ── */
.loading-overlay { position: fixed; inset: 0; background: var(--cream); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.4s; }
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-spinner { width: 40px; height: 40px; border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1.5rem 5%; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-mobile-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
