/* Cache — 企业官网。深色头图 + 象牙色正文，充电桩安装为主叙事 */

:root {
  --ink: #141714;
  --muted: #5e655f;
  --paper: #f3efe6;
  --white: #faf8f3;
  --line: #e2dacb;
  --night: #101412;
  --night-2: #1a211e;
  --cream: #f3efe6;
  --brass: #d6b57a;
  --brass-2: #f0e2c4;
  --page: 1120px;
  --gutter: max(22px, calc((100vw - var(--page)) / 2));
  --top: 74px;
  font-family: "Noto Sans Thai", "Source Sans 3", "Leelawadee UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: "Noto Serif Thai", "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.2;
}
:lang(en) h1, :lang(en) h2 {
  font-family: "Cormorant Garamond", "Noto Serif Thai", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.kicker {
  color: var(--brass);
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:lang(th) .kicker { letter-spacing: 0.04em; text-transform: none; font-size: 14px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  color: var(--cream);
  background: rgba(16, 20, 18, 0.92);
  border-bottom: 1px solid rgba(214, 181, 122, 0.22);
  backdrop-filter: blur(16px);
}
.topbar__in, .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.topbar__in { width: 100%; display: flex; align-items: center; gap: 22px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.mark {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; }
.brand__short { display: none; }
@media (max-width: 720px) {
  .brand__full { display: none; }
  .brand__short { display: inline; }
}
.nav-links { display: none; gap: 22px; }
.nav-links a { text-decoration: none; color: rgba(243, 239, 230, 0.72); font-size: 14px; letter-spacing: 0.04em; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--cream); }
.nav-links a.is-active { color: var(--brass-2); box-shadow: inset 0 -1px 0 var(--brass); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: flex; border: 1px solid rgba(243, 239, 230, 0.2); }
.lang button {
  border: 0;
  background: transparent;
  color: rgba(243, 239, 230, 0.7);
  padding: 6px 11px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brass); color: var(--night); }
.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  background: transparent;
  color: var(--cream);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 16px; height: 1px; background: var(--cream); }

@media (max-width: 859px) {
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--top);
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--night);
    border-bottom: 1px solid rgba(214, 181, 122, 0.25);
  }
  .nav-open .nav-links a { padding: 12px 0; font-size: 17px; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--top));
  display: grid;
  align-items: start;
  background: var(--night);
  color: var(--cream);
}
/* 慢移的黄铜光带，只在首屏背后走，不盖住正文 */
.hero-beam {
  position: absolute;
  z-index: 0;
  width: 46%;
  height: 130%;
  right: 4%;
  top: -16%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(214, 181, 122, 0.2) 46%, transparent 78%);
  filter: blur(26px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}
.hero-copy,
.hero-art { position: relative; z-index: 1; }
.hero-copy {
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 820px 是文案内容宽。页边距写在 max-width 之外，否则宽屏下左右 gutter 会把内容挤成 0 */
  max-width: calc(820px + 2 * var(--gutter));
  min-width: 0;
}
.hero .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 5.6vw, 84px);
  max-width: 8.6em;
  line-height: 1.12;
  color: #f7f3ea;
}
.hero__en {
  margin-top: 22px;
  color: var(--brass-2);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.hero__lead {
  margin-top: 14px;
  max-width: 34rem;
  color: rgba(243, 239, 230, 0.68);
  font-size: 16.5px;
  line-height: 1.75;
}
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(214, 181, 122, 0.22);
  list-style: none;
}
.hero-meta small {
  display: block;
  color: rgba(243, 239, 230, 0.46);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:lang(th) .hero-meta small { letter-spacing: 0; text-transform: none; font-size: 13px; }
.hero-meta b {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
}
.mail {
  display: inline-flex;
  margin-top: 26px;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 181, 122, 0.55);
  width: max-content;
  padding-bottom: 3px;
}
.mail:hover { color: #fff; border-color: #fff; }
.hero-art {
  display: grid;
  place-items: center;
  order: -1;
  padding: 28px var(--gutter) 4px;
  min-width: 0;
}
/* 圆环跟桩画在同一盒子里。窄屏先出小图，宽屏再按右栏放大 */
.charger {
  position: relative;
  width: 140px;
  display: grid;
  place-items: center;
}
.charger::before,
.charger::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.charger::before {
  width: 148%;
  aspect-ratio: 1;
  top: 0;
  border: 1px solid rgba(214, 181, 122, 0.32);
  box-shadow: 0 0 0 18px rgba(214, 181, 122, 0.05);
}
.charger::after {
  width: 108%;
  aspect-ratio: 1;
  top: 10%;
  background: radial-gradient(circle, rgba(214, 181, 122, 0.16), transparent 68%);
}
.charger img {
  position: relative;
  z-index: 1;
  height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* 实拍只作首屏点缀，投影把它从深色底上托起来 */
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }
  .hero-copy { order: 0; }
  .hero-art { order: 0; }
  /* 右页边距属于插画那一列，文案栏只留间距，避免宽屏下左侧栏被两侧 gutter 吃光 */
  .hero-copy {
    padding: 72px 40px 72px var(--gutter);
    max-width: calc(760px + var(--gutter) + 40px);
  }
  .hero-art {
    padding: 32px var(--gutter) 32px 8px;
    container-type: inline-size;
  }
  .charger { width: min(190px, 46cqw); }
  .charger img { height: min(52vh, 460px); }
  .hero-meta {
    grid-template-columns: auto auto minmax(0, 1.3fr);
    gap: 28px 36px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-beam { animation: hero-beam 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .charger img { animation: charger-float 6.5s ease-in-out infinite; }
  .charger::before { animation: ring-breathe 8s ease-in-out infinite alternate; }
}
@keyframes hero-beam {
  from { transform: translate3d(0, 0, 0) rotate(8deg); }
  to { transform: translate3d(-8%, 6%, 0) rotate(14deg); }
}
@keyframes charger-float {
  50% { transform: translateY(-12px); }
}
@keyframes ring-breathe {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.06); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 88px 0; }
.section h2 { font-size: clamp(34px, 4.5vw, 58px); max-width: 14em; }
.lede { margin-top: 16px; max-width: 40rem; color: var(--muted); font-size: 18px; }

/* EV */
.ev { background: var(--paper); }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 12px;
  align-items: start;
}
.steps em {
  grid-row: 1 / span 2;
  font-family: "Cormorant Garamond", serif;
  font-variant-numeric: lining-nums;
  font-style: normal;
  font-size: 28px;
  color: #8d7044;
  line-height: 1;
}
.steps h3,
.steps p { grid-column: 2; min-width: 0; }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 6px; color: var(--muted); line-height: 1.7; }
@media (min-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    border-top: 0;
  }
  .steps li {
    display: block;
    padding: 8px 0 32px;
    border-bottom: 1px solid var(--line);
  }
  .steps em { display: block; font-size: 42px; margin-bottom: 16px; }
  .steps em::after {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    margin-top: 12px;
    background: #8d7044;
  }
  .steps h3 { font-size: 28px; }
  .steps p { max-width: 36em; }
}
@media (min-width: 1180px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .steps li { border-bottom: 0; padding: 8px 32px 12px 0; }
  .steps li + li { box-shadow: inset 1px 0 0 var(--line); padding-left: 32px; }
}

.places {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.places article {
  padding: 22px 20px 18px;
  background: var(--white);
  border: 1px solid var(--line);
}
.places h3 { font-size: 22px; }
.places p { margin-top: 8px; color: var(--muted); line-height: 1.65; }
@media (min-width: 800px) {
  .places { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .places article { padding: 26px 24px 22px; min-height: 100%; }
}

.split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
}
.sheet {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
}
.sheet div {
  display: grid;
  gap: 2px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}
.sheet div:first-child { border-top: 0; }
.sheet dt { color: var(--muted); font-size: 13px; }
.sheet dd { margin: 0; font-weight: 600; }
@media (min-width: 700px) {
  .sheet div { grid-template-columns: 168px 1fr; gap: 16px; align-items: baseline; }
}
.note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.note a { color: #8d7044; }

.scope {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
}
.scope li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.scope em { font-style: normal; color: #8d7044; font-weight: 700; }
.scope h3 { font-family: "Noto Sans Thai", sans-serif; font-size: 17px; font-weight: 650; }
.scope p { color: var(--muted); margin-top: 4px; }
@media (min-width: 800px) {
  .scope { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

.office {
  background: var(--night);
  color: var(--cream);
}
.office .lede { color: rgba(243, 239, 230, 0.7); }
.office .btn {
  display: inline-flex;
  margin-top: 26px;
  padding: 12px 16px;
  background: var(--brass);
  color: var(--night);
  text-decoration: none;
  font-weight: 700;
}
.office .btn:hover { background: #fff; }
.office-grid { display: grid; gap: 32px; }
@media (min-width: 860px) {
  .office-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
}
.addr-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .addr-list { grid-template-columns: 1fr 1fr; } }
.addr {
  border: 1px solid rgba(214, 181, 122, 0.28);
  padding: 18px 18px 16px;
  min-height: 100%;
}
.addr h3 { font-family: "Noto Sans Thai", sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
:lang(th) .addr h3 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.addr address { margin-top: 10px; font-style: normal; font-weight: 600; line-height: 1.5; }
.addr .maplink { display: inline-block; margin-top: 14px; color: var(--brass-2); font-size: 14px; }

.footer { padding: 26px 0 36px; color: var(--muted); font-size: 14px; background: var(--night); color: rgba(243, 239, 230, 0.55); border-top: 1px solid rgba(214, 181, 122, 0.15); }
.footer a { color: var(--brass-2); }
.footer__in { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
