/* 霖致有限公司 官方網站樣式 */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-tint: #e8f0f8;
  --line: #dde4ec;
  --ink: #1e2a38;
  --ink-soft: #4a5868;
  --brand: #1f4e79;
  --brand-dark: #173b5c;
  --accent: #c2551a;
  --accent-dark: #a54612;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(31, 78, 121, 0.08);
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Noto Sans TC", "Heiti TC", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

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

a {
  color: var(--brand);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  color: var(--brand-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.05rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

/* 換行落在標點處：每個片語是一個單位，過長時在片語內平均折行 */
p,
li,
dd {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.phrase {
  display: inline-block;
  text-wrap: balance;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* 按鈕 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-sm {
  min-height: 46px;
  padding: 8px 22px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link img {
  width: 20px;
  height: 20px;
}

/* 頁首 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 48px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-zh {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-zh {
  margin-right: -0.06em;
}

.brand-en {
  font-size: 0.89rem;
  color: var(--ink-soft);
}

/* 英文名稱逐字分散，與中文公司名同寬 */
.brand-en-spread {
  display: flex;
  justify-content: space-between;
}

.brand-en-spread .gap {
  width: 0.2em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:not(.btn) {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  background: var(--bg-soft);
  color: var(--brand);
}

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-radius: 0;
}

.site-nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-dark);
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* 首頁主視覺 */

.hero {
  position: relative;
  background-color: var(--bg-tint);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.95) 44%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 78%),
    url("../img/hero.svg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  padding-top: 110px;
  padding-bottom: 120px;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  background: var(--bg-tint);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* 內頁標題區 */

.page-hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  padding-top: 64px;
  padding-bottom: 56px;
}

.page-hero h1 {
  margin-bottom: 0.3em;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0;
}

/* 區塊 */

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

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

.card {
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-soft);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  background: var(--bg-tint);
  border-radius: 16px;
}

.icon-badge img {
  width: 34px;
  height: 34px;
}

/* 圖文並排 */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-tint);
  box-shadow: var(--shadow);
}

.split.reverse .split-media {
  order: 2;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check-list li {
  position: relative;
  padding-left: 38px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 26px;
  height: 26px;
  background: url("../icons/check.svg") center / contain no-repeat;
}

/* 流程 */

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.steps h3 {
  margin-bottom: 0.3em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* 色塊橫幅 */

.band {
  background: var(--bg-tint);
}

.band .split-media img {
  box-shadow: none;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin-bottom: 0.2em;
}

.cta p {
  margin: 0;
  color: var(--ink-soft);
}

.cta .btn-row {
  margin-top: 0;
}

/* 資料表 */

.info-list {
  display: grid;
  grid-template-columns: 9em 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-list dt,
.info-list dd {
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  background: var(--bg-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.info-list dt:last-of-type,
.info-list dd:last-of-type {
  border-bottom: 0;
}

/* 聯絡資訊 */

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list img {
  width: 24px;
  height: 24px;
  margin-top: 0.22em;
  flex: none;
}

.contact-list a {
  text-decoration: none;
  font-weight: 700;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-card .contact-list {
  gap: 0;
}

.contact-card .contact-list li {
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card .contact-list li:first-child {
  padding-top: 0;
}

.contact-card .contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card .contact-list .icon-badge {
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 14px;
  flex: none;
}

.contact-card .contact-list .icon-badge img {
  width: 28px;
  height: 28px;
  margin: 0;
}

.contact-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

/* 職缺 */

.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.job + .job {
  margin-top: 22px;
}

.job summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
}

.job summary::-webkit-details-marker {
  display: none;
}

.job summary h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.job-meta {
  margin: 0;
  color: var(--ink-soft);
}

.job-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg-tint);
  border-radius: 50%;
  flex: none;
  transition: transform 0.2s;
}

.job-toggle img {
  width: 24px;
  height: 24px;
}

.job[open] .job-toggle {
  transform: rotate(180deg);
}

.job-body {
  padding: 4px 32px 34px;
  border-top: 1px solid var(--line);
}

.job-body h4 {
  margin: 26px 0 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.job-body .check-list {
  margin-top: 12px;
}

/* 應徵表單 */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-weight: 700;
}

.optional {
  margin-left: 10px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #b3c7db;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(31, 78, 121, 0.2);
  outline-offset: 0;
}

.file-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid #b3c7db;
  border-radius: 10px;
}

.field .file-input {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.field .file-button {
  margin: 0;
  padding: 8px 20px;
  background: var(--bg-tint);
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  flex: none;
}

.file-input:focus-visible + .file-button {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.file-name {
  min-width: 0;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name.is-picked {
  color: var(--ink);
  font-weight: 700;
}

.form .hint {
  margin: 8px 0 0;
  font-size: 0.89rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  cursor: pointer;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 0.28em 0 0;
  accent-color: var(--brand);
  flex: none;
}

.form .form-status {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
}

.form .form-status.is-info {
  background: var(--bg-tint);
  color: var(--brand-dark);
}

.form .form-status.is-success {
  background: #e6f4ea;
  color: #1e5a32;
}

.form .form-status.is-error {
  background: #fdeee6;
  color: #8a3a0e;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.apply-alt {
  margin: 26px 0 0;
  color: var(--ink-soft);
}

.apply-alt a {
  font-weight: 700;
}

/* 地圖 */

.map-frame {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* 頁尾 */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-inner h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.footer-about p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.footer-nav {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.footer-bottom p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* 動態效果 */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > *,
.page-hero .container > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2),
.page-hero .container > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.36s;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.site-header {
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(31, 78, 121, 0.1);
}

article.card,
.steps li {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

article.card:hover,
.steps li:hover {
  transform: translateY(-5px);
  border-color: #b3c7db;
  box-shadow: 0 14px 34px rgba(31, 78, 121, 0.14);
}

.icon-badge {
  transition: transform 0.3s ease;
}

article.card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
}

.btn img,
.text-link img {
  transition: transform 0.2s ease;
}

.btn:hover img,
.text-link:hover img {
  transform: translateX(4px);
}

.btn-primary {
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194, 85, 26, 0.28);
}

/* 平板 */

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse .split-media {
    order: 0;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(31, 78, 121, 0.1);
  }

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

  .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.1rem;
  }

  .site-nav a[aria-current="page"]:not(.btn) {
    box-shadow: inset 4px 0 0 var(--accent);
  }

  .site-nav .btn {
    margin: 10px 0 0;
  }
}

/* 手機 */

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.93) 65%, rgba(255, 255, 255, 0.8) 100%),
      url("../img/hero.svg");
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .page-hero .container {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .grid-2,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .map-frame iframe {
    height: 340px;
  }

  .card {
    padding: 28px 24px;
  }

  .btn-row .btn {
    width: 100%;
  }

  .cta {
    padding: 32px 24px;
  }

  .cta .btn-row {
    width: 100%;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .info-list dt {
    padding-bottom: 6px;
    border-bottom: 0;
    background: #fff;
    color: var(--ink-soft);
    font-size: 0.95rem;
  }

  .info-list dd {
    padding-top: 0;
    font-weight: 700;
  }

  .job summary {
    padding: 22px 20px;
  }

  .job-body {
    padding: 0 20px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }

  .brand-zh {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
