:root {
  --color0: #000;
  --color1: #111;
  --color2: #222;
  --color3: #333;
  --color4: #444;
  --color5: #555;
  --color6: #666;
  --color7: #777;
  --color8: #888;
  --color9: #999;
  --colora: #aaa;
  --colorb: #bbb;
  --colorc: #ccc;
  --colord: #ddd;
  --colore: #eee;
  --colorf: #fff;
  --colorz1: #604a79;
  --colorr1: #e4dfec;
}

:root {
  --font: "Microsoft JhengHei", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  margin: 0;
}

body {
  font-family: var(--font);
  background-color: var(--colorf);
  font-size: 16px;
  color: var(--color0);
  margin: 0;
  padding: 0;
}

.contact-title h2 {
  font-size: 24px;
  font-weight: bold;
  color: var(--colorz1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-title h2::before,
.contact-title h2::after {
  content: "";
  width: 24px;
  height: 24px;
  background: url(../images/c_title.svg) no-repeat center;
  margin: 0 10px;
  background-size: cover;
}

.contact-title h2::after {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .contact-title h2 {
    font-size: 28px;
  }
  .contact-title h2::before,
  .contact-title h2::after {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 992px) {
  .contact-title h2 {
    font-size: 32px;
  }
  .contact-title h2::before,
  .contact-title h2::after {
    width: 40px;
    height: 40px;
  }
}

.inner-img {
  overflow: hidden;
}

.inner-img img {
  min-height: 333px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.inner-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: relative;
}

@media (max-width: 575.99px) {
  .inner-content {
    padding: 0 20px;
  }
}

.inner-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--colorr1);
}

.inner-content h3 {
  font-weight: bold;
  font-size: 20px;
  color: var(--colorz1);
}

@media (min-width: 992px) {
  .inner-content h3 {
    font-size: 26px;
  }
}

.inner-content span {
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--colorz1);
  margin: 20px 0 25px;
}

.inner-content p {
  font-size: 16px;
}

@media (min-width: 768px) {
  .inner-content p {
    font-size: 18px;
  }
}

.inner-content p:last-child {
  margin-bottom: 0;
}

.empty {
  height: 30px;
}

@media (min-width: 768px) {
  .empty {
    height: 50px;
  }
}


.card {
  position: relative;
  padding: 20px;
  margin-right: 30px;
  background-color: #fafafa;
  border: none;
  border-radius: 0;
  min-height: 430px;
  height: 430px;
  overflow: initial;
  transition: all 0.3s ease-in-out;
}

.card-img {
  /*position: absolute;*/
  top: 20px;
  left: 20px;
  width: 100%;
  height: 180px;
  transition: all 0.3s ease-in-out;
}

.card-img img {
  min-height: 180px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-content {
  margin-top: 10px;
  transition: all 0.6s ease-in-out;
}



.card-content h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--color0);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-shrink {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.card-shrink::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0), rgba(250, 250, 250, 1));
  z-index: 1;
}
@media (max-width: 765px) and (min-width: 465px) {
  .card-content {
    margin-top: 40px;
  }
  .card-shrink{
    height: 100px;
  }
}

/* 添加卡片展開時隱藏漸變效果 */
.card.on .card-shrink::before {
  display: none;
}

.more {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 16px;
  color: var(--colorz1);
  text-decoration: none;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.more svg {
  fill: var(--colorz1);
  transition: all 0.3s ease-in-out;
}

.more:hover {
  color: var(--colorz1);
}

/* 添加卡片展開時的樣式 */
.card.on {
  background-color: var(--colorz1);
}

.card.on .card-img {
  width: 0;
  height: 0;
}

.card.on .card-content {
  margin-top: 0px;
}

.card.on .card-content h3,
.card.on .card-content p {
  color: var(--colorf);
}

.card.on .card-shrink {
  height: 320px;
  overflow: auto;
}

.card.on .more {
  color: var(--colorf);
}

.card.on .more svg {
  fill: var(--colorf);
  transform: rotate(270deg);
}


.list-con {
  position: relative;
  padding: 20px 0;
  z-index: 1;
}

.list-con::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 1px;
  height: 100%;
  /* background-color: var(--colorr1); */
  border: 1px dashed var(--colorr1);
}

.list-con li {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 30px;
}

.list-con li:last-child {
  margin-bottom: 0;
}

.list-con-icon {
  width: 50px;
  height: 50px;
  background-color: var(--colorf);
  border: 4px solid var(--colorr1);
  border-radius: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-con-text {
  margin-left: 25px;
  width: calc(100% - 25px - 50px);
}

.list-con-text span {
  font-size: 18px;
  font-weight: bold;
  color: var(--colorz1);
}

.list-con-text p {
  margin: 0;
  font-size: 18px;
  color: var(--color3);
  font-family: sans-serif;
}

.map {
  height: 350px;
  border: 4px solid var(--colorr1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}