/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a0a2e;
  --navy-light: #12124a;
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --gold: #f59e0b;
  --text: #1e1e2f;
  --text-secondary: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans TC', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.material-icons {
  font-size: 20px;
  vertical-align: middle;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 46, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.5s var(--ease-out), background 0.3s;
}

.header.scrolled {
  background: rgba(10, 10, 46, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  max-width: 100%;
}

.logo {
  flex-shrink: 0;
  margin-right: 28px;
}

.logo:hover { opacity: 0.8; }

.logo-svg { height: 40px; width: auto; }
.logo-img { height: 35px; width: auto; }
.logo-img-header { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-primary,
.nav-secondary,
.nav-utility {
  display: flex;
  align-items: center;
}

.nav-primary > li > a,
.nav-secondary > li > a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 72px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.nav-primary > li > a::after,
.nav-secondary > li > a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease-spring);
}

.nav-primary > li > a:hover,
.nav-secondary > li > a:hover {
  color: #fff;
  opacity: 1;
}

.nav-primary > li > a:hover::after,
.nav-secondary > li > a:hover::after {
  transform: translateX(-50%) scale(1);
}

.nav-primary > li > a .arrow {
  font-size: 18px;
  margin-left: 2px;
  transition: transform 0.3s;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.12);
  margin: 0 6px;
}

.nav-utility {
  gap: 2px;
  margin-left: 6px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: 72px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.contact-link:hover { color: #fff; opacity: 1; }
.contact-link .material-icons { font-size: 18px; }

.search-toggle button,
.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: rgba(255,255,255,0.6);
  border-radius: 10px;
  transition: all 0.3s;
}

.search-toggle button:hover,
.lang-toggle button:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.lang-toggle { position: relative; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 170px;
  z-index: 100;
  animation: scaleIn 0.2s ease;
  transform-origin: top right;
}

.lang-dropdown.open { display: block; }

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: #f0f0ff;
  color: var(--accent);
  opacity: 1;
}

.tech-link {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 72px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
  letter-spacing: 0.3px;
  transition: background 0.3s;
}

.tech-link:hover {
  background: #4338ca;
  opacity: 1;
}

/* Dropdown Mega Menu */
.has-dropdown { position: relative; }

.dropdown-mega {
  display: none;
  position: absolute;
  top: 72px;
  left: -20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 32px;
  min-width: 540px;
  z-index: 100;
  border-top: 3px solid var(--accent);
  animation: scaleIn 0.2s ease;
  transform-origin: top center;
}

.has-dropdown:hover .dropdown-mega { display: block; }
.has-dropdown:hover > a .arrow { transform: rotate(180deg); }

.dropdown-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dropdown-header h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.dropdown-header p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.dropdown-links { display: flex; gap: 36px; }

.dropdown-col a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.dropdown-col a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Search Overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.search-overlay.open { display: block; }

.search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 16px;
  outline: none;
  font-family: inherit;
  background: transparent;
}

.search-form button {
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form button:hover {
  background: #4338ca;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  margin-top: 72px;
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 720px;
  overflow: hidden;
  background: var(--navy);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  height: 100%;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 1.4s;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-dots {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.5s var(--ease-out);
}

.dot.active {
  background: #fff;
  width: 56px;
}

.dot:hover { background: rgba(255,255,255,0.6); }

.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 3;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s var(--ease-out);
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

/* ===== Section Common ===== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  margin-top: 16px;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  transition: all 0.3s;
}

.section-link:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

/* ===== Recommended ===== */
.recommended {
  background: var(--bg);
  overflow: hidden;
}

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

.recommend-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out);
  position: relative;
}

.recommend-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  opacity: 1;
}

.card-image {
  width: 100%;
  padding-top: 56%;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,46,0.04) 100%);
  pointer-events: none;
}

.card-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.recommend-card:hover .card-image img {
  transform: scale(1.08);
}

.card-body {
  padding: 20px 24px 24px;
}

.recommend-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
  padding: 0;
}

.card-tag {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 100px;
  margin-top: 4px;
}

/* ===== News Section ===== */
.news-section {
  background: var(--bg-alt);
  position: relative;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,0.04), transparent 70%);
  pointer-events: none;
}

.news-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-md);
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}

.news-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  border-radius: 12px;
  transition: all 0.3s;
}

.news-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.news-tab:hover:not(.active) {
  background: var(--bg-alt);
  color: var(--text);
}

.news-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.news-subtab {
  font-size: 13px;
  color: var(--accent);
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid rgba(79,70,229,0.2);
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.3s;
}

.news-subtab:hover {
  border-color: var(--accent);
  background: rgba(79,70,229,0.04);
  opacity: 1;
}

.news-list {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 28px;
  gap: 16px;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-item:hover {
  background: var(--bg-alt);
}

.news-badge {
  flex-shrink: 0;
  padding: 5px 14px;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.news-link {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.news-link:hover {
  color: var(--accent);
  opacity: 1;
}

.news-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #bbb;
  font-variant-numeric: tabular-nums;
}

/* ===== Services Grid ===== */
.services-section {
  padding: 96px 0 120px;
  background: var(--bg);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  opacity: 1;
}

.service-image {
  width: 100%;
  padding-top: 56%;
  position: relative;
  overflow: hidden;
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,46,0.06));
  pointer-events: none;
  transition: opacity 0.3s;
}

.service-card:hover .service-image::after {
  opacity: 0;
}

.service-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-info {
  padding: 24px 24px 28px;
}

.service-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-info p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.08), transparent 70%);
  pointer-events: none;
}

.footer-top {
  background: rgba(255,255,255,0.02);
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo .logo-svg { height: 35px; }

.footer-nav-top {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-nav-top a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}

.footer-nav-top a:hover {
  color: #fff;
  opacity: 1;
}

.footer-nav-top .material-icons { font-size: 18px; }

.footer-main {
  padding: 56px 0;
  position: relative;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  margin-top: 28px;
  letter-spacing: 0.3px;
}

.footer-col h4:first-child { margin-top: 0; }

.footer-col h4 a {
  color: #fff;
  transition: color 0.3s;
}

.footer-col h4 a:hover {
  color: var(--accent-light);
  opacity: 1;
}

.footer-subcol { margin-bottom: 16px; }

.footer-subcol h5 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul { margin-bottom: 10px; }
.footer-col li { margin-bottom: 4px; }

.footer-col li a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  transition: color 0.3s;
}

.footer-col li a:hover {
  color: rgba(255,255,255,0.9);
  opacity: 1;
}

.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-legal li a {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: all 0.3s var(--ease-out);
}

.social-icon:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  opacity: 1;
}

.footer-notices {
  background: rgba(0,0,0,0.2);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.notice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

.notice-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  opacity: 1;
}

.badge {
  padding: 4px 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  margin-left: 12px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 28px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-logo .logo-svg-small { height: 30px; }

.copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
}

/* ===== Scroll Top ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s var(--ease-out);
  z-index: 900;
  box-shadow: 0 8px 28px rgba(79,70,229,0.35);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 0 12px 36px rgba(79,70,229,0.45);
}

/* ===== Page Template ===== */
.page-header {
  margin-top: 72px;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79,70,229,0.2), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(129,140,248,0.1), transparent 50%),
    linear-gradient(135deg, #080828, #12124a);
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-header .breadcrumb {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-top: 14px;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.4);
}

.page-header .breadcrumb a:hover { color: #fff; }

.page-content {
  padding: 64px 0 100px;
  background: #fff;
}

.page-content h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-light), transparent) 1;
  font-weight: 700;
}

.page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .recommend-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .nav-primary, .nav-secondary, .nav-divider, .tech-link { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-utility { margin-left: auto; }
  .contact-link span:last-child { display: none; }
  .hero { height: 60vh; min-height: 360px; }
  .section { padding: 64px 0; }
  .section-heading { font-size: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .recommend-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .notice-cards { grid-template-columns: 1fr; }
  .footer-header { flex-direction: column; gap: 16px; }
  .footer-nav-top { flex-wrap: wrap; justify-content: center; }
  .section { padding: 48px 0; }
  .section-heading { font-size: 24px; }
  .container { padding: 0 20px; }
}

@media (max-width: 576px) {
  .hero { height: 50vh; min-height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .recommend-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 40px 0; }
}

/* ===== Mobile Menu Overlay ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  overflow-y: auto;
  padding: 12px 24px;
}

.mobile-nav-overlay.open { display: block; }
.mobile-nav-overlay ul { border-top: 1px solid var(--border); }

.mobile-nav-overlay li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav-overlay li a:hover {
  color: var(--accent);
  opacity: 1;
}
