/* =========================================================
   企业官网 / 기업 웹사이트  —  style.css
   - 운영체제 기본 한중문 글꼴 사용 (외부 CDN 요청 없음)
   - CSS 변수로 브랜드 색상/폰트 한 곳에서 관리
   ========================================================= */

:root {
  color-scheme: light;
  /* 主色蓝 / 点缀金 — 하이라이트 #D9C595 · 기본 #AE9C72 · 그림자 #8C7749 */
  --color-primary: #0b3d91;
  --color-primary-2: #1659c7;
  --color-accent: #AE9C72;
  --color-accent-2: #8C7749;
  --color-accent-hover: #c9b681;
  --color-accent-soft: #f3ecdc;
  --color-contact-label: #75613a;
  --color-on-accent: #1a1816;
  --color-silver: #8c8c8c;
  --color-heading: #102a52;
  --color-surface: #f0ece6;
  --color-header-bg: rgba(240, 236, 230, .94);
  --color-control-bg: rgba(245, 241, 236, .96);
  --color-modal-bg: #f0ece6;
  --color-highlight: rgba(255, 255, 255, .4);

  --color-text: #1a1816;
  --color-text-soft: #3f3b36;
  --color-bg: #ebe6de;
  --color-bg-alt: #e0dad0;
  --color-border: #bdb5a8;
  --color-separator: #ccc5b8;
  --color-control-border: #8f877a;
  --color-focus: #102a52;
  --color-selection-bg: #102a52;
  --color-on-selection: #f7f3ed;
  --color-success: #2f6b3a;
  --color-danger: #a01218;
  --color-footer: #1a2330;
  --color-footer-text: rgba(255, 255, 255, .65);
  --color-footer-strong: #ffffff;
  --color-footer-muted: rgba(255, 255, 255, .65);
  --color-footer-line: rgba(255, 255, 255, .12);

  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 6px 16px rgba(40, 35, 28, .1);
  --shadow-sm: 0 2px 8px rgba(40, 35, 28, .08);
  --container: 1140px;

  /* 浅色英雄区 — 대비 확보 */
  --hero-bg: linear-gradient(180deg, #ebe6de, #d5deeb);
  --hero-text: #102a52;
  --hero-subtitle: #3a3732;
  --hero-eyebrow: #8C7749;
  --hero-overlay: none;
  --hero-rule: var(--color-accent);
  --map-route: #8C7749;
  --sketch-grad-a: #D9C595;
  --sketch-grad-b: #0b3d91;
  --sketch-grad-c: #8C7749;

  --font-sans: "Noto Sans KR Variable", "Noto Sans SC Variable", "Apple SD Gothic Neo", "PingFang SC", "Malgun Gothic", "Microsoft YaHei", sans-serif;
  --font-ko: "Noto Sans KR Variable", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-zh: "Noto Sans SC Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 다크 모드 ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #3c89e8;
  --color-primary-2: #69b1ff;
  --color-heading: #f2f4f7;
  --color-text: #e8eaed;
  --color-text-soft: #a8adb4;
  --color-bg: #111214;
  --color-bg-alt: #181a1e;
  --color-surface: #1a1c20;
  --color-border: #2c3036;
  --color-separator: #24272c;
  --color-control-border: #3a3f46;
  --color-accent: #D9C595;
  --color-accent-2: #AE9C72;
  --color-accent-hover: #AE9C72;
  --color-accent-soft: #2a261c;
  --color-contact-label: #D9C595;
  --color-on-accent: #1a1816;
  --color-focus: #3c89e8;
  --color-selection-bg: #1668dc;
  --color-on-selection: #ffffff;
  --color-success: #73d13d;
  --color-danger: #ef9a9a;
  --color-header-bg: rgba(17, 18, 20, .96);
  --color-control-bg: #1a1c20;
  --color-modal-bg: #1a1c20;
  --color-highlight: rgba(255, 255, 255, .06);
  --color-footer: #0a0c10;
  --color-footer-text: #9aa0a8;
  --color-footer-strong: #ffffff;
  --color-footer-muted: #9aa0a8;
  --color-footer-line: #1e2430;
  --shadow: 0 2px 12px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 6px rgba(0, 0, 0, .35);

  --hero-bg: linear-gradient(180deg, #111214 0%, #0b1528 60%, #111214 100%);
  --hero-text: #f2f4f7;
  --hero-subtitle: #c8cdd3;
  --hero-eyebrow: #D9C595;
  --hero-overlay: none;
  --hero-rule: #D9C595;
  --map-route: #AE9C72;
  --sketch-grad-a: #D9C595;
  --sketch-grad-b: #7ec4ff;
  --sketch-grad-c: #8C7749;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lang-loading body { visibility: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(200, 22, 29, .1);
}

/* 중·한 타이포 공통 (크기·자간·줄간격 맞춤) */
html[lang="ko"] body,
html[lang^="zh"] body {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .015em;
}
html[lang="ko"] body {
  font-family: var(--font-ko);
  word-break: keep-all;
}
html[lang^="zh"] body {
  font-family: var(--font-zh);
}
html[lang="ko"] .map-city-name,
html[lang="ko"] .map-city-country {
  font-family: var(--font-ko);
}
html[lang^="zh"] .map-city-name,
html[lang^="zh"] .map-city-country {
  font-family: var(--font-zh);
}
html[lang="ko"] [lang^="zh"],
html[lang="ko"] .is-zh-text {
  font-family: var(--font-zh);
  word-break: normal;
}
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .doc-title,
html[lang="ko"] .section-title,
html[lang="ko"] .hero-title,
html[lang="ko"] .brand-name,
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] .doc-title,
html[lang^="zh"] .section-title,
html[lang^="zh"] .hero-title,
html[lang^="zh"] .brand-name {
  font-weight: 600;
  letter-spacing: .01em;
}
html[lang="ko"] .hero-title,
html[lang^="zh"] .hero-title { word-break: keep-all; }

main { flex: 1; }
.home-main { display: flex; }
.home-main .hero { flex: 1; width: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (max-width: 860px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- 공통 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  min-height: 44px;
  touch-action: manipulation;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: none;
  letter-spacing: .06em;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: none;
  box-shadow: none;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; min-height: 46px; gap: 8px; font-weight: 700; }
.brand-logo { height: 46px; width: auto; display: block; }
/* 글자 마크는 로고 이미지 로딩 실패 시에만 JS가 표시 (기본 숨김) */
.brand-mark {
  display: none;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 800;
  font-size: 18px;
}
.brand-logo.is-failed { display: none; }
.brand-mark.is-visible { display: inline-grid; }
.brand-name { display: inline-flex; align-items: center; min-height: 46px; font-size: 17px; line-height: 1.3; color: var(--color-heading); letter-spacing: .01em; font-weight: 600; }
:root[data-theme="dark"] .brand-name { color: var(--color-footer-strong); }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width .25s ease;
}
.nav a:hover { color: var(--color-heading); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--color-heading); font-weight: 600; }
.nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--color-control-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-control-bg);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  touch-action: manipulation;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.lang-btn[lang="ko"] { font-family: var(--font-ko); }
.lang-btn[lang^="zh"] { font-family: var(--font-zh); }
.lang-btn:active { transform: scale(.96); }
.lang-btn.is-active { background: var(--color-selection-bg); color: var(--color-on-selection); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--color-control-border);
  border-radius: 9px;
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--color-heading);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  color: var(--hero-text);
  background: var(--hero-bg);
  overflow: hidden;
  display: flex;
  align-items: center;            /* 세로 중앙정렬 */
  min-height: clamp(520px, 72vh, 700px); /* 언어별 줄수 차이로 푸터가 밀리지 않도록 높이 고정 */
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 4vw, 60px);
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero-copy {
  padding: 28px 0 30px 38px;
  border-left: 1px solid var(--hero-rule);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--hero-eyebrow);
  margin: 0 0 18px;
  text-transform: none;
}
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.32;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--color-heading);
  text-wrap: balance;
}
/* 한국어: 중문과 동일한 굵기·크기 유지, 줄바꿈만 보정 */
html[lang="ko"] .hero-title,
html[lang="ko"] .hero-subtitle {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: unset;
}
html[lang="ko"] .hero-title {
  white-space: normal;
  text-wrap: wrap;
  line-height: 1.32;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}
html[lang^="zh"] .hero-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.32;
}
html[lang="ko"] .hero-subtitle,
html[lang^="zh"] .hero-subtitle {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.9;
  letter-spacing: .01em;
}
/* 한국어 제목: 1줄 / 2줄 강제 분리 */
html[lang="ko"] .hero-title-l1,
html[lang="ko"] .hero-title-l2 {
  display: block;
}
html[lang="ko"] .hero-title wbr { display: none; }
html[lang^="zh"] .hero-title-l1,
html[lang^="zh"] .hero-title-l2 {
  display: inline;
}
html[lang="ko"] .hero-subtitle { max-width: none; }
html[lang="ko"] .hero-subtitle > span,
html[lang^="zh"] .hero-subtitle > span {
  position: relative;
  z-index: 0;
  white-space: pre-line;
  font-weight: 500;
  /* 밑줄이 앞에 있어도 획이 또렷하게 남도록 */
  text-shadow:
    0 0 .5px var(--color-bg),
    0 .5px 0 var(--color-bg),
    0 -.5px 0 var(--color-bg);
}
html[lang="ko"] .hero-subtitle > span { white-space: pre; }
.hero-subtitle {
  margin: 0 0 32px;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .01em;
  max-width: 36rem;
  color: var(--hero-subtitle);
  position: relative;
  display: inline-block;
  width: fit-content;
  text-wrap: pretty;
  padding-bottom: 2px;
}
.hero-subtitle-sketch {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.sketch-grad-a { stop-color: var(--sketch-grad-a); }
.sketch-grad-b { stop-color: var(--sketch-grad-b); }
.sketch-grad-c { stop-color: var(--sketch-grad-c); }
.sketch-line {
  fill: none;
  stroke: url(#sketchGrad);
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* 하이라이터처럼: 앞에 두되 글자가 비치게 */
  opacity: .62;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .08));
}
:root[data-theme="dark"] .sketch-line {
  opacity: .7;
  mix-blend-mode: soft-light;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .22))
    drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}
html[lang="ko"] .sketch-line-zh,
html[lang^="zh"] .sketch-line-ko { display: none; }
.sketch-reveal { width: 0; }
html.theme-ready .sketch-reveal-first {
  animation: sketch-underline 1.1s cubic-bezier(.22, .8, .28, 1) forwards;
}
html.theme-ready .sketch-reveal-second {
  animation: sketch-underline 1.1s cubic-bezier(.22, .8, .28, 1) 1s forwards;
}
/* 한국어 2행: 「지원합니다.」까지만 */
html[lang="ko"].theme-ready .sketch-reveal-second {
  animation-name: sketch-underline-ko-second;
}
/* 중문: 1행·2행 문장 길이에 맞춤 */
html[lang^="zh"].theme-ready .sketch-reveal-first {
  animation-name: sketch-underline-zh-first;
}
html[lang^="zh"].theme-ready .sketch-reveal-second {
  animation-name: sketch-underline-zh-second;
}
@keyframes sketch-underline {
  to { width: 100px; }
}
@keyframes sketch-underline-ko-second {
  to { width: 84px; }
}
@keyframes sketch-underline-zh-first {
  to { width: 70px; }
}
@keyframes sketch-underline-zh-second {
  to { width: 96px; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 칭다오-서울 연결 지도 */
.hero-map {
  min-width: 0;
  width: min(100%, 520px);
  margin: 0;
  justify-self: end;
}
.route-map { display: block; width: 100%; height: auto; }
.map-route-glow {
  fill: none;
  stroke: var(--map-route);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: .2;
}
.map-route {
  fill: none;
  stroke: var(--map-route);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: .048 .02;
}
.map-route-pulse {
  fill: none;
  stroke: var(--map-route);
  stroke-width: 2.2;
  transform-origin: 88px 178px;
  animation: map-pulse 2.2s ease-out infinite;
}
.map-route-pulse-end { transform-origin: 314px 115px; animation-delay: 1.2s; }
.map-city-point, .map-route-marker { fill: var(--map-route); }
.map-city-label {
  fill: var(--hero-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.map-city-name { font-size: 13px; font-weight: 700; }
.map-city-country {
  font-size: 10px;
  font-weight: 600;
  fill: var(--hero-subtitle);
  opacity: 1;
  letter-spacing: .04em;
}
@keyframes map-pulse {
  0% { opacity: .8; transform: scale(.35); }
  80%, 100% { opacity: 0; transform: scale(1.15); }
}

/* ============ 문서 페이지 (营业执照 등 별도 페이지) ============ */
.doc-page { padding: 56px 0 96px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-bottom: 28px;
  transition: color .2s ease;
}
.back-link:hover { color: var(--color-heading); }
.doc-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 32px;
}
.doc-figure { margin: 0; }
.doc-figure img {
  max-width: 560px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ============ SECTION 공통 ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 48px;
  letter-spacing: -.5px;
}

/* ---------- About (서술형) ---------- */
.lead { font-size: 19px; line-height: 1.75; }
#about p { max-width: 64ch; margin: 0 0 16px; font-size: 17px; color: var(--color-text-soft); }
#about .lead { font-size: 19px; color: var(--color-text); }
#about p:last-child { margin-bottom: 0; }

/* ---------- Services (목록형) ---------- */
.service-list { display: flex; flex-direction: column; }
.service {
  display: flex;
  gap: 22px;
  padding: 26px 2px;
  border-top: 1px solid var(--color-border);
}
.service:last-child { border-bottom: 1px solid var(--color-border); }
.service-icon { flex: none; color: var(--color-accent); padding-top: 2px; }
.service-icon svg { width: 30px; height: 30px; display: block; }
.service-body h3 { margin: 0 0 6px; font-size: 19px; color: var(--color-heading); }
.service-body p { margin: 0; font-size: 15px; color: var(--color-text-soft); max-width: 64ch; }

/* ---------- Strengths ---------- */
.strengths-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.strength { border-top: 2px solid var(--color-accent); padding-top: 16px; }
.strength h3 { font-size: 18px; color: var(--color-heading); margin: 0 0 8px; }
.strength p { font-size: 15px; color: var(--color-text-soft); margin: 0; }

/* ---------- Contact (간단: 버튼 → 모달) ---------- */
.contact-block { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-lead { font-size: 17px; color: var(--color-text-soft); margin: 0 0 28px; }

/* 연락처 모달 (이메일 + 위챗) */
.modal-box-contact { max-width: 500px; }
.contact-modal-header {
  padding-right: 48px;
  margin-bottom: 24px;
}
.contact-method {
  color: var(--color-text);
  border-radius: 0;
}
.contact-method-email {
  display: block;
  padding: 15px 0 16px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: color .18s ease, border-color .18s ease;
}
.contact-method-email:hover { color: var(--color-heading); border-color: var(--color-control-border); }
.contact-method-text { display: grid; gap: 4px; text-align: left; }
.contact-channel-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
  letter-spacing: 0;
}
.contact-method .js-email {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: inherit;
  word-break: break-all;
}
.contact-method-wechat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: start;
  gap: 28px;
  padding-top: 24px;
}
.contact-wechat-copy { display: grid; gap: 8px; padding-top: 3px; }
.modal-box img.contact-qr {
  width: 176px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 2px;
}
.contact-method-sub { font-size: 13px; line-height: 1.65; color: var(--color-text-soft); }

/* ============ FOOTER ============ */
.site-footer {
  --footer-body-size: 14px;
  --footer-body-weight: 400;
  --footer-brand-size: 17px;
  --footer-brand-weight: 600;
  background: var(--color-footer);
  color: var(--color-footer-text);
  font-size: var(--footer-body-size);
  font-weight: var(--footer-body-weight);
  line-height: 1.5;
  letter-spacing: 0;
  scroll-margin-top: 90px;
}
/* 푸터 본체 폭 한정 */
.site-footer .container { max-width: 980px; }
.footer-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 32px;
  padding: 18px 24px 20px;
}
.footer-company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 690px;
  min-width: 0;
  gap: 3px 14px;
  flex-shrink: 0;
}
.footer-follow { display: flex; align-items: center; align-self: flex-start; min-height: 44px; width: auto; margin-left: auto; gap: 12px; flex-shrink: 0; }
.site-footer .footer-brand { display: block; font-size: var(--footer-brand-size); font-weight: var(--footer-brand-weight); line-height: 1.5; color: var(--color-footer-strong); margin-bottom: 6px; }
.site-footer .footer-fullname { margin: 0; color: var(--color-footer-text); font-size: var(--footer-body-size); font-weight: var(--footer-body-weight); line-height: 1.5; }
.footer-col-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-footer-strong);
  margin-bottom: 0;
}
.footer-meta { display: flex; flex-wrap: wrap; min-width: 0; gap: 2px 18px; }
.site-footer .footer-meta li { margin: 0; font-size: var(--footer-body-size); font-weight: var(--footer-body-weight); line-height: 1.5; }
.footer-separator { white-space: pre; }
.footer-meta a:hover { color: var(--color-footer-strong); text-decoration: underline; }
.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--color-footer-text);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--color-footer-strong); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.footer-license a { color: #cfe0f4; }
.footer-license a:hover { color: #fff; text-decoration: underline; }

.license-thumb {
  display: inline-block;
  margin-top: 14px;
  width: 110px;
  border: 1px solid var(--color-footer-line);
  border-radius: 6px;
  overflow: hidden;
}

/* 备案(비안) 줄 — 하단 중앙·별도 줄 (가이드라인). 숨김 금지·명확한 대비 */
.beian-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 16px;
}
.beian-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 7px;
  font-size: 13px;
  color: var(--color-footer-text);
  transition: color .2s ease;
}
.beian-item:hover { color: var(--color-footer-strong); }
.beian-badge { flex: none; color: var(--color-footer-muted); }
.beian-item:hover .beian-badge { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 16px;
  padding: 10px 24px;
  border-top: 1px solid var(--color-footer-line);
  text-align: center;
}
/* footer-top(회사정보/SNS) 없이 备案 정보만 두는 간략 푸터 (cart/checkout/login/admin) */
.slim-footer .footer-bottom { border-top: 0; padding: 22px 24px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
}
.copyright { margin: 0; font-size: 13px; color: var(--color-footer-muted); }

/* ============ 반응형 ============ */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 70px; right: 0;
    width: min(78vw, 320px);
    height: calc(100dvh - 70px);
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    padding: 16px;
    transform: translateX(110%);
    transition: transform .28s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .08);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--color-border); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .auth-area { width: 100%; padding: 14px 8px; border-bottom: 1px solid var(--color-separator); }
  .nav .auth-user { flex-wrap: wrap; }
  .nav .lang-switch { align-self: flex-start; margin: 16px 8px; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .strengths-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; }
  .footer-company, .footer-follow { width: auto; }
  .footer-follow { margin-left: 0; }
  .footer-bottom { flex-direction: column; gap: 2px; }
  .hero { min-height: auto; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 68px;
  }
  .hero-copy { max-width: 680px; padding: 16px 0 20px 28px; }
  .hero-map { width: min(100%, 480px); margin-left: auto; margin-right: auto; justify-self: center; }
  .section { padding: 64px 0; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .lang-btn { padding: 7px 10px; }
  .hero-layout { gap: 34px; padding-top: 42px; padding-bottom: 54px; }
  .hero-copy { padding-left: 20px; }
  .hero-title { font-size: 31px; }
  .hero-subtitle { margin-bottom: 28px; }
  .hero-map { width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .map-route-pulse { animation: none; opacity: .35; }
  .map-route-marker { display: none; }
  .sketch-reveal { width: 100px; }
  html[lang="ko"] .sketch-reveal-second { width: 84px; }
  html[lang^="zh"] .sketch-reveal-first { width: 70px; }
  html[lang^="zh"] .sketch-reveal-second { width: 96px; }
}

/* ---------- 푸터 브랜드 행 / SNS / 영업집조 버튼 ---------- */
.footer-brand-row { display: flex; align-items: center; min-height: 44px; gap: 8px; margin-bottom: 0; }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-mark { width: 28px; height: 28px; font-size: 14px; }
.footer-brand-row .footer-brand { margin-bottom: 0; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-footer-line);
  color: var(--color-footer-text);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.social-link:hover {
  color: var(--color-footer-strong);
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, .08);
}

.nav-backdrop {
  position: fixed;
  inset: 70px 0 0;
  z-index: 45;
  display: block;
  width: 100%;
  border: 0;
  background: rgba(10, 17, 20, .38);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  transition: opacity .2s ease, visibility .2s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* 영업집조 링크 — 비안 줄의 평범한 텍스트처럼 보이되 클릭 시 license.html 로 이동 */
.license-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-footer-text);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s ease;
}
.license-btn:hover { color: var(--color-footer-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 모달 (연락처: 이메일 + 위챗) ---------- */
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 24, 22, .48);
}
:root[data-theme="dark"] .modal-backdrop {
  background: rgba(0, 0, 0, .64);
}
.social-link:active { transform: scale(.92); transition-duration: .08s; }
.modal-box {
  position: relative; z-index: 1;
  background: var(--color-modal-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%; max-width: 560px;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top, 0px)) - max(16px, env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  padding: 28px 28px 30px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
  animation: modal-materialize .2s ease-out both;
}
@keyframes modal-materialize {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-box h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.modal-box img {
  width: 100%; height: auto;
  border: 1px solid var(--color-border);
  border-radius: 2px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  background: transparent;
  font-size: 22px; line-height: 1;
  color: var(--color-text-soft);
  cursor: pointer; border-radius: 2px;
  transition: border-color .18s ease, color .18s ease;
}
.modal-close:hover { border-color: var(--color-control-border); color: var(--color-text); }
.modal-close:active { transform: translateY(1px); }

/* 위챗 QR 팝오버 (아이콘 위에 말풍선처럼 표시) */
.social-wrap { position: relative; display: inline-flex; }
.wechat-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--color-modal-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 18px 44px rgba(8, 20, 33, .38);
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(5px) scale(.98);
  transform-origin: 50% 100%;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
  z-index: 40;
}
.wechat-popover::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--color-surface);
}
.wechat-wrap.is-open .wechat-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.wechat-popover .qr-img {
  width: 168px; max-width: 100%; height: auto;
  display: block; margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.wechat-popover .qr-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-soft);
}
/* 푸터가 세로로 쌓이는 폭(≤860px)부터: 팝오버가 화면 밖으로 넘치지 않도록
   아이콘 왼쪽 기준 정렬(화살표는 아이콘 중앙을 가리킴) */
@media (max-width: 860px) {
  .wechat-popover { left: -8px; transform: none; }
  .wechat-popover::after { left: 27px; transform: none; }
}

/* 아주 좁은 화면에서는 헤더 공간 확보를 위해 브랜드명 텍스트 숨김(로고는 유지) */
@media (max-width: 480px) {
  .brand-name { display: none; }
}

/* ---------- 다크/라이트 토글 버튼 ---------- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-control-border);
  border-radius: 12px;
  background: var(--color-control-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--color-highlight) inset;
  color: var(--color-text-soft);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, color .2s ease, border-color .2s ease, background-color .3s ease;
}
.theme-toggle:hover { color: var(--color-heading); border-color: var(--color-accent); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* 초기 로드에는 transition을 끄고, 테마가 준비된 뒤 주요 표면만 짧게 전환한다. */
html:not(.theme-ready),
html:not(.theme-ready) *,
html:not(.theme-ready) *::before,
html:not(.theme-ready) *::after { transition: none !important; }

html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .site-footer,
html.theme-ready .hero,
html.theme-ready .modal-box,
html.theme-ready .lang-switch,
html.theme-ready .theme-toggle,
html.theme-ready .field input,
html.theme-ready .field textarea {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}


@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .lang-switch,
  .theme-toggle,
  .modal-box,
  .wechat-popover {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--color-surface);
  }
}

@media (prefers-contrast: more) {
  .site-header,
  .lang-switch,
  .theme-toggle,
  .modal-box,
  .wechat-popover,
  .social-link { border-color: var(--color-control-border); }
  .site-header,
  .modal-box,
  .wechat-popover { background: var(--color-surface); }
}

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============ 모바일 최종 보정 (회사소개 페이지) ============ */
@media (max-width: 860px) {
  html, body { overflow-x: clip; }
  .home-main, .hero, .hero-layout, .hero-copy, .hero-subtitle {
    min-width: 0;
    max-width: 100%;
  }
  .site-header {
    padding-top: max(0px, env(safe-area-inset-top, 0px));
  }
  .header-inner {
    height: auto;
    min-height: 58px;
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    gap: 10px;
  }
  .header-actions { gap: 8px; flex-shrink: 0; }
  .brand { min-width: 0; }
  .brand-name {
    max-width: min(42vw, 160px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
  }
  .brand-logo { height: 42px; }
  .theme-toggle { width: 44px; height: 44px; }
  .lang-btn { padding: 7px 10px; font-size: 12px; min-height: 44px; }

  .hero { min-height: auto; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 40px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }
  .hero-copy {
    max-width: 100%;
    min-width: 0;
    padding: 12px 0 16px 18px;
  }
  html[lang="ko"] .hero-title,
  html[lang^="zh"] .hero-title {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
    line-height: 1.28;
    margin-bottom: 18px;
  }
  html[lang="ko"] .hero-subtitle,
  html[lang^="zh"] .hero-subtitle {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
  }
  html[lang="ko"] .hero-subtitle > span { white-space: pre-line; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-map {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
  }
  .map-city-name { font-size: 15px; }
  .map-city-country { font-size: 11px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .footer-company,
  .footer-follow {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .footer-meta {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }
  .footer-meta li { width: 100%; word-break: break-word; }
  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .beian-row { width: 100%; justify-content: center; }
  .beian-item { font-size: 12px; text-align: center; }

  .wechat-popover {
    left: 0;
    right: auto;
    transform: none;
    width: min(200px, calc(100vw - 48px));
  }
  .wechat-wrap.is-open .wechat-popover { transform: none; }
  .wechat-popover::after { left: 18px; transform: none; }
  .modal-box { border-radius: 4px; padding: 24px 18px 22px; }
  .modal-box-contact { max-width: min(500px, 100%); }
  .contact-modal-header { margin-bottom: 20px; }
  .contact-method-wechat { grid-template-columns: minmax(0, 1fr) 136px; gap: 14px; padding-top: 20px; }
  .modal-box img.contact-qr { width: 136px; }
  .btn, .lang-btn, .theme-toggle, .social-link, .beian-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 420px) {
  .hero-layout { gap: 28px; padding-top: 32px; padding-bottom: 44px; }
  .hero-copy { padding-left: 14px; }
  html[lang="ko"] .hero-title,
  html[lang^="zh"] .hero-title { font-size: clamp(1.55rem, 8vw, 1.95rem); }
  html[lang="ko"] .hero-subtitle,
  html[lang^="zh"] .hero-subtitle { margin-bottom: 22px; font-size: 14.5px; }
  .hero-cta .btn { max-width: none; }
  .hero-map { width: 100%; }
  .brand-name { max-width: min(38vw, 120px); font-size: 14px; }
  .lang-btn { padding: 6px 8px; }
  .copyright { font-size: 12px; }
}

@media (max-height: 480px) {
  .modal {
    place-items: start center;
    overflow-y: auto;
  }
}

/* ============ 푸터 보정 ============ */

.footer-company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  gap: 8px;
}
.footer-brand {
  margin-bottom: 0;
  white-space: nowrap;
}
.footer-fullname {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 4px;
}
.footer-meta li {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-meta-addr {
  overflow-wrap: anywhere;
}
.footer-hours {
  color: var(--color-footer-muted);
  margin-left: .65em;
}
.copyright {
  font-size: 12px;
  color: var(--color-footer-muted);
}
.beian-item {
  font-size: 12px;
  color: var(--color-footer-muted);
}
.beian-item:hover {
  color: var(--color-footer-text);
}

.site-footer :where(a, button):focus-visible {
  outline-color: var(--color-accent);
}

@media (max-width: 860px) {
  .footer-meta-tel {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .footer-hours {
    display: inline;
  }
}
