:root {
  --white: #ffffff;
  --blue: #32b4fa;
  --blue-light: #90acd3;
  --blue-light-2: #638fcf;
  --blue-light-3: #314b70;
  --blue-light-4: #2896d2;
  --blue-dark: #14274b;
  --blue-dark-2: #283e5c;
  --gray-light: #b8b8b8;
  --yellow: #ffc107;
  --yellow-dark: #efc63b;

  --risk-high: #ef5350;
  --risk-medium: #febf2e;
  --risk-low: #f7e72a;
  --risk-safe: #bde54e;
  --risk-none: #cfcfcf;
}

/*-----共用-----*/

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  line-height: 1.3;
  font-size: 1rem;
  font-family: "Microsoft JhengHei UI", "Microsoft JhengHei", Sans-serif;
  background: linear-gradient(#122e6d 0%, #152233 50%, #142b6a 100%);
  color: var(--white);
}

img {
  max-width: 100%;
  width: 100%;
}

i {
  margin: 0 5px;
}

a {
  color: var(--white);
  /* text-decoration: underline; */
  text-decoration: none;
}

a.btn-disabled {
  pointer-events: none;
}

::selection {
  background: rgba(255, 193, 7, 0.4);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(255, 193, 7, 0.4);
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  span {
    display: block;
  }
}

.ulset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section {
  margin: 20px auto;
}

.section h3.title {
  margin: 10px auto;
  font-weight: bold;
  text-align: center;
}

.section h3.title span {
  margin: 0 5px;
}

.box {
  padding: 12px 2%;
}

.d-dlex {
  display: flex;
}

.page-break {
  display: block;
  height: 0;
  page-break-after: always;
  break-after: page;
  clear: both;
}

.text-lg {
  font-size: 1.8rem;
}

p .text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-blue {
  color: var(--blue);
}

.text-yellow {
  color: var(--yellow);
}

.bg-blue {
  background-color: var(--blue);
}

.bg-blue-light-3 {
  background-color: var(--blue-light-3);
}

/*按鈕*/
.btn-wrap {
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  justify-content: center;
}

.btn-wrap li {
  text-align: center;
  margin: 8px 5px;
}

@media (max-width: 767px) {
  .btn-wrap {
    flex-direction: column;
  }

  .btn-wrap li {
    width: 100%;
  }

  .btn-wrap li .btn-lg {
    max-width: 100% !important;
  }
}

.btn {
  border-radius: 0;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-white {
  background-color: var(--white);
  color: var(--blue-dark);
}

.btn-white:hover {
  background-color: var(--yellow);
}

.btn-yellow {
  background-color: var(--yellow);
  color: var(--white);
}

.btn-yellow:hover {
  background-color: var(--yellow-dark);
}

.btn-yellow:active {
  background-color: var(--yellow-dark);
}

.btn-blue {
  color: var(--white);
  background-color: var(--blue);
}

.btn-blue:hover {
  background-color: var(--blue-light-4);
}

.btn i {
  margin: 0 5px;
}

.btn-blue-dark {
  color: var(--white);
  background-color: var(--blue-dark);
}

.btn-blue-dark:hover,
.btn-blue-dark:active {
  color: var(--white);
  background-color: var(--blue);
}


/* Loading 圖示 */
.icon-loading {
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-s {
  font-size: 20px;
  padding: 10px;
}

.btn-lg {
  font-size: 24px;
  padding: 15px 20px;
  max-width: 350px;
  margin: 5px auto 0 auto;
  padding: 15px 20px;
}

.btn-lg .icon {
  font-size: 2rem;
}

.btn-style01 {
  font-size: 1.4rem;
  line-height: 1.1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-shadow: 0.02em 0.02em 0.3em #999999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.btn-style01 .icon {
  font-size: 1.4rem;
}

.btn-style02 {
  font-size: 1.4rem;
  line-height: 1.1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-shadow: 0.02em 0.02em 0.3em #999999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.btn-style02 .icon {
  font-size: 1.3rem;
}

/*回到置頂*/
.go-top {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.go-top:active {
  transform: scale(0.92);
}

.go-top:hover {
  background: rgba(255, 255, 255, 0.35);
}

.go-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top .arrow {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  color: #FFFFFF;
}

.go-top .progress-ring {
  position: absolute;
  transform: rotate(-90deg);
}

.go-top .progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 3;
}

.go-top .progress-ring-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}


/*進度條*/
.progress-area {
  text-align: center;
  margin: 0 auto;
  position: relative;
}

.progress-area .progress {
  border-radius: 0;
}

/*風險共用*/
.risk-label {
  white-space: nowrap;
  padding: 5px 10px;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.risk-high {
  color: var(--white);
  background: var(--risk-high);
}

.risk-medium {
  color: var(--white);
  background: var(--risk-medium);
}

.risk-low {
  color: #333;
  background: var(--risk-low);
}

.risk-safe {
  color: var(--white);
  background: var(--risk-safe);
}

.risk-none {
  color: var(--white);
  background: var(--risk-none);
}

/*-----共用-表格RWD-----*/
.table-container {
  overflow-x: auto;
  position: relative;
}

.table-rwd {
  width: 100%;
  margin: 0 auto;
}

.table-rwd th,
.table-rwd td {
  border: 1px solid #999;
  padding: 10px;
}

.table-rwd th {}

.table-rwd td:first-of-type {
  font-weight: bold;
  text-align: center;
}

@media (max-width: 767px) {
  .table-rwd {
    display: block;
    border: 0;
  }

  .table-rwd thead {
    display: none;
  }

  .table-rwd tbody {
    display: block;
  }

  .table-rwd tr {
    display: flex;
    flex-direction: column;
    padding: 20px 0 0 0;
  }
}

/*表格-樣式01*/
.table-style01 {
  border-collapse: collapse;
  white-space: nowrap;
}

.table-style01 .risk-label {
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
}

.table-style01 tbody tr {
  border-bottom: 2px solid #90acd3;
}

.table-style01 tbody tr:last-child {
  border-bottom: none;
}

.table-style01 th,
.table-style01 td {
  border: none;
}

.table-style01 td {
  text-align: left;
}

.table-style01 span {
  margin: 0 5px;
  font-weight: bold;
}

@media (max-width: 767px) {
  .table-style01 tr {
    padding: 10px 0 0 0;
  }

  .table-style01 .risk-label {
    display: block;
    width: 100%;
  }
}

/*表格-樣式02*/
.table-style02 {
  padding: 0;
}

.table-style02 th,
.table-style02 td {
  border: 1px solid var(--blue-light);
  padding: 10px 15px;
}

.table-style02 td:first-child {
  background-color: var(--blue-dark);
  width: 200px;
  text-align: left;
}

.table-style02 .risk-label {
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
  font-size: 1.8rem;
  display: inline-block;
}

@media (max-width: 767px) {
  .table-style02 tr {
    padding: 0px;
  }

  .table-style02 td:first-child {
    width: 100%;
  }

  .table-style02 .risk-label {
    display: block;
    font-size: 1.4rem;
  }
}

/* 移除bootstrap手風琴的外殼預設樣式 */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.3);
  --bs-accordion-btn-icon-transform: rotate(-180deg);
}

.accordion-item {
  background-color: transparent !important;
  border: 3px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.accordion-button {
  background-color: transparent !important;
  color: #ffffff !important;
  box-shadow: none !important;
  padding: 0.9rem;
  font-size: 16px;
  font-weight: bold;
}

.accordion-button:not(.collapsed) {
  background-color: var(--blue-light) !important;
}

.accordion-button::after {
  filter: invert(1) grayscale(1) brightness(2);
  transition: transform 0.3s ease;
}

.accordion-body {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.accordion .icon {
  font-size: 18px;
  color: var(--white);
}





/*-----主架構-----*/
.wrapper {
  position: relative;
  top: -50px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.container-border {
  position: relative;
  border: 5px solid var(--white);
  width: 100%;
  padding: 50px 1.5%;
  margin: 50px 0 30px 0;
  z-index: 1;
}

.main .container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

@media screen and (max-width: 768px) {
  .container-border {
    margin: 20px 0 20px 0;
  }
}

/*header*/
.header {
  z-index: 2;
  top: 90px;
  position: relative;
}

.header .d-dlex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header a.logo {
  background-color: var(--blue-dark);
  padding: 5px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 5px solid var(--white);
  text-decoration: none;
  gap: 2px;
}

.header .logo .logo-img {
  object-fit: contain;
  pointer-events: none;
  top: 0;
  left: 0;
  max-width: 230px;
  margin-right: 7px;
}

.header .logo .logo-title {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0rem;
  font-family: Arial, Helvetica, sans-serif;
}

/*語言選單*/
.header .language-switcher {
  position: relative;
  z-index: 1050;
}

.header .lang-dropdown {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 10.9);
  color: #fff;
  padding: 0.3rem 5px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.header .lang-dropdown:hover,
.header .lang-dropdown:focus,
.header .lang-dropdown.show {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header .lang-dropdown:focus {
  box-shadow:
    0 0 0 0.15rem rgba(255, 255, 255, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.25);
}

/* 下拉選單 */
.header .lang-menu {
  margin-top: 0.2rem !important;
  min-width: 100px;
  padding: 0.5rem 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 46, 109, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.header .lang-menu .dropdown-item {
  color: #fff;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.header .lang-menu .dropdown-item:hover,
.header .lang-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding-left: 1.5rem;
}

.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
}

.header .lang-dropdown i,
.header .lang-menu i {
  width: 18px;
  text-align: center;
}

.header .lang-dropdown::after {
  margin-left: 0.6em;
  vertical-align: 0.15em;
}



@media screen and (max-width: 768px) {
  .header {
    top: 50px;
  }

  .header a.logo {
    border: 3px solid var(--white);
    padding: 5px 7px;
  }


  .header .logo .logo-img {
    max-width: 60px;
  }

  .header .logo .logo-title {
    font-size: 0.9rem;
  }

  .header .lang-dropdown {
    padding: 0.3rem 0.2rem;
    font-size: 0.85rem;
  }

  .header .lang-dropdown span {
    display: none;
  }

  .header .lang-menu {
    min-width: 100px;
  }
}

/*footer*/
.footer {
  position: relative;
  font-size: 12px;
  line-height: 1.5;
}

.footer .partners-box {
  position: relative;
  margin-bottom: 10px;
}

.footer .partners-box .list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .partners-box li img {
  width: 200px;
}

.footer .link-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 10px;
}

.footer .link-box>div {
  margin-bottom: 5px;
}

.footer .link-box .list {
  display: flex;
  justify-content: flex-end;
}

.footer .link-box .list li {
  padding: 0px;
}

.footer .link-box .list li a {
  color: var(--gray-light);
  text-decoration: none;
}

.footer .link-box .list li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer .link-box .list li::after {
  content: "|";
  padding: 0 10px;
  color: var(--gray-light);
}

.footer .link-box .list li:last-child:after {
  content: "";
  padding: 0;
}

.footer .copyright {
  color: var(--blue);
  text-decoration: none;
}

.footer .copyright a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--blue);
}

@media screen and (max-width: 768px) {
  .footer .link-box {
    flex-direction: column;
    align-items: center;
  }
}

/*-----首頁index-----*/
.index .img_box {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .index .img_box img {
    display: none;
  }
}

.index .welcome-box {
  display: flex;
  justify-content: center;
  color: var(--white);
  text-align: center;
  flex-direction: column;
  gap: 15px;
}

.index .welcome-box .welcome-area {
  font-size: 16px;
  line-height: 1.8;
}

.index .welcome-box .welcome-area span {
  display: block;
}

.index .welcome-box .welcome-area h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 0 10px rgba(80, 160, 255, 0.35),
    0 0 25px rgba(80, 160, 255, 0.15);
  position: relative;
}


.index .welcome-box .welcome-area h2 {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.5px;
}

.index .upload-area {
  position: relative;
  gap: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.index .choose-upload {
  margin: 10px auto;
}

.index .upload {
  display: flex;
  align-items: center;
  padding: 15px 17px;
  max-height: 150px;
  font-size: 1.2rem;
  line-height: 1.2;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  color: var(--white);
  transition: 0.3s ease-out;
  background-color: var(--yellow);
  text-shadow: 0.02em 0.02em 0.3em #999999;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.index .upload:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--yellow-dark);
}

.index .upload .icon-file {
  margin-right: 10px;
  font-size: 30px;
  display: inline-block;
}

.index .upload.ready {
  text-shadow: none;
  font-size: 120%;
  padding: 10px 10px;
  border: 1px solid var(--blue-light-2);
  background-color: transparent;
  margin-bottom: 10px;
  color: var(--blue-light);
}

.index .upload.ready .icon-file {
  display: none;
}

.index .upload:hover.ready {
  transform: translateY(-10px) scale(1);
}

.index .upload.label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index .upload input {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.index .upload .btn-remove {
  font-size: 25px;
  color: var(--blue-light);
  cursor: pointer;
  display: none;
  text-shadow: none;
  z-index: 5;
  margin-left: 10px;
}

.index .upload.ready .btn-remove {
  display: block;
}

.index .upload .btn-remove:hover {
  color: var(--yellow-dark);
}

.index .progress-area {
  max-width: 300px;
  width: 100%;
}

.index .agree-area {
  color: var(--gray-light);
}

.index .agree-area a {
  color: var(--gray-light);
  text-decoration: underline;
  margin: 0 5px;
}

.index .agree-area a:hover {
  color: var(--white);
}

.index .remind-area {
  color: var(--risk-high);
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 3px;
}

.index .remind-area .icon {
  font-size: 22px;
}

.index .remind-area .text {
  font-size: 16px;
  line-height: 1.2;
}



.index .note {
  color: var(--white);
  position: relative;
  text-shadow: 0.02em 0.02em 0.3em #000000;
}

.index .note a {
  text-decoration: underline;
}


.index .note ul {
  list-style: decimal;
  padding-left: 28px;
}

.index .note ul li {
  padding-left: 10px;
  margin-bottom: 15px;
  z-index: 2;
}

.index .note ul li span {
  display: block;
  white-space: normal;
}

.index .note ul li .highlight {
  position: relative;
  display: inline-block;
  margin: 0 3px;
}

.index .note ul.qa {
  list-style-type: none;
}
.index .note ul.qa .item {
  position: relative;
 padding-bottom:10px;

  background: rgba(49, 75, 112, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}



.index .note ul.qa .item h3 {
  position: relative;
  margin: 0 0 5px;
  padding-left: 24px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
}

.index .note ul.qa .item h3::before {
  content: "\f059";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #78b4ff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(120, 180, 255, .45);
}

.index .note ul.qa .item p {
  margin: 0;

  font-size: 1rem;
  line-height: 1.5;

  color: rgba(255, 255, 255, .82);
}


/*-----掃描結果頁scan-----*/
.scan {
  position: relative;
}

.scan .progress-area {}

.scan .progress-area>* {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.scan .progress-area .loading {
  display: flex;
  font-size: 28px;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

.scan .caption-area {}

.scan .caption-area>* {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.scan .caption-area .text {
  text-align: center;
  color: #a5f3fc;
  font-size: 16px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.scan .result-area {
  color: var(--yellow);
  line-height: 1.2;
}

.scan .result-area .item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1.3;
  font-weight: bold;
  text-align: center;
  margin: 10px;
}

.scan .scan .result-area .item>* {
  flex: 0 0 auto;
}

.scan .result-area .icon {
  font-size: 50px;
  margin: 10px;
}

.scan .chart-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.scan .detail-box {
  font-size: 16px;
  line-height: 1.2;
}

.scan .detail-box .item {
  border-bottom: 1px solid var(--blue-light);
  padding: 10px 0;
  margin-bottom: 8px;
}

.scan .detail-box .item.no-data {
  color: #999999;
  border-bottom: 1px solid #687c99;
}

.scan .detail-box .item .title {
  font-weight: bold;
}

.scan .detail-box .item .amount {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

.scan .detail-box .item .text {}

@media screen and (max-width: 768px) {

  .scan .progress-area .loading,
  .scan .result-area .item {
    display: block;
  }
}



/*-----使用條款隱私權政策privacy-----*/
.privacy {
  position: relative;
}

.privacy .item {
  border-bottom: 1px solid var(--blue-light);
  padding: 15px 0;
  margin-bottom: 10px;
}

.privacy .title {
  margin-bottom: 5px;
}

.privacy .ulset {
  margin-left: 20px;
}

.privacy .article {
  margin-bottom: 30px;
}