:root {
  --teal: #238183;
  --orange: #e07850;
  --bg-white: #fcfdfd;
}
#link-area .block {
  border: 1px solid #024079;
  border-radius: 4px;
  padding: 1rem;
  padding-bottom: calc(1rem - 10px);
  margin: 3rem 0;
  position: relative;
  background-color: #fff;
}
.circle {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #98d24d;
  margin: 1.5rem 1rem 0;
  line-height: 1.4;
}
.circle span {
  font-size: 1.75rem;
}
/* flow: fixed-width grid at all sizes; .flow-section scrolls horizontally when it doesn't fit */
.flow-section {
  padding: 46px 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* background: var(--bg-white); */
}
.flow {
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 280px 60px 280px 60px 280px;
  align-items: start;
  row-gap: 14px;
  width: max-content;
  min-width: 100%;
}
.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;
  line-height: 1.4;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-box.mid {
  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-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: 8px 0;
}
.flow-bullets {
  grid-row: 3;
  list-style: none;
  padding: 0 2px;
}
.flow-bullets li {
  font-weight: 400;
  line-height: 1.55;
  color: #1e2222;
  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: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* core feature blocks: placeholder circle (image to be dropped in later) + title/list */
.feature-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 850px;
  margin: 3rem auto 0;
}
.feature-block:first-of-type {
  margin-top: 2rem;
}
.feature-img {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0ede9;
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-content {
  flex: 1 1 0;
  min-width: 280px;
}
.feature-title {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #779b9b;
  color: #1e2222;
  font-size: 1.4rem;
}
.feature-list, .structure-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li, .structure-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #333;
}
.feature-list li:last-child, .structure-list li:last-child {
  margin-bottom: 0;
}
.feature-list li strong {
  display: block;
}
.feature-desc {
  display: block;
}
.feature-list li::before, .structure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--orange);
}

/* ── Oracle integration ── */
.integ-section {
  padding: 46px 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-white);
}
.integ-frame {
  margin-top: 22px;
}

.integ-wrap,
.integ-wrap-width {
  max-width: 900px;
  margin: 0 auto;
}
.integ-wrap {
  background-color: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
}
.integ-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.integ-systems {
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.integ-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
}
.integ-logo img {
  max-width: 100%;
  width: 150px;
  display: block;
}
.integ-logo img.ebs {
  max-height: 300px;
}
.integ-systems-compact {
  gap: 2rem;
}
.integ-systems-left {
  justify-content: flex-start;
}
.integ-systems-compact .integ-logo {
  flex: 0 0 auto;
}

.integ-brand {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.integ-brand img {
  max-width: 100%;
  display: block;
}
.integ-systems:has(.integ-erp-brands) {
  gap: 24px;
}
.integ-systems:has(.integ-erp-brands) .integ-brand img {
  width: 320px;
}
.integ-erp-brands {
  flex: 1 1 auto;
  max-width: 410px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  padding: 14px 16px;
}
.integ-erp-brands > div {
  flex: 1 1 0;
  min-width: 0;
}
.integ-erp-brands span {
  display: block;
  font-weight: 700;
  color: #1e2222;
  margin-bottom: 8px;
}
.integ-erp-brands ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.integ-erp-brands li {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
  text-wrap: pretty;
}
.integ-erp-brands li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
}

.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: #1a6466;
  font-size: 28px;
  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 {
  /* max-width: 800px; */
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.integ-card {
  background-color: #f0efef;
  border-radius: 4px;
  padding: 16px 20px;
}
.integ-card h4 {
  margin: 0 0 8px;
  color: #1e2222;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}
#turnkey h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
#turnkey .container {
  max-width: 900px;
}
.integ-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.integ-card li {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  padding-left: 12px;
  position: relative;
  margin-bottom: 6px;
  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: 22px;
  text-align: center;
}
.btn-outline {
  display: inline-block;
  background: none;
  color: var(--teal);
  border: 1.5px 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: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* multi-company management: 3-step circle diagram + comparison table */
.mc-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.mc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mc-circle {
  width: 160px;
  height: 160px;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: #f0ede9;
}
.mc-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-label {
  margin: 0;
  color: #1e2222;
  font-size: 1.15rem;
}
.mc-arrow {
  color: var(--teal);
  font-size: 1.75rem;
  font-weight: 700;
}
.mc-table-wrap {
  width: 100%;
  margin: 0 auto;
  max-width: 800px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.mc-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}
.mc-table th,
.mc-table td {
  padding: 1.5rem 1rem;
  text-align: left;
}
.mc-table thead th {
  color: #1e2222;
  font-size: 1.05rem;
  font-weight: 700;
}
.mc-table tbody th {
  color: #1e2222;
  font-weight: 700;
  white-space: nowrap;
}
.mc-table tbody td {
  color: #333;
}
.mc-table tbody tr {
  border-top: 1px solid #e2e2e2;
}

/* apex upgrade results: 3-up circle placeholder + title/text */
.benefit-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-color: #f0ede9;
}
.benefit-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benefit-title {
  color: #1e2222;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.benefit-item {
  margin-top: 2rem;
}

.compare-list {
  max-width: 530px;
  margin: 2rem auto 0;
}
.compare-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.compare-item:last-child {
  margin-bottom: 0;
}
.check-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.compare-item p {
  margin: 0;
  color: #333;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.adv-card {
  position: relative;
  background-color: #f0efef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.adv-icon {
  width: 40px;
  height: 40px;
  margin-right: 5px;
  align-self: flex-start;
}
.adv-title {
  font-size: 1.1rem;
  color: #1e2222;
  margin-bottom: 0.5rem;
}
.adv-card p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

/* D2K vs. APEX comparison table */
.d2k-table-wrap {
  margin: 2.5rem auto;
  max-width: 900px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 2rem;
  overflow: hidden;
}
.d2k-table {
  width: 100%;
  border-collapse: collapse;
}
.d2k-table th,
.d2k-table td {
  padding: 1.25rem 1rem;
  text-align: center;
}
.d2k-table thead th {
  color: #1e2222;
  font-size: 1.15rem;
  font-weight: 700;
}
.d2k-table tbody th {
  text-align: left;
  color: #1e2222;
  font-weight: 700;
  white-space: nowrap;
}
.d2k-table tbody td {
  color: #333;
}
.d2k-table tbody tr {
  border-top: 1px solid #e2e2e2;
}

@media (max-width: 767px) {
  .flow-section {
    padding: 32px 16px;
  }
  .flow {
    margin-top: 20px;
  }

  .d2k-table-wrap {
    padding: 0.5rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .d2k-table {
    width: max-content;
    min-width: 100%;
  }
  .d2k-table tbody th {
    white-space: nowrap;
  }
  .d2k-table tbody td {
    white-space: nowrap;
  }

  .mc-table-wrap {
    padding: 0.5rem 1.25rem;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }
  .mc-flow {
    flex-direction: column;
  }
  .mc-arrow {
    transform: rotate(90deg);
  }
  .feature-img {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .integ-logo img {
    width: 100px;
  }
  .integ-systems {
    flex-direction: column;
    gap: 12px;
  }
  .integ-systems-compact {
    flex-direction: column;
    gap: 12px;
  }
  .integ-link {
    font-size: 15px;
  }
  .integ-link i {
    transform: rotate(90deg);
  }
  .integ-systems:has(.integ-erp-brands) {
    flex-direction: column;
    gap: 20px;
  }
  .integ-erp-brands {
    width: 100%;
    padding: 16px 18px;
    gap: 16px;
  }

  .integ-cards {
    grid-template-columns: 1fr;
  }
  .feature-list li {
    line-height: 1.4;
  }
}

@media (min-width: 950px) {
  #link-area .block:last-child {
    margin-top: 7rem;
  }
  #link-area .block-left:last-child {
    margin-top: 9rem;
  }
  .block-left::before,
  .block-left::after,
  .block-right::before,
  .block-right::after {
    content: "";
    width: 0;
    height: 0;
    border-width: 12px 16px;
    border-radius: 6px 0 0 6px;
    border-style: solid;
    position: absolute;
    top: calc(50% - 12px);
  }
  .block-left::before {
    border-color: transparent transparent transparent #024079;
    right: -32px;
  }
  .block-left::after {
    border-color: transparent transparent transparent #fdfcfc; /* 視覺補償 */
    right: -31px;
  }
  .block-right::before {
    border-color: transparent #024079 transparent transparent;
    left: -32px;
  }
  .block-right::after {
    border-color: transparent #fdfcfc transparent transparent;
    left: -31px;
  }
}

/* ── openGIX 導入常見問題 #faq ── */
#faq {
  scroll-margin-top: 100px;
}
.faq-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.faq-card {
  background-color: #f0efef;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.faq-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.12);
}
.faq-title {
  color: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-card p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-card strong {
  color: #238183;
}
@media (max-width: 991px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
