/*原本的跟目錄樣式*/
html {
  font-size: 16px;
  /* scroll-behavior: smooth */
}

:root {
  --purple: #9e90d6;
  --white: #fff;
  --darken: #323232;
  --black: #000000;
  --blue: #3665c1;
}

body {
  color: #323232;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  background-color: #dfe3e4;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  line-height: 1.5;
}

h1 {
  font-size: clamp(32px, 3.5vw, 33px);
}

h2 {
  font-size: clamp(30px, 3vw, 26px);
}

h3 {
  font-size: clamp(25px, 2.75vw, 22px);
  color: var(--blue);
}

h4 {
  font-size: clamp(20px, 2vw, 16px);
}

ol,
ul {
  padding-left: 1.5rem;
}

#all {
  max-width: 800px;
  margin: 0 auto;
}

.hr::after {
  content: "";
  width: 115px;
  height: 4px;
  background-color: #8188d0;
  display: block;
  margin: 0.75rem auto 3rem;
}

header img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.content-flow {
  background-color: #e5efff;
  padding-bottom: 3rem;
}

.content-flow p {
  background-color: var(--white);
}

.top-space {
  padding-top: 8rem !important;
}

/* 浮動區塊 */
.floating-box {
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  background-color: #ffffff;
  z-index: 10;
  padding: 20px 15px;
  border-radius: 10px;
}

/* 給每個區塊添加左邊的垂直線 */
.floating-box .row div {
  position: relative;
  padding-left: 20px;
  /* 給內容留出空間 */
}

/* 添加垂直線 */
.floating-box .row div::before {
  content: "";
  position: absolute;
  top: 50%;
  /* 垂直居中 */
  left: 0;
  /* 緊靠容器左邊 */
  width: 2px;
  height: 59px;
  background: #a98df6;
  /* 紫色線條 */
  transform: translateY(-50%);
  /* 偏移自身高度的一半，達到居中 */
}

.floating-box > .row {
  margin-left: 3.5%;
}

.row.float {
  color: #323232;
}

.floating-box .row .highlight {
  font-weight: 500;
  /* 字體重量調為細字 */
  font-size: 17px;
  /* 調整字體大小 */
  color: #000;
  /* 符合設計顏色 */
  letter-spacing: 1px;
}

.list-group {
  max-width: 560px;
  justify-content: start;
  text-align: left;
}

.list-title {
  width: 200px;
  background-color: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
}

.list-content {
  width: 300px;
  background-color: var(--white);
  display: flex;
  align-items: center;
}

.img-flow {
  position: absolute;
  width: 360px;
  height: 240px;
  bottom: 17px;
  right: -15px;
}

.img-benefit {
  width: 120px;
  height: 120px;
}

.content-benefit {
  background-image: url(../image/bg.jpg);
  background-size: auto;
}

.btn {
  background-color: var(--blue);
  padding: 0.75rem 6rem;
}

.btn:hover {
  background-color: #00348b;
}

#footer {
  background-color: var(--white);
}

.copyright {
  background-color: var(--darken);
}

@media (max-width: 795px) {
  .content-flow {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 0;
  }

  .list {
    justify-content: center;
  }

  .list-group {
    justify-content: center;
    padding-right: 0;
  }

  .img-flow {
    position: unset;
  }
}

@media (max-width: 768px) {
  /*浮動區塊*/
  .floating-box > .row {
    margin-left: 12%;
  }

  .floating-box > .row > .smfloat {
    margin-bottom: 2%;
  }

  .floating-box {
    /* 調整寬度 */
    margin-left: auto;
    margin-right: auto;
  }

  .header-img {
    text-align: center;
  }

  /* 手機畫面下的全局樣式 */

  .floating-box,
  .header,
  .row.float {
    width: 87%;
    /* 統一設置寬度 */
    margin-left: auto;
    margin-right: auto;
    /* 水平居中 */
  }

  .top-space {
    margin-top: 2rem;
  }
}

@media (max-width: 556px) {
  .top-space {
    margin-top: 5rem;
  }

  .list-group {
    max-width: 400px;
  }

  .list-title {
    width: 178px;
    height: 57px;
  }

  .list-title h4 {
    font-size: 16px;
  }

  .list-content {
    width: 190px;
    height: 57px;
  }
}

@media (max-width: 450px) {
  .top-space {
    display: block;
    margin-top: calc(20% + 2rem);
  }
}
