:root {
  --bg: #fff9ef;
  --bg-soft: #f4eadb;
  --ink: #241a14;
  --muted: #736457;
  --line: #e6d7c3;
  --surface: rgba(255, 253, 248, 0.86);
  --surface-strong: #fffdf8;
  --accent: #b77737;
  --accent-dark: #70451f;
  --blue: #2d88b9;
  --line-green: #06c755;
  --shadow: 0 24px 70px rgba(79, 50, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 136, 185, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(183, 119, 55, 0.16), transparent 24rem),
    linear-gradient(135deg, #fffaf2 0%, #f9f0e4 48%, #fffdf8 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(112, 69, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 69, 31, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 78%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 58px 0 32px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding: clamp(28px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(112, 69, 31, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 236, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(28vw, 340px);
  height: 100%;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(45, 136, 185, 0.11)),
    linear-gradient(135deg, transparent 38%, rgba(183, 119, 55, 0.12));
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(45, 136, 185, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 237, 0.94));
  box-shadow: 0 18px 52px rgba(45, 136, 185, 0.13);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 4.18rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 .brand-line span {
  display: inline;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  font-weight: 500;
  line-height: 1.95;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  background: linear-gradient(135deg, var(--line-green), #10a84d);
  box-shadow: 0 16px 34px rgba(6, 199, 85, 0.25);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 20px 42px rgba(6, 199, 85, 0.29);
}

.primary-action:focus-visible,
.contact-item a:focus-visible {
  outline: 3px solid rgba(45, 136, 185, 0.35);
  outline-offset: 4px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 1.15fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(112, 69, 31, 0.13);
  border-radius: 22px;
  background: var(--line);
  box-shadow: 0 16px 44px rgba(79, 50, 25, 0.09);
}

.contact-item {
  min-width: 0;
  padding: 22px 24px;
  background: rgba(255, 253, 248, 0.82);
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-item a,
.contact-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  text-decoration-color: rgba(45, 136, 185, 0.42);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  color: var(--blue);
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(36, 26, 20, 0.54);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .site-shell {
    width: calc(100vw - 48px);
    max-width: 560px;
    min-height: auto;
    padding-top: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    padding: 28px 22px 30px;
    border-radius: 24px;
    text-align: center;
  }

  .hero::before {
    width: 100%;
    height: 42%;
  }

  .brand-mark {
    width: min(100%, 250px);
    border-radius: 24px;
  }

  .brand-mark img {
    border-radius: 18px;
  }

  .hero-copy {
    width: min(100%, 300px);
    justify-self: center;
    justify-items: center;
    gap: 20px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 7.35vw, 2.55rem);
    line-height: 1.14;
  }

  .hero-copy h1 .brand-line span {
    display: block;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .primary-action {
    width: 100%;
    max-width: 270px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .contact-item {
    padding: 19px 20px;
  }
}

@media (max-width: 420px) {
  .site-shell,
  .site-footer {
    width: calc(100vw - 32px);
    max-width: 560px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(1.72rem, 7.3vw, 1.92rem);
  }

  .contact-item a,
  .contact-item p {
    font-size: 0.96rem;
  }
}
