:root {
  --ink: #1f2240;
  --muted: #63677e;
  --line: #ece8f6;
  --paper: #ffffff;
  --soft: #fbf8ff;
  --violet: #7b2fd3;
  --violet-dark: #53159b;
  --violet-light: #efe5ff;
  --shadow: 0 18px 45px rgba(63, 30, 99, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

#top,
#about,
#recruit,
#benefits,
#office,
#contact {
  scroll-margin-top: 92px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(123, 47, 211, 0.08);
  box-shadow: 0 8px 30px rgba(31, 34, 64, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(123, 47, 211, 0.18));
}

.brand strong {
  display: block;
  color: #202039;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: #56556d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: #343350;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:not(.join-link):hover {
  color: var(--violet);
}

.join-link {
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(123, 47, 211, 0.23);
}

.mobile-join-link {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--violet-dark);
}

.about-section {
  padding: 26px 0 28px;
  background:
    radial-gradient(circle at 20% 5%, rgba(123, 47, 211, 0.11), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(540px, 0.96fr) minmax(430px, 1.04fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(1.95rem, 3.2vw, 2.72rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.about-copy p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 10px;
  color: #393b58;
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1.64;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  height: auto;
  overflow: hidden;
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(123, 47, 211, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(74, 49, 118, 0.035);
}

.benefit-item {
  min-height: 168px;
  padding: 24px 18px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(74, 49, 118, 0.06);
}

.value-card svg,
.benefit-item svg {
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h2,
.benefit-item h3 {
  margin-bottom: 5px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.value-card p,
.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.28;
}

.about-copy .value-card p {
  white-space: nowrap;
  max-width: 100%;
  font-size: 0.62rem;
}

.benefit-item svg {
  width: 38px;
  height: 38px;
}

.benefit-item h3 {
  font-size: 1rem;
}

.benefit-item p {
  font-size: 0.78rem;
}

.product-banner {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  background: #f5edff;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(63, 30, 99, 0.12);
}

.product-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-copy {
  position: absolute;
  left: 14.8%;
  bottom: 18%;
  z-index: 1;
}

.product-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 10px 22px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(123, 47, 211, 0.24);
}

.section-panel {
  padding: 38px 0 52px;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}

.section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.25;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.job-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(58, 37, 97, 0.09);
}

.job-card img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}

.job-card div {
  padding: 18px 18px 20px;
}

.job-card h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

.job-card p {
  min-height: 78px;
  margin-bottom: 14px;
  color: #4e5069;
  font-size: 0.95rem;
  font-weight: 600;
}

.job-card a {
  color: var(--violet);
  font-size: 0.92rem;
  font-weight: 900;
}

.benefits-section {
  padding: 44px 0 20px;
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.benefit-item {
  min-height: 148px;
  padding: 22px 12px;
}

.office-section {
  padding: 20px 0 54px;
  background: #fff;
}

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

.office-grid img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(31, 34, 64, 0.12);
}

.site-footer {
  color: #35344c;
  background: linear-gradient(180deg, #faf8ff 0%, #fff 100%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.65fr;
  gap: 58px;
  padding: 44px 0 34px;
}

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

.footer-brand p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.contact-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-block li,
.quick-links a {
  display: block;
  margin-bottom: 6px;
  color: #555870;
  font-weight: 700;
}

.quick-links {
  display: grid;
  align-content: start;
}

.copyright {
  padding: 14px 20px;
  color: #fff;
  text-align: center;
  background: #181b3e;
}

.copyright p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 1040px) {
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .value-grid,
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 78px;
  }

  #top,
  #about,
  #recruit,
  #benefits,
  #office,
  #contact {
    scroll-margin-top: 78px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 20px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.55rem;
  }

  .mobile-join-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 900;
  }

  .menu-toggle {
    flex: 0 0 auto;
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 6px;
  }

  .join-link {
    text-align: center;
  }

  .nav-links .join-link {
    display: none;
  }

  .about-section {
    padding-top: 24px;
  }

  .about-grid {
    gap: 24px;
  }

  .hero-photo {
    order: 2;
  }

  .about-copy {
    display: contents;
  }

  .about-copy > .eyebrow,
  .about-copy > h1,
  .about-copy > p {
    grid-column: 1;
  }

  .about-copy > .value-grid {
    order: 3;
  }

  .product-banner img {
    width: 100%;
  }

  .product-copy {
    left: 18px;
    bottom: 14px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 9px 14px;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    display: none;
  }

  .mobile-join-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2rem;
  }

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

  .office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .office-grid img {
    aspect-ratio: 1.35;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .benefit-item {
    min-height: 104px;
    padding: 12px 8px;
  }

  .benefit-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
  }

  .benefit-item h3 {
    margin-bottom: 3px;
    font-size: 0.86rem;
  }

  .benefit-item p {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .about-copy .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  .hero-photo img {
    aspect-ratio: 1.45;
  }

  .about-copy .value-card {
    min-height: 92px;
    aspect-ratio: 1.75;
    padding: 10px 8px;
  }

  .about-copy .value-card svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
  }

  .about-copy .value-card h2 {
    font-size: 0.86rem;
  }

  .about-copy .value-card p {
    font-size: 0.66rem;
  }

  .value-card,
  .benefit-item {
    min-height: auto;
  }

  .product-banner {
    width: min(100% - 28px, 1180px);
  }

  .product-copy a {
    min-width: 94px;
    min-height: 34px;
    padding: 7px 14px;
    font-size: 0.78rem;
    box-shadow: 0 8px 18px rgba(123, 47, 211, 0.22);
  }

  .job-card p {
    min-height: auto;
  }

  .footer-grid {
    padding-top: 34px;
  }
}
