/* ZHONGHENG — light illustration layout (distinct from 环能 editorial) */

:root {
  --sky: #d9eefc;
  --mint: #def6ea;
  --paper: #eefaf4;
  --white: #ffffff;
  --ink: #1c4a4e;
  --muted: #5d7e7a;
  --line: #c5e6dc;
  --blue: #4aa8d8;
  --blue-deep: #3a9bc8;
  --lime: #6ec89a;
  --max: 1200px;
  --bar: 72px;
  --font: "Manrope", "Noto Sans TC", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="zh-Hans"] {
  --font: "Manrope", "Noto Sans SC", "Noto Sans TC", sans-serif;
}

html[lang="en"] {
  --font: "Manrope", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: #f7fcf9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header — white bar, not dark navy photo-site */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.head-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--lime) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-word strong {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.logo-word span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

html[lang="en"] .logo-word span {
  display: none;
}

.nav {
  display: flex;
  gap: 0.2rem 1.35rem;
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue-deep);
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.8rem;
}

.langs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.langs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.32rem 0.58rem;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.menu-btn {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

/* Home hero — text left, illustration right, no photo overlay */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: min(78vh, 640px);
  background: linear-gradient(135deg, var(--sky) 0%, var(--mint) 52%, var(--white) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 6vw, 5rem) clamp(1.4rem, 5vw, 4rem);
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--mint);
  color: #2d8a6a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  max-width: 12ch;
}

.hero .lead {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-art {
  min-height: 280px;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-fill {
  background: var(--blue);
  color: #fff;
}

.btn-fill:hover {
  background: var(--lime);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Four business tiles with thumbnails */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2.4rem 0 1rem;
}

.tile {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem 0.85rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.tile:hover {
  border-color: var(--blue);
}

.tile img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
}

.tile em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.tile h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.tile p {
  font-size: 0.9rem;
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.mosaic article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}

.mosaic img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.mosaic-copy {
  padding: 1.25rem 1.35rem 1.5rem;
}

.mosaic-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.mosaic-copy p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4fffb;
  padding: 3.2rem 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 155, 200, 0.78) 0%, rgba(110, 200, 154, 0.62) 100%);
}

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cta p {
  margin-top: 0.35rem;
  color: rgba(238, 248, 252, 0.75);
}

.cta .btn-fill {
  background: #fff;
  color: #2d8a6a;
}

.cta .btn-fill:hover {
  background: var(--mint);
  color: #1c4a4e;
}

/* Inner pages */
.intro {
  padding: 3rem 0 2.2rem;
  background: linear-gradient(120deg, var(--sky) 0%, var(--mint) 100%);
}

.intro h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  max-width: 16ch;
}

.intro .lead {
  margin-top: 0.85rem;
  max-width: 40rem;
  color: var(--muted);
}

.block {
  padding: 2.8rem 0 3.6rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
}

.split-copy p + p {
  margin-top: 0.95rem;
  color: var(--muted);
}

.facts {
  margin-top: 1.6rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--white);
}

.facts div {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.6rem;
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

.line:last-child {
  border-bottom: 1px solid var(--line);
}

.line:nth-child(even) .line-art {
  order: -1;
}

.line-idx {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.line h2 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.line p {
  color: var(--muted);
}

.line-art img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.contact-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
}

.contact-item {
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.contact-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-sheet img {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
}

.site-foot {
  padding: 1.7rem 0 1.9rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
}

.foot-brand strong {
  display: block;
  color: var(--ink);
}

.foot-nav {
  display: flex;
  gap: 1rem;
}

.foot-nav a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .bento,
  .mosaic,
  .split,
  .line,
  .contact-sheet {
    grid-template-columns: 1fr;
  }

  .line:nth-child(even) .line-art {
    order: 0;
  }

  .tile {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .tile img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--bar);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.2rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-art img,
  .mosaic img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .logo-word span {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
