/* 全站色彩、字體與內容寬度 */
:root {
  color-scheme: light;
  --ink: #251830;
  --muted: #605468;
  --brand: #861579;
  --accent: #e9521c;
  --line: #eaddea;
  --soft: #fbf6fb;
  --white: #fff;
  --gradient: linear-gradient(110deg, #861579, #b72871 56%, #ea5413);
  --radius: 20px;
  --site: 1220px;
  font-family:
    "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei",
    system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.23;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 4.55vw, 4.65rem);
  letter-spacing: -0.035em;
  font-weight: 850;
}
h2 {
  font-size: clamp(1.65rem, 3.13vw, 2.7rem);
  letter-spacing: -0.025em;
  font-weight: 850;
}
h3 {
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  font-weight: 800;
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #a34b9a;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
li {
  padding: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
section[id],
header[id],
footer[id] {
  scroll-margin-top: 20px;
}
.wrap {
  width: min(var(--site), calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: clamp(40px, 5.5vw, 78px);
}
.center {
  text-align: center;
}
.center .eyebrow {
  justify-content: center;
}
.kicker,
.eyebrow {
  color: var(--brand);
  font-size: 0.84rem;
  letter-spacing: 0.075em;
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.64rem;
  margin-bottom: 0.7rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.32rem;
  height: 3px;
  flex: none;
  background: var(--gradient);
  border-radius: 8px;
}
.grad {
  color: var(--brand);
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.23rem);
  margin-top: 1rem;
  max-width: 42ch;
}
.center .lead {
  margin-inline: auto;
  max-width: 60ch;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.63rem 1.15rem;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  background: var(--gradient);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
}
.btn:hover {
  filter: brightness(0.93);
}
.btn.outline {
  color: var(--brand);
  border-color: #d9b6d4;
  background: #ffffffb0;
}
.btn.light {
  background: #fff;
  color: var(--brand);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 5;
  padding: 0.6rem 1rem;
  color: var(--ink);
  background: #fff;
  transform: translateY(-200%);
}
.skip:focus {
  transform: translateY(0);
}
/* 共用：頁首與導覽 */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.1vw, 30px);
}
.logo img {
  width: 131px;
  height: auto;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.25vw, 2.35rem);
  list-style: none;
}
.navlinks a,
.mobile-menu li a {
  font-size: 0.91rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.navlinks a:hover,
.mobile-menu li a:hover {
  color: var(--brand);
}
.menu-toggle {
  display: none;
}
.site-nav {
  min-width: 0;
}
/* 共用：版面、卡片、預約區與頁尾 */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(22px, 4vw, 66px);
  align-items: center;
}
.hero-image {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1.45;
  object-fit: cover;
}
.grid {
  display: grid;
  gap: 15px;
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.card-copy {
  padding: 0.8rem 0.9rem 1rem;
}
.card-copy p {
  margin-top: 0.4rem;
  font-size: 0.91rem;
}
.illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.image-card img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.points {
  list-style: none;
  display: flex;
  gap: 0.6rem 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 750;
}
.points li::before {
  content: "◆";
  color: var(--brand);
  margin-right: 0.36rem;
  font-size: 0.66em;
}
.tags {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.tags li {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 9px;
  padding: 0.38rem 0.66rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.89rem;
}
.cta {
  color: #fff;
  background: var(--gradient);
  padding-block: clamp(30px, 4.3vw, 53px);
}
.cta p {
  color: #fff;
  margin-top: 0.6rem;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
.cta .btn {
  flex: none;
}
.site-footer {
  font-size: 0.82rem;
  padding-block: 1.15rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  flex-wrap: wrap;
}
.footer-grid .logo img {
  width: 91px;
}
.footer-grid a:not(.logo) {
  overflow-wrap: anywhere;
}

/* 互動 AI 虛擬人 */
.avatar {
  background:
    radial-gradient(ellipse at 100% 41%, #feede2, transparent 52%),
    linear-gradient(160deg, #f7eff8, #fbf6fb 45%, #f5eaf3);
}
.avatar .outer {
  width: min(1320px, calc(100% - 52px));
  margin: 24px auto 0;
}
.avatar .panel {
  border: 1px solid #fff;
  border-radius: 24px;
  background: #ffffffca;
  box-shadow: 0 10px 28px #53244907;
  margin-bottom: 16px;
}
.avatar .top {
  background: linear-gradient(120deg, #fff 13%, #faf3f9 65%, #ffede1);
  overflow: visible;
}
.avatar .site-header {
  border-radius: 24px 24px 0 0;
  background: transparent;
}
.avatar .hero {
  padding-block: clamp(30px, 3.8vw, 48px);
}
.avatar .feature-grid {
  padding-block: 18px;
}
.avatar .feature-card {
  padding: 8px;
}
.avatar .feature-card .icon-frame {
  height: 106px;
  border-radius: 11px;
  background: #f7edf7;
  overflow: hidden;
}
.avatar .feature-card .card-copy {
  padding: 0.58rem 0.42rem 0.4rem;
}
.avatar .feature-card h3,
.avatar .scene h3 {
  color: var(--brand);
}
.avatar .scene-grid {
  margin-top: 1.35rem;
}
.scene-pair {
  margin-bottom: 14px;
}
.avatar .scene-large {
  display: grid;
  min-height: 270px;
  border-radius: 16px;
  overflow: hidden;
  align-items: stretch;
}
.avatar .scene-large.med {
  position: relative;
  background: #342435;
}
.avatar .scene-large.med img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 54% 45%;
}
.avatar .scene-large.med .scene-text {
  align-self: end;
  z-index: 0;
  background: linear-gradient(0deg, #211328f2, #2113289e, transparent);
  padding: 3.2rem 1.1rem 1.1rem;
  color: #fff;
}
.avatar .scene-large.med p,
.avatar .scene-large.med .kicker {
  color: #fff;
}
.avatar .scene-large.work {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  background: #f8e5ee;
}
.avatar .scene-large.work .scene-text {
  align-self: center;
  padding: clamp(10px, 2vw, 28px);
}
.avatar .scene-large.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-text h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  margin: 0.45rem 0;
}
.scene-text p {
  font-size: 0.89rem;
}
.scene .scene-label {
  font-size: 0.79rem;
  color: var(--brand);
  font-weight: 800;
  margin: 0 0 0.3rem;
}
.avatar .edge {
  background: linear-gradient(125deg, #f9e8f8 5%, #f8e9f4 40%, #ffeadc);
}
.edge-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
  gap: 2rem;
  align-items: center;
}
.edge-steps {
  padding: 1rem;
  background: #fffcff;
  border-radius: 16px;
  border: 1px solid #e5d0e2;
}
.edge-steps header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.edge-steps .pill {
  background: #f5e6f4;
  border-radius: 20px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.24rem 0.6rem;
}
.edge-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.75rem 0;
  background: #fcf3fa;
  border-radius: 10px;
  padding: 0.65rem;
  gap: 0.55rem;
  text-align: center;
}
.edge-steps li {
  position: relative;
}
.edge-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.65rem;
  top: 35%;
  color: var(--brand);
}
.edge-steps img {
  width: 74px;
  height: 62px;
  object-fit: contain;
  margin: 0 auto 0.3rem;
}
.edge-steps small {
  display: block;
  color: var(--muted);
}
.edge-steps strong {
  display: block;
  font-size: 0.91rem;
}
.edge-steps > p {
  font-size: 0.86rem;
  text-align: center;
}
.avatar .cta {
  border-radius: 22px;
  background: linear-gradient(110deg, #551251, #83266f 64%, #c76858);
}

/* 工業 AIGV */
.industrial .hero {
  background: #211426;
  color: #fff;
  overflow: hidden;
}
.industrial .hero .wrap {
  min-height: clamp(480px, 42vw, 585px);
  display: flex;
  align-items: center;
  position: relative;
}
.industrial .hero-copy {
  padding-block: clamp(35px, 6vw, 88px);
  z-index: 1;
  width: 52%;
}
.industrial .hero-media {
  position: absolute;
  inset: 0 0 0 40%;
  margin-right: min(-32px, calc((var(--site) - 100vw) / 2));
  height: 100%;
}
.industrial .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
}
.industrial .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #211426, #21142636 47%, transparent 70%);
  pointer-events: none;
}
.industrial .hero figcaption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  background: #2c1a31e8;
  color: white;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.71rem;
  z-index: 1;
}
.industrial .hero h1 span,
.industrial .hero .eyebrow,
.industrial .hero .points li::before {
  color: #f5a9e4;
}
.industrial .hero p,
.industrial .product p {
  color: #f2e4f2;
}
.industrial .hero .outline {
  background: #26162bc7;
  color: #fff;
  border-color: #ab84a7;
}
.industrial .features,
.industrial .process {
  background: #faf5fa;
}
.feature-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.76fr) minmax(0, 1.9fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
}
.pains {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-weight: 750;
}
.pains li::before {
  content: "—";
  color: var(--brand);
  margin-right: 0.55rem;
}
.feature-photos {
  gap: 12px;
}
.feature-photos .card {
  padding: 6px;
}
.feature-photos img {
  aspect-ratio: 2.12;
  border-radius: 7px;
}
.feature-photos h3 {
  padding: 0.54rem 0.2rem 0.3rem;
}
.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.work-head small {
  color: var(--muted);
}
.comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: clamp(9px, 2vw, 24px);
  align-items: center;
}
.comparison figure,
.comparison a {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.comparison img {
  width: 100%;
  aspect-ratio: 1.96;
  object-fit: cover;
}
.comparison .img-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0.25rem 0.55rem;
  background: #281831;
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 750;
}
.comparison a .img-tag {
  background: #820974;
}
.compare-arrow,
.play {
  text-align: center;
  background: #f4e6f5;
  color: #8a237f;
  font-size: 1.35rem;
  border-radius: 50%;
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  margin: auto;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background: #23132edc;
  border: 1px solid white;
  font-size: 1rem;
}
.other-examples {
  margin-top: 1.25rem;
}
.micro-scene {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding-top: 0.8rem;
}
.micro-scene img {
  width: 36%;
  max-width: 128px;
  aspect-ratio: 1.72;
  object-fit: cover;
  border-radius: 7px;
}
.micro-scene p {
  font-size: 0.84rem;
}
.product {
  background: linear-gradient(126deg, #211426, #352039);
  color: #fff;
}
.product .eyebrow {
  color: #f5a9e4;
}
.storyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff9fd;
}
.storyboard img {
  width: 100%;
  aspect-ratio: 2.25;
  object-fit: cover;
  border-radius: 6px;
}
.storyboard figcaption {
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.22rem 0.1rem;
}
.storyboard b {
  background: #f4e3f3;
  color: var(--brand);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-right: 0.3rem;
}
.process-list {
  list-style: none;
  margin-top: 1.3rem;
}
.process-list li {
  border-top: 2px solid #e1c3dd;
  padding-top: 0.65rem;
}
.process-list small {
  color: var(--brand);
  font-weight: 800;
}
.process-list h3 {
  margin: 0.3rem 0;
}
.process-list p {
  font-size: 0.9rem;
}

/* AI 主動防詐 */
.fraud {
  --ink: #161239;
  --muted: #4f4867;
  --brand: #602292;
  --accent: #f47512;
  --line: #e5dbf4;
  --soft: #f7f3fd;
  --gradient: linear-gradient(115deg, #7a2baa, #421071);
}
.fraud .hero {
  background:
    radial-gradient(ellipse at 80% 18%, #e0d3fb, transparent 60%),
    linear-gradient(145deg, #f9f6ff, #eae1fb);
  overflow: hidden;
}
.fraud .hero-media {
  min-width: 0;
}
.fraud .hero-image {
  object-fit: contain;
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.fraud .hero .orange {
  color: #a84405;
}
.fraud .section {
  padding-block: clamp(33px, 4.5vw, 62px);
}
.fraud .adv-grid {
  margin: 1.15rem auto 0;
  max-width: 1020px;
}
.adv-card {
  padding: 1.1rem 1.3rem;
  background: #f2f0f7;
  text-align: left;
}
.adv-card:nth-child(2) {
  background: #efe5fc;
}
.adv-card h3 {
  display: inline-block;
  background: #504c70;
  color: #fff;
  border-radius: 30px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.7rem;
}
.adv-card:nth-child(2) h3 {
  background: var(--gradient);
}
.adv-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.adv-body img {
  width: 94px;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.checklist {
  list-style: none;
  text-align: left;
  font-size: 0.94rem;
  font-weight: 750;
}
.checklist li {
  margin: 0.32rem 0;
}
.checklist li::before {
  content: "✓";
  color: var(--brand);
  margin-right: 0.55rem;
}
.fraud-flow {
  list-style: none;
  margin-top: 1.2rem;
  max-width: 1050px;
  margin-inline: auto;
}
.fraud-flow li {
  position: relative;
}
.fraud-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 32%;
  color: var(--brand);
  font-weight: 800;
}
.fraud-flow img {
  width: 79px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 0.3rem;
  border-radius: 50%;
}
.fraud-flow p {
  font-size: 0.92rem;
}
.fraud .report {
  background: radial-gradient(ellipse at 75% 44%, #e7def6, #faf7ff);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 1.55rem;
  align-items: center;
}
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.45fr);
  gap: 0.75rem;
  align-items: stretch;
}
.report-cover {
  background: linear-gradient(150deg, #fff 35%, #eee5fb 65%, #9b75dd);
  min-height: 230px;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 7px 18px #33146230;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.report-cover img {
  width: 80px;
}
.report-cover small {
  display: block;
  color: var(--muted);
}
.report-preview {
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px #33146226;
}
.report-preview h3 {
  font-size: 1rem;
}
.sample-tag {
  display: inline-block;
  background: #f3eafe;
  color: var(--brand);
  padding: 0.18rem 0.48rem;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 800;
}
.sample-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin-top: 0.65rem;
}
.sample-list li {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.84rem;
}
.sample-list b {
  display: block;
}
.sample-list span {
  color: var(--muted);
}
.fraud-end {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.metric-grid {
  margin-top: 0.85rem;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 4px 16px #24104a0c;
}
.metric b {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.metric:nth-child(2) b {
  color: #ad4607;
}
.metric small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.metric-note {
  margin-top: 0.58rem;
  font-size: 0.82rem;
}
.fraud .cta {
  background:
    radial-gradient(ellipse at 9% 0%, #783cac, transparent 65%),
    linear-gradient(110deg, #43216c, #211342);
}
.fraud .cta-inner {
  flex-direction: column;
  text-align: center;
}
.fraud .cta .btn {
  background: #a64002;
  color: white;
}

/* AI 電商導購 */
.commerce {
  --ink: #20182e;
  --muted: #51465c;
  --brand: #7b157d;
  --gradient: linear-gradient(110deg, #861579, #c32670 55%, #ed681d);
}
.commerce .hero {
  background:
    radial-gradient(ellipse at 87% 31%, #fcd6ca, transparent 50%),
    radial-gradient(ellipse at 73% 81%, #efdcf7, transparent 48%), #fffafa;
}
.commerce .hero-image {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
}
.commerce .section {
  padding-block: clamp(34px, 4.2vw, 57px);
}
.commerce .section h2 {
  text-wrap: balance;
}
.challenge-grid,
.commerce .scenes,
.commerce .tech-grid {
  margin-top: 1.2rem;
}
.challenge {
  text-align: left;
  background: linear-gradient(#f8f3fa, #fff);
  padding: 0.9rem 0.85rem;
}
.challenge h3 {
  font-size: 1.04rem;
}
.challenge p {
  font-size: 0.87rem;
}
.challenge .down {
  font-size: 1.35rem;
  color: #a94312;
  display: block;
  font-weight: 800;
  margin: 0.1rem 0;
}
.challenge .solution-name,
.commerce .image-card h3 {
  color: var(--brand);
}
.commerce .image-card {
  text-align: left;
}
.tech-grid {
  text-align: left;
}
.tech-grid article {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 0.2rem;
  border-top: 1px solid var(--line);
}
.tech-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
.tech-grid p {
  font-size: 0.9rem;
  margin-top: 0.38rem;
}
.commerce .channels {
  border-top: 1px solid var(--line);
}
.commerce .channels .grid {
  gap: 1.6rem;
}
.commerce .channel-note {
  font-size: 0.86rem;
  margin-top: 0.75rem;
}
.commerce .platforms li {
  background: #fff;
}
.commerce .cta {
  border-radius: 20px;
  margin-bottom: 1.4rem;
}
.commerce .cta .cta-inner {
  width: calc(100% - 54px);
}

/* 響應式版面：平板、手機與小螢幕 */
@media (max-width: 1020px) {
  .navlinks {
    gap: 1rem;
  }
  .navbar {
    min-height: 70px;
  }
  .feature-layout {
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.65fr);
  }
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 38px);
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 15px;
    left: 15px;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    padding: 0.4rem 1rem;
    box-shadow: 0 13px 25px #39133715;
  }
  .navlinks {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navlinks li + li {
    border-top: 1px solid var(--line);
  }
  html.has-menu .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: auto;
    min-height: 44px;
    padding: 0.3rem 0.65rem;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
  }
  html.has-menu .menu-toggle[aria-expanded="false"] + .site-nav {
    display: none;
  }
  html:not(.has-menu) .navbar {
    flex-wrap: wrap;
  }
  html:not(.has-menu) .site-nav {
    position: static;
    order: 1;
    flex-basis: 100%;
  }
  .navbar {
    gap: 10px;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  .avatar .outer {
    width: calc(100% - 26px);
    margin-top: 13px;
  }
  .avatar .feature-grid,
  .avatar .scene-grid,
  .commerce .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-layout {
    grid-template-columns: 1fr;
  }
  .feature-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .industrial .hero .wrap {
    min-height: 440px;
  }
  .industrial .hero-media {
    margin-right: -19px;
  }
  .edge-grid,
  .report-grid,
  .fraud-end {
    gap: 1.15rem;
  }
  .tech-grid {
    gap: 10px;
  }
  .tech-grid article {
    align-items: flex-start;
  }
  .tech-grid img {
    width: 45px;
    height: 45px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .section {
    padding-block: 37px;
  }
  .navbar {
    min-height: 63px;
  }
  .logo img {
    width: 98px;
  }
  .site-header .btn,
  .menu-toggle {
    font-size: 0.79rem;
    padding: 0.3rem 0.55rem;
    min-height: 44px;
  }
  .hero-grid,
  .edge-grid,
  .report-grid,
  .fraud-end {
    grid-template-columns: 1fr;
  }
  .hero-grid .hero-image {
    aspect-ratio: 1.4;
  }
  .hero-grid .hero-copy {
    min-width: 0;
  }
  .lead {
    margin-top: 0.75rem;
  }
  .actions {
    margin-top: 1rem;
  }
  .btn {
    min-height: 44px;
    padding: 0.55rem 0.78rem;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    justify-content: flex-start;
  }
  .avatar .outer {
    width: calc(100% - 16px);
    margin-top: 8px;
  }
  .avatar .panel {
    border-radius: 17px;
    margin-bottom: 12px;
  }
  .avatar .site-header {
    border-radius: 17px 17px 0 0;
  }
  .avatar .scene-pair {
    grid-template-columns: 1fr;
  }
  .avatar .scene-large {
    min-height: 200px;
  }
  .avatar .scene-large.work img {
    min-height: 185px;
  }
  .avatar .edge {
    padding-block: 25px;
  }
  .avatar .edge-steps {
    padding: 0.7rem;
  }
  .edge-steps ol {
    gap: 0.35rem;
    padding: 0.45rem 0.25rem;
  }
  .edge-steps li:not(:last-child)::after {
    right: -0.45rem;
  }
  .edge-steps img {
    width: 48px;
    height: 48px;
  }
  .edge-steps strong {
    font-size: 0.76rem;
  }
  .edge-steps small {
    font-size: 0.7rem;
  }
  .industrial .hero .wrap {
    width: 100%;
    min-height: 0;
    display: block;
  }
  .industrial .hero-copy {
    width: 100%;
    padding: 35px 15px 24px;
  }
  .industrial .hero-media {
    position: relative;
    inset: auto;
    margin: 0;
    height: auto;
  }
  .industrial .hero-media::after {
    background: linear-gradient(180deg, #21142670, transparent 36%);
  }
  .industrial .hero-media img {
    height: auto;
    aspect-ratio: 1.55;
  }
  .industrial .hero figcaption {
    right: 10px;
    bottom: 10px;
  }
  .feature-photos,
  .process-list,
  .fraud-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comparison {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .comparison .compare-arrow {
    transform: rotate(90deg);
    width: 36px;
    height: 36px;
  }
  .other-examples {
    grid-template-columns: 1fr;
  }
  .product-copy {
    order: -1;
  }
  .product .hero-grid {
    gap: 1rem;
  }
  .fraud .hero-grid .hero-image,
  .commerce .hero-grid .hero-image {
    aspect-ratio: auto;
  }
  .fraud .adv-grid {
    grid-template-columns: 1fr;
  }
  .fraud-flow li:nth-child(even)::after {
    display: none;
  }
  .fraud .report {
    border-radius: 0;
  }
  .commerce .tech-grid,
  .commerce .channels .grid {
    grid-template-columns: 1fr;
  }
  .commerce .tech-grid article {
    padding: 0.65rem 0.2rem;
  }
}
@media (max-width: 355px) {
  h1 {
    font-size: 1.98rem;
  }
  .avatar .wrap {
    width: calc(100% - 20px);
  }
  .grid {
    gap: 9px;
  }
  .card-copy {
    padding: 0.65rem;
  }
  .nav-cta .arrow {
    display: none;
  }
  .report-layout {
    grid-template-columns: 1fr;
  }
  .report-cover {
    min-height: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Keep the reference headline line breaks when both hero columns are visible. */
@media (min-width: 851px) {
  .fraud .hero h1,
  .commerce .hero h1 {
    font-size: clamp(2.45rem, 3.8vw, 3.65rem);
    text-wrap: wrap;
  }
  .industrial .feature-layout h2 {
    font-size: clamp(1.78rem, 2.8vw, 2.35rem);
    text-wrap: wrap;
  }
}
.avatar .site-header {
  background: linear-gradient(115deg, #fff, #faf1f9);
  border: 1px solid #fff;
  border-bottom-color: var(--line);
}
.avatar .top {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
