* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e64141;
  --dark: #1f2937;
  --text: #374151;
  --muted: #6b7280;
  --bg: #f7f8fb;
  --white: #ffffff;
}

body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 42px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceef3;
}

@media (max-width: 768px) { 
  .site-header {
    top: 0;
  }
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: #feecec;
  color: var(--primary);
}

.hero {
  margin-top: 26px;
}

.slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.slide {
  display: none;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero.small .slide {
  min-height: 280px;
}

.slide.active {
  display: block;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15));
}

.slide-content {
  position: relative;
  color: #fff;
  padding: 72px 64px;
  max-width: 700px;
}

.slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
  line-height: 1.25;
}

.slide-content p {
  font-size: 1.06rem;
  opacity: 0.95;
}

.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
}

.main-section {
  margin: 54px auto;
}

.section-title {
  font-size: 1.85rem;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--muted);
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

.highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.highlight-item {
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.highlight-item h4 {
  font-size: 1.5rem;
  color: var(--primary);
}

.article-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 28px;
}

.article-box p,
.article-box li {
  margin-bottom: 12px;
  color: #4b5563;
}

.article-box ul {
  margin-left: 20px;
}

.contact-list p {
  margin-bottom: 8px;
}

.license-block {
  margin-top: 24px;
}

.license-block h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.license-block img {
  width: 100%;
  max-width: 620px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.site-footer {
  margin-top: 50px;
  background: #0f172a;
  color: #dbe3f3;
  padding: 28px 0;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 70px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
    padding: 10px 12px;
    background: #f3f4f6;
  }

  .slide,
  .hero.small .slide {
    min-height: 240px;
  }

  .slide-content {
    padding: 42px 26px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
