:root {
  color-scheme: dark;
  --navy-950: #020b13;
  --navy-900: #061722;
  --cyan: #57e8ff;
  --teal: #41ead3;
  --text: #f4f8f7;
  --muted: #9eb5bc;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 72% 42%, rgba(19, 70, 92, .22), transparent 45%),
    linear-gradient(135deg, #020a12, #04131e 58%, #020a12);
}

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

.contact-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 14px clamp(24px, 3.2vw, 54px);
  border-bottom: 1px solid rgba(87, 232, 255, .22);
  background: rgba(2, 12, 20, .92);
  backdrop-filter: blur(14px);
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contact-brand img { width: 54px; height: 54px; object-fit: contain; }
.contact-brand span { display: grid; gap: 4px; }
.contact-brand strong { font-size: 20px; line-height: 1.1; }
.contact-brand small { color: var(--teal); font-size: 12px; letter-spacing: .04em; }

.contact-header nav { display: flex; align-items: center; gap: 12px; }

.contact-header nav a {
  padding: 12px 18px;
  border: 1px solid rgba(87, 232, 255, .18);
  border-radius: 6px;
  color: #c5d3d5;
  font-size: 14px;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.contact-header nav a:hover,
.contact-header nav a:focus-visible,
.contact-header nav a.active {
  border-color: rgba(87, 232, 255, .68);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(87, 232, 255, .14);
}

.contact-page {
  display: grid;
  min-height: calc(100svh - 88px);
  padding: clamp(34px, 5vh, 68px) clamp(28px, 4.2vw, 72px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(560px, 1.52fr);
  gap: clamp(38px, 4.5vw, 78px);
  align-items: center;
  width: min(1540px, 100%);
  margin: auto;
}

.contact-details { display: grid; gap: 30px; }

h1 {
  margin: 0;
  font-size: clamp(48px, 4.2vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-english {
  margin: 12px 0 0;
  color: #7edff0;
  font-size: clamp(19px, 1.7vw, 28px);
  letter-spacing: .025em;
}

.company-address { display: grid; gap: 0; font-style: normal; }

.contact-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(87, 232, 255, .22);
  color: #eef7f8;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
}

.contact-line img {
  width: 56px;
  height: 56px;
  padding: 13px;
  border: 1px solid rgba(87, 232, 255, .55);
  border-radius: 5px;
  background: rgba(5, 28, 42, .74);
  filter: drop-shadow(0 0 10px rgba(87, 232, 255, .2));
}

.contact-line b { display: block; margin-bottom: 3px; color: var(--cyan); font-size: 14px; }
.phone-line:hover, .phone-line:focus-visible { color: var(--cyan); }

.contact-actions { display: grid; gap: 14px; }

.contact-action,
.map-open {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 12px 18px;
  border: 1px solid rgba(87, 232, 255, .65);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(5, 30, 45, .86), rgba(2, 12, 21, .72));
  box-shadow: inset 0 0 22px rgba(87, 232, 255, .04), 0 0 16px rgba(87, 232, 255, .1);
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-action > img,
.map-open > img { width: 44px; height: 48px; object-fit: contain; }

.contact-action > svg,
.map-open > svg,
.back-link svg {
  width: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action:hover,
.contact-action:focus-visible,
.map-open:hover,
.map-open:focus-visible {
  transform: translateY(-2px);
  border-color: #aaf6ff;
  box-shadow: inset 0 0 28px rgba(87, 232, 255, .08), 0 0 24px rgba(87, 232, 255, .24);
  outline: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(87, 232, 255, .4);
  border-radius: 6px;
  color: var(--cyan);
}

.map-panel {
  position: relative;
  min-height: clamp(540px, 69vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(87, 232, 255, .72);
  border-radius: 7px;
  background: #071724;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 24px rgba(87, 232, 255, .12);
}

.map-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(2, 13, 22, .5);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  filter: none;
}

.map-open {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100% - 48px));
  min-height: 72px;
  background: rgba(2, 13, 22, .93);
  backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .map-panel { min-height: 520px; }
}

@media (max-width: 720px) {
  .contact-header { min-height: 74px; padding: 10px 18px; }
  .contact-brand img { width: 44px; height: 44px; }
  .contact-brand strong { font-size: 16px; }
  .contact-brand small { font-size: 10px; }
  .contact-header nav a:not(.active) { display: none; }
  .contact-header nav a { padding: 10px 12px; font-size: 13px; }
  .contact-page { min-height: calc(100svh - 74px); padding: 30px 18px 42px; }
  .contact-layout { gap: 34px; }
  .contact-details { gap: 22px; }
  h1 { font-size: 46px; }
  .contact-line { grid-template-columns: 52px 1fr; gap: 14px; font-size: 14px; }
  .contact-line img { width: 48px; height: 48px; padding: 11px; }
  .contact-action { grid-template-columns: 44px 1fr 22px; min-height: 72px; padding: 10px 14px; font-size: 16px; }
  .contact-action > img { width: 38px; height: 42px; }
  .map-panel { min-height: 430px; }
  .map-open { right: 14px; bottom: 14px; width: calc(100% - 28px); min-height: 64px; }
}
