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

:root {
  --bg: #eceeee;
  --bg-white: #fcfdfd;
  --dark: #1e2222;
  --dark-mid: #3a3d3d;
  --teal: #238183;
  --teal-dark: #1a6466;
  --teal-soft: rgba(35, 129, 131, 0.1);
  --orange: #e07850;
  --orange-soft: rgba(224, 120, 80, 0.13);
  --rule: #dbdfde;
  --band: var(--orange); /* topbar + footer band */
  --accent: var(--teal); /* eyebrows / labels */
}

body {
  background: var(--bg);
  font-family: "Noto Sans TC", "DM Sans", sans-serif;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
}

.email-wrap {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  background: var(--bg-white);
  border: 1px solid var(--rule);
}

/* ── topbar ── */
.topbar {
  background: var(--band);
  padding: 16px 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.topbar-logo-img {
  width: 150px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.topbar-date {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  text-align: right;
  line-height: 1.5;
}

/* ── hero image ── */
.hero-image {
  position: relative;
  display: block;
  background: var(--dark);
  border-bottom: 1px solid var(--rule);
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* ── hero text ── */
.hero {
  padding: 46px 36px 44px;
  background: var(--bg);
  color: var(--dark);
}
.hero-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: -50px 0 0;
}
.hero-logo {
  margin: 0 0 -1px 7px;
  width: 300px;
  height: auto;
  display: block;
}
.hero-title {
  margin: 35px 0 0 -35px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--teal-dark);
  text-wrap: pretty;
}
.hero-title strong {
  font-weight: 600;
  color: var(--teal-dark);
}
.hero-body {
  font-weight: 400;
  line-height: 1.95;
  color: var(--dark-mid);
  text-wrap: pretty;
}
.hero-head + .hero-body {
  margin-top: 10px;
}
.hero-body + .hero-body {
  margin-top: 16px;
}
.hero-body em {
  font-style: normal;
}

/* ── shared section heads ── */
.section-label {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.45;
  text-wrap: pretty;
}
.section-body {
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark-mid);
  text-wrap: pretty;
}

/* ── showcase (system screenshots) ── */
.showcase-section {
  padding: 46px 36px 54px;
  text-align: center;
  background: var(--teal);
  border-bottom: 1px solid var(--rule);
}
.showcase-swiper {
  margin-top: 26px;
  padding-bottom: 56px;
}
.showcase-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-swiper .swiper-slide a {
  display: block;
  line-height: 0;
}
.showcase-swiper .swiper-slide img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
}
.showcase-swiper .swiper-pagination {
  bottom: 10px;
}
.showcase-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}
.showcase-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--orange);
}
.showcase-swiper .swiper-button-prev,
.showcase-swiper .swiper-button-next {
  color: #fff;
  width: 34px;
  height: 34px;
}
.showcase-swiper .swiper-button-prev:after,
.showcase-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

/* ── flow ── */
.flow-section {
  padding: 46px 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-white);
}
.flow {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr;
  align-items: start;
  row-gap: 14px;
}
.flow-box {
  grid-row: 2;
  align-self: start;
  margin-top: 75px;
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  padding: 18px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-box.mid {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.flow-arrow {
  grid-row: 2;
  align-self: start;
  margin-top: 75px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
}
.flow-source {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.flow-source .flow-box {
  align-self: stretch;
  width: 100%;
  margin-top: 0;
  flex: 1;
}
.flow-mid-col,
.flow-end-col {
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
}
.flow-mid-col {
  grid-column: 3;
}
.flow-end-col {
  grid-column: 5;
}
.flow > .flow-arrow:nth-child(2) {
  grid-column: 2;
}
.flow > .flow-arrow:nth-child(4) {
  grid-column: 4;
}
.flow-mid-col .flow-box,
.flow-end-col .flow-box {
  align-self: stretch;
}
.flow-mid-col .flow-bullets,
.flow-end-col .flow-bullets {
  margin-top: 11px;
}
.flow-box-source {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  gap: 8px;
}
.flow-box-title {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.flow-box-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.flow-box-bullets li {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 11px;
  position: relative;
  margin-top: 4px;
  text-wrap: pretty;
}
.flow-box-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}
.flow-or {
  text-align: center;
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin: 10px 0;
}
.flow-bullets {
  grid-row: 3;
  list-style: none;
  padding: 0 2px;
}
.flow-bullets li {
  font-weight: 400;
  line-height: 1.55;
  color: var(--dark);
  padding-left: 11px;
  position: relative;
  text-wrap: pretty;
  font-size: 15px;
}
.flow-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.flow-return {
  grid-row: 2;
  grid-column: 3 / 6;
  align-self: start;
  position: relative;
  height: 61px;
}
.flow-return .ret-path {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 16px;
  bottom: 6px;
  border: 1.6px solid var(--teal);
  border-bottom: none;
}
.flow-return .ret-down {
  position: absolute;
  bottom: 0;
  left: 24.2%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--teal);
}
.flow-return .ret-label {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translate(-50%, -50%);
  background: var(--orange);
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  color:#ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── advantages (layer cards) ── */
.section {
  padding: 46px 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.layer-cards {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
}
.layer-card {
  background: transparent;
}
.layer-card + .layer-card {
  border-top: 1px solid var(--rule);
}
.layer-body {
  padding: 18px 0;
  text-align: left;
}
.layer-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
}
.layer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  text-wrap: pretty;
}
.adv-no {
  color: var(--orange);
  font-weight: 700;
}
.layer-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.8;
  text-wrap: pretty;
}
.tag-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.tag {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid rgba(35, 129, 131, 0.2);
  padding: 2px 9px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.layer-cards .layer-card:nth-child(1) .tag:first-child {
  border-width: 1px;
  margin: 0 0 0 -5px;
}
.layer-cards .layer-card:nth-child(1) .tag:last-child,
.layer-cards .layer-card:nth-child(3) .tag:last-child {
  margin: 0 120px 0 0;
}
.layer-cards .layer-card:nth-child(2) .tag:last-child {
  margin: 0 230px 0 0;
}

/* ── Oracle integration ── */
.integ-section {
  padding: 46px 36px;
  background: var(--bg-white);
}
.integ-frame {
  margin-top: 22px;
}
.integ-systems {
  margin-top: 15px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.integ-systems:has(.integ-brand) {
  height: auto;
  min-height: 100px;
}
.integ-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
}
.integ-logo img {
  max-height: 120px;
  max-width: 100%;
  width: auto;
  display: block;
}
.integ-logo img:not(.ebs) {
  margin: 0 0 30px;
}
.integ-logo img.ebs {
  max-height: 300px;
}
.erp-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  width: 100%;
  padding: 0 8px;
}
.erp-grid img {
  max-width: 110px;
  max-height: 34px;
  width: auto;
  height: auto;
  display: block;
}
.integ-link {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 700;
}
.integ-link span {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.integ-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.integ-card {
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  padding: 18px 18px 20px;
}
.integ-card--light {
  background: var(--bg);
}
.integ-card--light h4 {
  color: var(--dark-mid);
}
.integ-card--light li {
  color: var(--dark-mid);
  font-weight: 400;
}
.integ-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.integ-card ul {
  list-style: none;
}
.integ-card li {
  font-size: 15px;
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
  margin-bottom: 8px;
  text-wrap: pretty;
}
.integ-card li:last-child {
  margin-bottom: 0;
}
.integ-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.integ-cta {
  margin-top: 30px;
  text-align: center;
}
.btn-outline {
  display: inline-block;
  background: none;
  color: var(--teal);
  border: 1px solid var(--teal);
  font-family: "Noto Sans TC", "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 11px 30px;
  text-decoration: none;
  border-radius: 3px;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.divide-line {
  margin: 0 auto;
  width: 90%;
  border-top: 2px solid var(--teal);
}

.integ-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  padding: 18px 25px;
}
.integ-brand > div {
  flex: 1 1 140px;
  min-width: 140px;
}
.integ-brand span {
  display: block;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: 8px;
  white-space: nowrap;
}
.integ-brand ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.integ-brand li {
  font-size: 15px;
  font-weight: 400;
  color: var(--dark-mid);
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
  text-wrap: pretty;
}
.integ-brand li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark-mid);
}

/* ── CTA ── */
.cta-section {
  padding: 50px 36px;
  text-align: center;
  background: var(--teal);
}
.cta-eyebrow {
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.cta-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.4;
}
.cta-body {
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.92);
  max-width: 440px;
  margin: 0 auto;
  text-wrap: pretty;
}
.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #ffffff;
  font-family: "Noto Sans TC", "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 13px 38px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
  margin-top: 20px;
}
.cta-btn:hover {
  background: #f3a98e;
}

/* ── footer ── */
.footer {
  background: var(--band);
  padding: 22px 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── tweaks panel ── */
#tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 230px;
  background: #fff;
  border: 1px solid #e0ddd9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  z-index: 9999;
  font-family: "DM Sans", sans-serif;
}
#tweaks-panel.visible {
  display: block;
}
.tweaks-header {
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-close {
  cursor: pointer;
  color: #b9bdbc;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
}
.tweaks-body {
  padding: 16px 14px;
}
.tweaks-row {
  margin-bottom: 16px;
}
.tweaks-row:last-child {
  margin-bottom: 0;
}
.tweaks-row-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8d8c;
  margin-bottom: 8px;
}
.tweaks-seg {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.tweaks-seg button {
  flex: 1;
  background: none;
  border: none;
  padding: 7px 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #6a6d6c;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.tweaks-seg button + button {
  border-left: 1px solid var(--rule);
}
.tweaks-seg button.active {
  background: var(--teal);
  color: #fff;
  font-weight: 500;
}

@media (max-width: 768px) {
  .integ-systems {
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    gap: 20px;
  }
  .integ-brand,
  .integ-logo {
    width: 100%;
  }
  .integ-brand {
    padding: 18px 20px;
    gap: 0;
  }
  .integ-link .integ-arrow {
    display: inline-block;
    transform: rotate(90deg);
  }
  .integ-logo img.ebs {
    max-height: 250px;
  }
}

@media (max-width: 628px) {
  .email-wrap {
    margin: 0;
    border: none;
  }
  .integ-cards {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .layer-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .tag-row {
    justify-content: flex-start;
    margin-top: 8px;
  }
  .tag-row .tag {
    margin: 0 !important;
  }
  .hero-head {
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    text-align: center;
    margin: 0 !important;
  }
  .showcase-swiper .swiper-button-prev,
  .showcase-swiper .swiper-button-next {
    display: none;
  }
}
