@charset "utf-8";

.error { color:#c90000; }

@keyframes fadeInUpSoft {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInUpSoft {
  animation-name: fadeInUpSoft;
}

/* ===================== brand logo ===================== */
.brands {
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

/* 上下漸層遮罩 */
.brands::before,
.brands::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 30px; /* 遮罩高度，可調 */
  z-index: 2;
  pointer-events: none;
}
.brands::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
}
.brands::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.brandTrack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 600ms ease;
}
.brandRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
/* 預設 8 個 */
.brandRow > a {
  box-sizing: border-box;
  padding: 10px 0;
  flex: 0 0 12.5%;
  display: inline-block;
}
.brandRow img {
  width: 100%;
  height: auto;
  display: block;
}

/* 電腦 => 6 個 */
@media (min-width: 1025px) {
  .brandRow > a { flex: 0 0 12.5%; }
}
/* 平板 => 5 個 */
@media (min-width: 768px) and (max-width: 1024px) {
  .brandRow > a { flex: 0 0 20%; }
}
/* 手機 => 3 個 */
@media (max-width: 767px) {
  .brandRow > a { flex: 0 0 33.33%; }
}

/* ===================== support ===================== */
.support {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* 區塊間距 */
}

/* 區塊（桌機、平板：兩欄） */
.support .items {
    width: calc(50% - 15px);
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover 效果（可有可無） */
.support .items:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* 區塊標題 */
.support .items h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--main-gray);
    padding-left: 16px;
    border-left: 6px solid var(--main-green);
    /*border-bottom: 1px solid var(--main-green);*/
    padding-bottom: 6px;
}

/* 列表樣式 */
.support .items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.support .items ul li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px dotted #D1D1D1;
    color: var(--main-lightgray);
}

.support .items ul li:last-child {
    border-bottom: 0;
}

.support .items ul li i {
    width: 28px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--main-green);
}

.support .items ul li span {
    padding-left: 10px;
}

.support .items ul li span a {
    color: var(--main-lightgray);
    text-decoration: none;
}
.support .items ul li span a:hover {
    color: var(--main-green);
    text-decoration: underline;
}

/* 手機：一欄 */
@media (max-width: 768px) {
    .support .items {
        width: 100%;
    }
}

/* ===================== service ===================== */
/* 整體容器 */
.contact-info {
    background: #f3f3f3;
    padding: 1rem;
    border-radius: 18px;
    width: 42%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 每一筆資訊卡片 */
.contact-info .items {
    flex: 1 1 calc(50% - 20px);
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.2s ease;
    min-width: 100%;
}

/* hover 效果 */
.contact-info .items:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* 標題 */
.contact-info .items h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    /*padding-left: 1.4rem;*/
    border-radius: 1.2rem;
    line-height: 2.4rem;
    background-color: var(--main-green);
    color: #FFF;
    text-align: center;
}

/* 移除 ul 預設樣式 */
.contact-info ul.info {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 每一列資料 */
.contact-info ul.info li {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.contact-info ul.info li:last-child {
    border-bottom: none;
}

/* ---- 修正 icon 對齊不一致問題（關鍵） ---- */
.contact-info ul.info li i {
    width: 28px;
    height: 28px;                 /* 固定高度 */
    display: flex;                /* 讓 i 變成 flex 容器 */
    align-items: center;          /* 垂直置中 */
    justify-content: center;      /* 水平置中 */
    font-size: 1.15rem;           /* 適當大小，不會超出框 */
    color: var(--main-skyblue);
    flex-shrink: 0;               /* 避免因文字過長被壓扁 */
}

/* 文字 */
.contact-info ul.info li span {
    color: var(--main-lightgray);;
    padding-left: 10px;
}

.contact-info ul.community {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;           /* 讓 li 横向排列 */
    gap: 10px;               /* 圖示間距 */
    align-items: center;     /* 垂直置中 */
}

.contact-info ul.community li {
    margin: 0;
    padding: 0;
}

.contact-info ul.community li a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;             /* 圓按鈕大小 */
    height: 40px;
    border-radius: 50%;      /* 變圓 */
    background: #D7E8EC;
    color: #333;

    font-size: 20px;
    transition: 0.3s ease;
}

.contact-info ul.community li a:hover {
    background: var(--main-green);     /* hover 顏色 */
    color: #fff;
}

/* 地址或電話資訊 */
.contact-info span { margin-top:-5px; }
.contact-info span,
.contact-info a {
    display: block;
    font-size: 1rem;
    color: var(--main-lightgray);
    text-decoration: none;
}
/* hover */
.contact-info a:hover {
    color: var(--main-green);
    text-decoration: underline;
}

/* 手機版：一欄 */
@media (max-width: 768px) {
    .contact-info {
        width: 100%;
        gap: 16px;
    }
    .contact-info .items {
        flex: 1 1 100%;
    }
}

/* ===================== to top button ===================== */
.topBtn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(64, 160, 155, 0.6);
  opacity: 0; /* 預設透明 */
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  transition: all 0.4s ease;
  z-index: 99999;
  visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 半透明效果 */
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* icon */
.topBtn i {
  font-size: 1.8rem;
  color: #FFF;
}

/* hover */
.topBtn:hover {
  background: rgba(0, 0, 0, 0.6);
  /*background: rgba(28, 61, 143, 0.5);*/
  opacity: 1 !important;
}

/* 顯示按鈕：淡入 + 上滑 */
.topBtn.active {
  visibility: visible;
  opacity: 0.95;
  transform: translateY(-8px);
  animation: floatUpDown 2.6s ease-in-out infinite;
}

/* 上下微浮動動畫 */
@keyframes floatUpDown {
  0% { transform: translateY(-8px); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(-8px); }
}