/* ==========================================================================
   鑫垚鏈動科技有限公司 / Xinyao Liandong Technology Co., Limited
   Corporate Website Stylesheet
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  --ink: #0a1020;
  --ink-2: #101a2e;
  --ink-3: #1a2740;
  --navy-soft: #22304d;

  --gold: #c9a24d;
  --gold-lt: #e6c87c;
  --gold-dk: #a8842f;

  --cyan: #35c5d6;

  --text: #131c2e;
  --text-2: #4a5670;
  --text-3: #7c869c;
  --text-inv: #eef3fb;
  --text-inv-2: #a9b6cd;

  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-soft-2: #eef1f7;
  --line: #e4e9f2;
  --line-dark: rgba(255, 255, 255, .12);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;

  --shadow-s: 0 2px 8px rgba(16, 26, 46, .05);
  --shadow: 0 10px 30px -12px rgba(16, 26, 46, .16);
  --shadow-l: 0 28px 60px -26px rgba(16, 26, 46, .30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
          "Source Han Sans SC", sans-serif;

  --wrap: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(201, 162, 77, .28); }

/* ---------- 3. Layout Helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 26px;
}

.section { padding: 108px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--text-inv); }
.section--tight { padding: 84px 0; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 77, .1));
}

.section--dark .eyebrow { color: var(--gold-lt); }

.h-sec {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.02em;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 62px;
}

.sec-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-head--center .eyebrow { justify-content: center; }

.lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.85;
}

.section--dark .lead { color: var(--text-inv-2); }

.gold-text {
  background: linear-gradient(100deg, var(--gold-lt) 0%, var(--gold) 42%, #fff2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  letter-spacing: .01em;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #221703;
  box-shadow: 0 10px 26px -10px rgba(201, 162, 77, .75);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(201, 162, 77, .85);
}

.btn--ghost {
  border-color: var(--line-dark);
  color: var(--text-inv);
  background: rgba(255, 255, 255, .04);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
  transform: translateY(-2px);
}

.btn--line {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-s);
}

.btn--line:hover {
  border-color: var(--gold);
  color: var(--gold-dk);
  transform: translateY(-2px);
}

.btn--block { width: 100%; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  height: 66px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px -20px rgba(16, 26, 46, .5);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gold-lt), var(--gold) 48%, var(--gold-dk));
  color: #1c1305;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px -10px rgba(201, 162, 77, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .4s var(--ease);
}

.logo:hover .logo__mark { transform: rotate(-7deg) scale(1.04); }

.logo__text { display: flex; flex-direction: column; line-height: 1.18; }

.logo__name {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
}

.logo__sub {
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-inv-2);
  white-space: nowrap;
}

.header.is-stuck .logo__name { color: var(--text); }
.header.is-stuck .logo__sub { color: var(--text-3); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-inv);
  border-radius: 999px;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .3s var(--ease);
}

.nav a:hover, .nav a.is-active { color: var(--gold-lt); }
.nav a:hover::after, .nav a.is-active::after { width: 18px; }

.header.is-stuck .nav a { color: var(--text-2); }
.header.is-stuck .nav a:hover,
.header.is-stuck .nav a.is-active { color: var(--gold-dk); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .06);
}

.lang__btn {
  min-width: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-inv-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.lang__btn:hover { color: #fff; }

.lang__btn.is-active {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: #221703;
  box-shadow: 0 4px 12px -6px rgba(201, 162, 77, .9);
}

.header.is-stuck .lang {
  border-color: var(--line);
  background: var(--bg-soft);
}

.header.is-stuck .lang__btn { color: var(--text-3); }
.header.is-stuck .lang__btn:hover { color: var(--text); }

.header .btn { padding: 11px 22px; font-size: 14px; }

/* Mobile toggle */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger span {
  display: block;
  width: 19px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: all .3s var(--ease);
}

.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s var(--ease);
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.header.is-stuck .burger { border-color: var(--line); background: var(--bg-soft); }
.header.is-stuck .burger span,
.header.is-stuck .burger span::before,
.header.is-stuck .burger span::after { background: var(--text); }

body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 92px) 0 0;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 460px at 78% 6%, rgba(201, 162, 77, .22), transparent 62%),
    radial-gradient(620px 520px at 8% 42%, rgba(53, 197, 214, .16), transparent 60%),
    radial-gradient(900px 620px at 50% 112%, rgba(34, 48, 77, .9), transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 32%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 12%, transparent 78%);
}

.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -220px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, rgba(201, 162, 77, .34), transparent 42%, rgba(53, 197, 214, .26), transparent 78%);
  filter: blur(72px);
  animation: spin 32s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 60px;
  align-items: center;
  padding-bottom: 96px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  color: var(--text-inv-2);
  margin-bottom: 26px;
}

.hero__badge b {
  color: var(--gold-lt);
  font-weight: 700;
}

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-lt);
  flex: none;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-lt);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(3.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 780;
}

.hero h1 .line { display: block; }

.hero__desc {
  margin-top: 24px;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-inv-2);
  line-height: 1.85;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.hero__tags span {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--text-inv-2);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
}

/* Hero art (right column) */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}

.art-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .16);
  animation: spin 46s linear infinite;
}

.art-ring--2 { inset: 20%; border-style: solid; border-color: rgba(201, 162, 77, .28); animation-duration: 34s; animation-direction: reverse; }
.art-ring--3 { inset: 34%; border-color: rgba(53, 197, 214, .22); animation-duration: 26s; }

.art-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02) 58%);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.art-core__cn {
  font-size: clamp(17px, 2.05vw, 26px);
  padding: 0 14px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  background: linear-gradient(100deg, var(--gold-lt), #fff6df, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.art-core__en {
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-inv-2);
  margin-top: 6px;
}

/* 英文版：公司英文名較長，縮一級並加大字距，圓環內自然折行 */
html[lang="en"] .art-core__cn {
  font-size: clamp(14px, 1.55vw, 20px);
  letter-spacing: .07em;
  line-height: 1.34;
  padding: 0 10px;
}

html[lang="en"] .logo__name { letter-spacing: 0; }

.art-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(16, 26, 46, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-inv);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.art-node i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-lt);
  flex: none;
}

.art-node--1 { top: 4%; left: 2%; animation-delay: -.4s; }
.art-node--2 { top: 30%; right: -4%; animation-delay: -2.1s; }
.art-node--2 i { background: var(--cyan); }
.art-node--3 { bottom: 22%; left: -6%; animation-delay: -3.6s; }
.art-node--4 { bottom: 2%; right: 8%; animation-delay: -1.2s; }
.art-node--4 i { background: #7f9cf5; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* KPI strip */
.kpis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.kpi {
  padding: 34px 26px 40px;
  border-right: 1px solid var(--line-dark);
}

.kpi:last-child { border-right: 0; }

.kpi__n {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 780;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff, var(--gold-lt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi__n small { font-size: .55em; margin-left: 2px; }

.kpi__l {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-inv-2);
}

/* ---------- 8. Marquee / trust strip ---------- */
.strip {
  background: var(--ink-2);
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  overflow: hidden;
}

.strip__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  width: max-content;
  will-change: transform;
}

.strip:hover .strip__track { animation-play-state: paused; }

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 54px;
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(169, 182, 205, .72);
  font-weight: 600;
}

.strip__item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 68px;
  align-items: start;
}

.about-body p + p { margin-top: 18px; }

.about-body p { color: var(--text-2); line-height: 1.9; }

.pillars {
  margin-top: 38px;
  display: grid;
  gap: 18px;
}

.pillar {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 77, .5);
  box-shadow: var(--shadow);
}

.pillar__n {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 750;
  color: var(--gold-dk);
  background: rgba(201, 162, 77, .12);
}

.pillar h4 { font-size: 15.5px; margin-bottom: 5px; }
.pillar p { font-size: 14px; color: var(--text-2); line-height: 1.72; }

/* Info card */
.idcard {
  position: relative;
  border-radius: var(--radius-l);
  padding: 34px 32px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  color: var(--text-inv);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.idcard::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 77, .34), transparent 66%);
}

.idcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 88% 0%, #000, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 88% 0%, #000, transparent 62%);
  pointer-events: none;
}

.idcard > * { position: relative; }

.idcard__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}

.idcard__mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 800;
  color: #1c1305;
  background: linear-gradient(140deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  flex: none;
}

.idcard__title { font-size: 15.5px; font-weight: 700; }
.idcard__title small {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-inv-2);
  font-weight: 600;
  margin-top: 4px;
}

.idlist { margin-top: 22px; display: grid; gap: 17px; }

.idlist__row { display: grid; gap: 4px; }

.idlist__k {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 700;
}

.idlist__v {
  font-size: 14px;
  color: var(--text-inv);
  line-height: 1.7;
  word-break: break-word;
}

.idlist__v a:hover { color: var(--gold-lt); }

.idcard__foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--text-inv-2);
  background: rgba(255, 255, 255, .04);
}

/* ---------- 10. Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 34px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold), rgba(201, 162, 77, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.svc:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 77, .45);
  box-shadow: var(--shadow-l);
}

.svc:hover::before { transform: scaleX(1); }

.svc__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(201, 162, 77, .16), rgba(201, 162, 77, .05));
  border: 1px solid rgba(201, 162, 77, .24);
  color: var(--gold-dk);
  margin-bottom: 24px;
  transition: transform .4s var(--ease);
}

.svc:hover .svc__icon { transform: translateY(-3px) rotate(-5deg); }
.svc__icon svg { width: 26px; height: 26px; }

.svc__no {
  position: absolute;
  top: 30px; right: 30px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--bg-soft-2);
  line-height: 1;
  transition: color .35s var(--ease);
}

.svc:hover .svc__no { color: rgba(201, 162, 77, .28); }

.svc__tag {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dk);
  margin-bottom: 10px;
}

.svc h3 { font-size: 21px; margin-bottom: 13px; }

.svc > p { font-size: 14.5px; color: var(--text-2); line-height: 1.82; }

.svc__list {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 11px;
}

.svc__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.svc__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  transform: rotate(45deg);
}

.svc__tech {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.svc__tech span {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-weight: 600;
}

/* ---------- 11. Cases ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}

.case:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 77, .42);
  box-shadow: var(--shadow-l);
}

.case__visual {
  position: relative;
  height: 186px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--ink-2), var(--ink));
}

.case__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 70% 20%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 76%);
}

.case--a .case__visual { background: linear-gradient(140deg, #16233c, #0a1020 62%); }
.case--b .case__visual { background: linear-gradient(140deg, #12303a, #0a1020 62%); }
.case--c .case__visual { background: linear-gradient(140deg, #2a2136, #0a1020 62%); }
.case--d .case__visual { background: linear-gradient(140deg, #33291a, #0a1020 62%); }

.case__glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(58px);
  opacity: .5;
  top: -110px; right: -70px;
}

.case--a .case__glow { background: radial-gradient(circle, rgba(201, 162, 77, .85), transparent 66%); }
.case--b .case__glow { background: radial-gradient(circle, rgba(53, 197, 214, .8), transparent 66%); }
.case--c .case__glow { background: radial-gradient(circle, rgba(147, 130, 220, .8), transparent 66%); }
.case--d .case__glow { background: radial-gradient(circle, rgba(226, 150, 74, .8), transparent 66%); }

.case__glyph {
  position: relative;
  width: 74px; height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transition: transform .45s var(--ease);
}

.case:hover .case__glyph { transform: scale(1.06) rotate(-4deg); }
.case__glyph svg { width: 34px; height: 34px; }

.case__no {
  position: absolute;
  left: 26px; bottom: 16px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .14);
  line-height: 1;
}

.case__tag {
  position: absolute;
  top: 20px; left: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .34);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case__body {
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case__body h3 { font-size: 20px; margin-bottom: 6px; }

.case__sub {
  font-size: 13px;
  color: var(--gold-dk);
  font-weight: 650;
  margin-bottom: 14px;
}

.case__body > p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.82;
}

.case__res {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.case__res div { display: grid; gap: 2px; }

.case__res b {
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--gold-dk);
  font-weight: 780;
}

.case__res span { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

.case__stack {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case__stack span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-3);
}

/* ---------- 12. Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px);
}

.step { position: relative; }

.step__dot {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 780;
  color: var(--gold-lt);
  background: var(--ink-2);
  border: 1px solid rgba(201, 162, 77, .45);
  box-shadow: 0 0 0 8px var(--ink);
  margin-bottom: 24px;
}

.step h4 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-inv-2); line-height: 1.8; }

.step__meta {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(201, 162, 77, .85);
}

/* ---------- 13. Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.why {
  display: flex;
  gap: 18px;
  padding: 30px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.why:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 77, .45);
  box-shadow: var(--shadow);
}

.why__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--gold-dk);
  background: rgba(201, 162, 77, .12);
}

.why__icon svg { width: 22px; height: 22px; }
.why h4 { font-size: 16.5px; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--text-2); line-height: 1.78; }

/* ---------- 14. Contact ---------- */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  padding: 108px 0;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(201, 162, 77, .2), transparent 60%),
    radial-gradient(640px 460px at 92% 92%, rgba(53, 197, 214, .14), transparent 62%);
}

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.contact-list { display: grid; gap: 22px; margin-top: 40px; }

.cline { display: flex; gap: 16px; }

.cline__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .05);
  color: var(--gold-lt);
}

.cline__icon svg { width: 19px; height: 19px; }

.cline__k {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-lt);
  margin-bottom: 5px;
}

.cline__v { font-size: 15px; line-height: 1.7; color: var(--text-inv); }
.cline__v a:hover { color: var(--gold-lt); }

/* Form */
.form-card {
  border-radius: var(--radius-l);
  background: #fff;
  padding: 38px 36px;
  box-shadow: var(--shadow-l);
  color: var(--text);
}

.form-card h3 { font-size: 21px; margin-bottom: 8px; }
.form-card > p { font-size: 14px; color: var(--text-3); margin-bottom: 26px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: grid; gap: 7px; margin-bottom: 16px; }

.field label {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--text-2);
}

.field label .req { color: #d9534f; }

.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14.5px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }

.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 162, 77, .14);
}

.field input::placeholder, .field textarea::placeholder { color: #a8b1c2; }

.form-err {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #d9534f;
  line-height: 1.6;
}

.form-err[hidden] { display: none; }

.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

.form-ok {
  display: none;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: rgba(201, 162, 77, .1);
  border: 1px solid rgba(201, 162, 77, .38);
  margin-top: 20px;
}

.form-ok.is-on { display: block; animation: fadeUp .45s var(--ease) both; }
.form-ok h4 { font-size: 15.5px; margin-bottom: 6px; color: var(--gold-dk); }
.form-ok p { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.form-ok__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.form-ok .btn { padding: 10px 20px; font-size: 13.5px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Map link block */
.mapbar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
}

.mapbar__pin {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 77, .16);
  color: var(--gold-lt);
  flex: none;
}

.mapbar__pin svg { width: 19px; height: 19px; }
.mapbar p { font-size: 13px; color: var(--text-inv-2); flex: 1; min-width: 190px; line-height: 1.6; }

/* ---------- 15. Footer ---------- */
.footer {
  background: #070c17;
  color: var(--text-inv-2);
  padding: 66px 0 34px;
  border-top: 1px solid var(--line-dark);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}

.footer .logo__name { color: #fff; }
.footer .logo__sub { color: var(--text-inv-2); }

.footer__desc {
  margin-top: 20px;
  font-size: 13.8px;
  line-height: 1.85;
  max-width: 340px;
}

.footer__col h5 {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 700;
}

.footer__col ul { display: grid; gap: 10px; }
.footer__col li { font-size: 13.8px; line-height: 1.7; }
.footer__col a:hover { color: var(--gold-lt); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 12.8px;
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal span { opacity: .72; }

/* ---------- 16. Floating actions ---------- */
.fabs {
  position: fixed;
  right: 22px; bottom: 24px;
  z-index: 80;
  display: grid;
  gap: 12px;
}

.fab {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 23px; height: 23px; }

.fab--wa { background: linear-gradient(140deg, #37d67a, #1faa59); }
.fab--tel { background: linear-gradient(140deg, var(--gold-lt), var(--gold-dk)); color: #1c1305; }
.fab--top {
  background: rgba(16, 26, 46, .9);
  border: 1px solid var(--line-dark);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.fab--top.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 17. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { margin: 0 auto; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact__inner { grid-template-columns: 1fr; gap: 44px; }
  /* 英文導航詞較長，收窄間距避免擠壓 */
  html[lang="en"] .logo__name { font-size: 15px; }
  html[lang="en"] .nav a { padding: 9px 11px; font-size: 13.5px; }
  html[lang="en"] .header__actions { gap: 10px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .section { padding: 82px 0; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: calc(var(--header-h) + 28px) 24px 32px;
    background: rgba(10, 16, 32, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--line-dark);
    transform: translateX(102%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 16px; color: var(--text-inv); border-radius: 12px; }
  .nav a:hover, .nav a.is-active { background: rgba(255, 255, 255, .06); }
  .nav a::after { display: none; }
  .burger { display: grid; }
  .header__actions .btn { display: none; }
  .case-grid, .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .steps::before { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { border-bottom: 1px solid var(--line-dark); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .section { padding: 66px 0; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero__inner { padding-bottom: 68px; }
  .hero__desc { font-size: 15.5px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__art { max-width: 300px; }
  .art-node { font-size: 11px; padding: 8px 12px; }
  .art-node--3 { left: -2%; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .case__body { padding: 24px 22px 26px; }
  .case__res { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .logo__name { font-size: 14.5px; }
  .logo__sub { font-size: 9px; letter-spacing: .12em; }
  .lang__btn { min-width: 38px; padding: 5px 8px; font-size: 12px; }
  .sec-head { margin-bottom: 44px; }
  .fabs { right: 16px; bottom: 18px; }
  .kpi { padding: 26px 18px 30px; }
}
