:root {
  --ink: #111827;
  --muted: #5f6572;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #dbe3ee;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --footer: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 227, 238, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #243041;
  font-size: 15px;
}

.top-nav a {
  text-decoration: none;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: 50% 0;
}

.hero-overlay {
  background: rgba(17, 24, 39, 0.78);
}

.hero-content {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.section-narrow,
.section-wide {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding: 64px 0 32px;
  text-align: center;
}

.intro p,
.welcome p {
  margin: 18px auto 0;
  max-width: 960px;
  color: var(--muted);
  font-size: 18px;
}

.line-code {
  width: 244px;
  height: auto;
  margin: 0;
}

.line-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 58px);
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.line-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.line-phone {
  margin: 0;
  color: #59426f;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.2;
  white-space: nowrap;
}

.phone a {
  color: var(--accent-dark);
  text-decoration: none;
}

.line-phone a {
  font-size: 1.12em;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 232px;
  min-height: 72px;
  padding: 0 42px;
  color: #fff;
  background: linear-gradient(135deg, #b576e1, #8f4cc9);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(143, 76, 201, 0.25);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.apply {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 56px 0 48px;
}

.apply-copy {
  padding: clamp(24px, 4vw, 42px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 800;
}

.apply-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-image,
.bottom-image {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 56px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.welcome {
  padding: 24px 0 48px;
  text-align: center;
}

.welcome h2,
.contact h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.contact {
  padding: 22px 0 56px;
  text-align: center;
}

.bottom-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.86;
}

.site-footer {
  padding: 72px clamp(20px, 5vw, 72px) 30px;
  color: #dfe7f2;
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 34px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-grid h2,
.footer-grid h4 {
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.2;
}

.footer-grid h2 {
  font-size: 24px;
}

.footer-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-grid p {
  margin: 0 0 18px;
  color: #aeb9c9;
  font-size: 14px;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  color: #c4cedd;
  text-decoration: none;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.copyright {
  margin: 48px auto 0;
  color: #aeb9c9;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 420px;
  }

  .apply {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 0;
    padding: 14px 18px;
  }

  .brand {
    font-size: 20px;
  }

  .top-nav {
    font-size: 14px;
  }

  .start-button {
    width: 100%;
  }

  .line-contact {
    gap: 18px;
  }

  .line-actions {
    width: 100%;
  }

  .line-code {
    width: min(244px, 82vw);
  }

  .line-button {
    min-width: min(280px, 88vw);
  }

  .hero {
    min-height: 360px;
  }

  .section-narrow,
  .section-wide {
    width: min(100% - 28px, 1120px);
  }

  .intro {
    padding-top: 44px;
  }

  .intro p,
  .welcome p,
  .apply-copy p:last-child {
    font-size: 16px;
  }

  .apply-copy {
    padding: 22px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .bottom-image img {
    height: 120px;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
