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

:root {
  --blue-dark: #003366;
  --blue:      #0057A8;
  --blue-mid:  #0078D4;
  --blue-light:#E8F4FF;
  --accent:    #E8A020;
  --text:      #1A1A2E;
  --text-muted:#5A6478;
  --bg:        #FFFFFF;
  --bg-soft:   #F7F9FC;
  --border:    #DDE3EC;
  --radius:    8px;
  --shadow:    0 2px 16px rgba(0,51,102,0.10);
  --font-body: 'Noto Sans TC', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-mid); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Top Bar === */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-contact {
  color: #fff;
  font-weight: 500;
  letter-spacing: .03em;
}
.topbar-contact:hover { color: var(--accent); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { color: #ccd; transition: color .2s; }
.topbar-social a:hover { color: var(--accent); }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,51,102,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; }
.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-top: 2px;
}

/* Nav */
.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: var(--blue-light);
  color: var(--blue);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 200;
  padding: 6px 0;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: background .15s;
}
.dropdown li a:hover { background: var(--blue-light); color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-ghost {
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 12px 4px;
  border-radius: 0;
}
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* === Hero === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; padding: 80px 24px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  opacity: .9;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: .85;
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* === Covid Banner === */
.covid-banner {
  background: #EBF4FF;
  border-left: 4px solid var(--blue);
  padding: 20px 0;
  text-align: center;
}
.covid-banner p { font-size: 15px; color: var(--blue-dark); line-height: 1.8; }

/* === Section Title === */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* === Features === */
.features { padding: 80px 0; background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,51,102,.15); }
.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.feature-en { font-size: 12px; color: var(--blue); font-weight: 500; letter-spacing: .05em; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* === Awards === */
.awards { padding: 80px 0; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.award-item { text-align: center; }
.award-item a { display: block; text-decoration: none; }
.award-item img {
  max-height: 120px;
  width: auto;
  margin: 0 auto 12px;
  object-fit: contain;
  transition: transform .2s;
}
.award-item:hover img { transform: scale(1.05); }
.award-item p { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* === Stats === */
.stats {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.stats .section-title { color: #fff; }
.stats .section-title::after { background: var(--accent); }
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 16px; opacity: .85; margin-top: 8px; }

/* === Modules === */
.modules { padding: 80px 0; background: var(--bg-soft); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  transition: transform .2s;
}
.module-card:hover { transform: translateY(-3px); }
.module-icon { font-size: 32px; margin-bottom: 14px; }
.module-card h3 { font-size: 16px; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; line-height: 1.4; }
.module-card h3 span { font-size: 12px; font-weight: 400; color: var(--blue); display: block; }
.module-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.module-link { font-size: 13px; font-weight: 600; color: var(--blue); }
.module-link:hover { color: var(--blue-dark); }

/* === Other Services === */
.other-services { padding: 80px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  display: block;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: var(--text);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,51,102,.15); color: var(--blue); }
.service-card img { max-height: 80px; width: auto; margin: 0 auto 16px; object-fit: contain; }
.service-card p { font-size: 13.5px; font-weight: 500; line-height: 1.5; }

/* === Footer === */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: rgba(255,255,255,.7); font-size: 13px; transition: color .2s; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-contact p { font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; transition: color .2s; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.45); }

/* === Responsive === */
@media (max-width: 1024px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li > a { padding: 12px 20px; }
  .dropdown { display: none !important; }
  .has-dropdown > a::after { content: ' ▾'; }
  .features-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { gap: 40px; }
  .hero-content { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
