/* =========================================================
   鑫燁通國際貿易有限公司 — XIN YE TONG INTERNATIONAL TRADE
   Design tokens: ink / bronze-gold / cream, serif display
   ========================================================= */

:root {
  --ink: #14110e;
  --ink-soft: #1f1a15;
  --ink-line: rgba(255, 255, 255, 0.1);
  --gold: #b98a4b;
  --gold-light: #d9b87c;
  --gold-deep: #8f6634;
  --cream: #f8f5ef;
  --paper: #ffffff;
  --text: #1c1712;
  --muted: #6b6257;
  --muted-light: rgba(255, 255, 255, 0.66);
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(20, 17, 14, 0.05), 0 8px 24px rgba(20, 17, 14, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 17, 14, 0.06), 0 18px 44px rgba(20, 17, 14, 0.1);
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "Times New Roman", Georgia, serif;
  --font-latin: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0;
}

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: rgba(185, 138, 75, 0.28); }

/* ------------------------- 語言切換機制 ------------------------- */
html[data-lang="zh"] .en-only { display: none !important; }
html[data-lang="en"] .zh-only { display: none !important; }
html[data-lang="en"] body { font-family: "Cormorant Garamond", var(--font-sans); }
html[data-lang="en"] h1,
html[data-lang="en"] h2,
html[data-lang="en"] h3 { font-family: var(--font-latin); letter-spacing: 0; }
html[data-lang="en"] body { font-size: 17px; }

/* ------------------------- 通用 ------------------------- */
.container {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
  position: relative;
}

.section-cream { background: var(--cream); }

.section-dark {
  background: var(--ink);
  color: #f4efe7;
}

.section-dark h2, .section-dark h3 { color: #fdfaf4; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.02em;
}

.section-lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 660px;
}

.section-dark .section-lead { color: var(--muted-light); }
.section-dark .eyebrow { color: var(--gold-light); }

.gold { color: var(--gold-light); }

.muted { color: var(--muted); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-top: 18px;
  cursor: pointer;
}

.link-arrow:hover { color: var(--ink); }
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ------------------------- 按鈕 ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fffdf8;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #2a2015;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #f6f1e8;
}

.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn:active { transform: translateY(1px); }

/* ------------------------- 標頭 ------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}

.site-header.is-stuck {
  background: rgba(20, 17, 14, 0.93);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fbf7f0;
  cursor: pointer;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-light);
  border: 1px solid rgba(217, 184, 124, 0.55);
  border-radius: 50%;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.03);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }

.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.54);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width 0.28s var(--ease);
}

.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav a.is-active { color: var(--gold-light); }
.nav a.is-active::after { width: 100%; }

.nav .nav-cta {
  padding: 10px 22px;
  border: 1px solid rgba(217, 184, 124, 0.5);
  color: var(--gold-light);
}

.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: rgba(217, 184, 124, 0.12); color: #fff; }

.lang-toggle {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-toggle:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(217, 184, 124, 0.1);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: #fbf7f0;
  cursor: pointer;
  padding: 6px;
}

/* ------------------------- Hero ------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px;
  overflow: hidden;
  color: #fbf7f0;
}

.hero-media {
  position: absolute;
  inset: -6% 0 0 0;
  background: url("../img/hk-harbour.jpg") center 42% / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 24s var(--ease) forwards;
}

@keyframes heroDrift {
  to { transform: scale(1.12) translateY(-1.5%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.86) 0%, rgba(12, 10, 8, 0.55) 42%, rgba(12, 10, 8, 0.92) 100%),
    radial-gradient(120% 90% at 12% 30%, rgba(20, 17, 14, 0.9) 0%, rgba(20, 17, 14, 0.1) 70%);
}

.hero-inner { position: relative; z-index: 2; max-width: 940px; }

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.42;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 28px;
  max-width: 620px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 26px;
}

.hero-facts li {
  padding-right: 46px;
  margin-right: 46px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero-facts strong {
  font-family: var(--font-latin);
  font-size: 27px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero-facts span {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------- 關於 ------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.28fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-copy p {
  color: #3b342c;
  font-size: 15.5px;
  margin-bottom: 18px;
}

.vision-card {
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}

.vision-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.vision-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e6dfd3;
  border: 1px solid #e6dfd3;
}

.culture-card {
  position: relative;
  background: var(--paper);
  padding: 30px 26px 32px;
  transition: background 0.3s var(--ease);
}

.culture-card:hover { background: #fdfaf5; }

.culture-num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.culture-card h3 {
  font-size: 18.5px;
  margin: 10px 0 10px;
}

.culture-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ------------------------- 核心業務 ------------------------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.biz-card {
  position: relative;
  padding: 38px 32px 34px;
  background: var(--ink);
  transition: background 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.biz-card:hover { background: #1c1712; }

.biz-icon {
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}

.biz-icon svg { width: 30px; height: 30px; }

.biz-index {
  position: absolute;
  top: 34px;
  right: 30px;
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.28);
}

.biz-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.biz-card > p {
  font-size: 13.8px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.biz-tags li {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border: 1px solid rgba(217, 184, 124, 0.32);
  color: var(--gold-light);
  border-radius: 999px;
}

.biz-card-quote {
  justify-content: center;
  background: #191410;
}

.biz-card-quote p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 2;
  color: #f3ead9;
  position: relative;
  z-index: 1;
}

.quote-mark {
  font-family: var(--font-latin);
  font-size: 84px;
  line-height: 0.6;
  color: rgba(217, 184, 124, 0.28);
  margin-bottom: 26px;
}

/* ------------------------- 產品展示 ------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid #e8e1d4;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.product-card:hover {
  border-color: rgba(185, 138, 75, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1ece2;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.045); }

.product-body { padding: 20px 22px 24px; }

.product-model {
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.product-body h3 { font-size: 17px; margin: 6px 0 8px; }

.product-spec {
  font-size: 12.8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.product-card-cta {
  justify-content: center;
  background: var(--cream);
  border-style: dashed;
  border-color: rgba(185, 138, 75, 0.45);
}

.product-card-cta:hover { transform: none; }

.product-cta-inner { padding: 34px 26px; }

.product-cta-inner h3 { font-size: 19px; margin-bottom: 10px; }

.product-cta-inner p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.product-cta-note {
  font-size: 12px !important;
  color: var(--gold-deep) !important;
  margin: 18px 0 0 !important;
}

/* ------------------------- 五年藍圖 ------------------------- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.strategy-card {
  background: var(--paper);
  border: 1px solid #e8e1d4;
  padding: 34px 32px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.strategy-card:hover {
  border-color: rgba(185, 138, 75, 0.55);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.strategy-num {
  display: block;
  font-family: var(--font-latin);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
}

.strategy-card h3 { font-size: 19px; margin-bottom: 12px; }
.strategy-card p { font-size: 14.2px; color: var(--muted); line-height: 1.85; }

.mini-roadmap {
  margin-top: 16px;
  font-size: 12.5px !important;
  letter-spacing: 0.06em;
  color: var(--gold-deep) !important;
}

.timeline {
  margin-top: clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #e2dbcd;
}

.timeline-item {
  position: relative;
  padding: 40px 34px 0 0;
}

.timeline-dot {
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px #fff;
}

.timeline-phase {
  font-family: var(--font-serif);
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.timeline-item p:last-child {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  padding-right: 20px;
}

/* ------------------------- 收益 ------------------------- */
.revenue-list { border-top: 1px solid #e3dccc; }

.revenue-row {
  display: grid;
  grid-template-columns: 74px 260px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #e3dccc;
  transition: background 0.25s var(--ease);
}

.revenue-row:hover { background: rgba(255, 255, 255, 0.6); }

.revenue-num {
  font-family: var(--font-latin);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.revenue-row h3 { font-size: 18px; }

.revenue-row p {
  font-size: 14.2px;
  color: var(--muted);
}

.revenue-cadence {
  margin-top: 30px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

/* ------------------------- 證照 ------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  margin: 0;
  border: 1px solid #e8e1d4;
  background: var(--cream);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cert-card:hover { box-shadow: var(--shadow-md); border-color: rgba(185, 138, 75, 0.45); }

.cert-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #efeae0;
  cursor: zoom-in;
  overflow: hidden;
  max-height: 320px;
}

.cert-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.cert-thumb:hover img { transform: scale(1.03); }

.cert-card figcaption { padding: 26px 28px 30px; background: var(--paper); }

.cert-card h3 { font-size: 18.5px; margin-bottom: 16px; }

.cert-card dl { display: grid; gap: 8px; }

.cert-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  border-bottom: 1px dashed #e8e1d4;
  padding-bottom: 8px;
}

.cert-card dt { color: var(--muted); }
.cert-card dd { margin: 0; font-weight: 500; letter-spacing: 0.02em; }

/* ------------------------- 招聘 ------------------------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.job-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 34px 32px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.job-card:hover { border-color: rgba(217, 184, 124, 0.45); background: rgba(255, 255, 255, 0.035); }

.job-tag {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.job-card h3 { font-size: 20px; margin-bottom: 14px; }

.job-card > p:not(.job-tag) {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted-light);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.job-tags li {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.careers-cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.careers-cta p { color: var(--muted-light); font-size: 14.5px; }

/* ------------------------- 合作 ------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e3dccc;
  border: 1px solid #e3dccc;
}

.partner-grid li {
  background: var(--cream);
  padding: 30px 28px;
  transition: background 0.3s var(--ease);
}

.partner-grid li:hover { background: #fff; }

.partner-grid h3 { font-size: 16.5px; margin-bottom: 10px; }

.partner-grid p { font-size: 13.5px; color: var(--muted); }

.partner-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

/* ------------------------- 聯絡 ------------------------- */
.section-contact {
  background:
    linear-gradient(rgba(20, 17, 14, 0.94), rgba(20, 17, 14, 0.97)),
    url("../img/leather.png") center / cover;
  color: #f5efe5;
}

.section-contact h2 { color: #fdfaf4; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-intro h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 22px; }

.contact-intro > p:not(.eyebrow) {
  font-size: 14.8px;
  color: var(--muted-light);
  margin-bottom: 30px;
  max-width: 440px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-icon { color: var(--gold-light); display: block; margin-bottom: 14px; }

.contact-card h3 {
  font-size: 15.5px;
  color: #fdfaf4;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.contact-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.66);
}

.contact-card p + p { margin-top: 6px; }

.contact-card a { color: var(--gold-light); border-bottom: 1px solid rgba(217, 184, 124, 0.4); }

.contact-card a:hover { color: #fff; border-bottom-color: #fff; }

/* ------------------------- 頁尾 ------------------------- */
.site-footer {
  background: #0e0c0a;
  color: rgba(255, 255, 255, 0.62);
  padding: 56px 0 26px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; gap: 14px; align-items: flex-start; }

.footer-name {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #f6f1e7;
}

.footer-tag { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}

.footer-nav a { color: rgba(255, 255, 255, 0.66); font-size: 13px; letter-spacing: 0.08em; }
.footer-nav a:hover { color: var(--gold-light); }

.footer-legal {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

/* ------------------------- 證照放大 ------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(860px, 100%);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.lightbox-title {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lightbox-close:hover { border-color: var(--gold-light); background: rgba(217, 184, 124, 0.14); }

/* ------------------------- 進場動畫 ------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ------------------------- 響應式 ------------------------- */
@media (max-width: 1080px) {
  .container { width: calc(100% - 64px); }
  .nav { gap: 22px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .revenue-row { grid-template-columns: 54px 200px 1fr; }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 48px); }

  .menu-btn { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 26px;
    background: rgba(16, 13, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 15px;
  }

  .nav a::after { display: none; }

  .nav .nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(217, 184, 124, 0.5);
  }

  .lang-toggle { margin-top: 16px; align-self: flex-start; }

  .strategy-grid,
  .job-grid,
  .cert-grid { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; border-top: 0; gap: 0; }

  .timeline-item {
    padding: 26px 0 0 26px;
    border-left: 1px solid #e2dbcd;
  }

  .timeline-dot { top: 32px; left: -4.5px; }

  .contact-grid { grid-template-columns: 1fr; }

  .hero-facts { gap: 22px 0; }
  .hero-facts li { padding-right: 26px; margin-right: 26px; }
  .hero-facts strong { font-size: 22px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }

  body { font-size: 15.5px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 56px) 0 56px; }
  .hero-title { font-size: clamp(27px, 8.4vw, 36px); line-height: 1.5; }
  .hero-lead { font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 46%; padding: 13px 16px; }
  .hero-facts { margin-top: 40px; }
  .hero-facts li { border-right: 0; margin-right: 0; padding-right: 0; width: 50%; }
  .hero-facts strong { font-size: 20px; }

  .biz-grid,
  .culture-grid,
  .partner-grid,
  .contact-cards,
  .product-grid { grid-template-columns: 1fr; }

  .revenue-row { grid-template-columns: 44px 1fr; gap: 8px 14px; }
  .revenue-row p { grid-column: 1 / -1; }

  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }

  .cert-thumb, .cert-thumb img { max-height: 240px; height: 240px; }

  .careers-cta { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; gap: 26px; }
  .footer-legal { flex-direction: column; gap: 8px; }
}

/* 鍵盤焦點可見性 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
