* {
  box-sizing: border-box;
}
body {
  font-family: "Noto Sans TC", sans-serif;
  margin: 0;
  color: #58595B;
}

.main {
  background: white;
  padding: 2rem 1.5rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}
.main .content {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main .info {
  flex: 1;
  z-index: 2;
}
.main .info .label {
  font-size: 0.8rem;
  color: #192b47;
  text-transform: uppercase;
  white-space: nowrap;
}
.main .info .badge {
  display: inline-block;
  background-color: #192b47;
  color: white;
  padding: 2px 10px;
}
.main h1 {
  font-size: 1.5rem;
  margin: 1rem 0;
  line-height: 1.4;
  white-space: nowrap;
  color: #192b47;
  font-weight: 600;
}
.main .desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
.main .desc .agent-name {
  display: block;
  font-size: 1.3rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #192b47;
}
.main .desc .agent-phone {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #e9b714;
  font-weight: 600;
  text-decoration: none !important;
}
.main .photo {
  min-width: 42%;
  display: flex;
  z-index: 2;
}
.main .photo img {
  width: 100%;
  filter: drop-shadow(12px 4px 10px rgba(178, 71, 0, 0.35));
}

.main .color-block {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #f5d77d;
  width: 28%;
  height: 100%;
  z-index: 1;
  border-top-left-radius: 999px;
}

.record, .services {
  padding: 2rem 1rem;
}
.record {
  background: #efefef;
}
.record h2, .services h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.record .item {
  background: #fff;
  border-left: 5px solid #e9b714;
  padding: 1rem;
  margin: 0.5rem auto;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 800px;
  display: flex;
  align-items: center;
}
.item .year {
  font-weight:  00;
  color: #192b47;
}
.services .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.card {
  background: #ffffffee;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}
.card h3 {
  margin-top: 1rem;
  color: #192b47;
}
.card .icon {
  width: 100px;
}

.footer {
  border-top: 5px solid #e9b714;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 0.9rem;
  background-color: white;
}

.footer .logo {
  width: 150px;
}

.footer .stamp {
  width: 50px;
}

.cta-block {
  position: sticky;
  bottom: 0px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2rem;
  gap: 1rem;
  z-index: 3;
}
.cta-button {
  background:rgb(39, 65, 109);
  color: white;
  padding: 0.6rem 2rem;
  font-size: 1.1rem;
  border-radius: 16px;
  text-decoration: none;
  animation: glow 0.8s infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@keyframes glow {
  from {
    box-shadow: 0 0 10px -10px rgba(72, 60, 147, 0.25);
  }
  to {
    box-shadow: 0 0 10px 10px rgba(72, 60, 147, 0.25);
  }
}

.cta-button .icon {
  width: 1.1rem;
}

.cta-button.line {
  background-color: #00c300;
  animation: glow-line 0.8s infinite alternate;
}
@keyframes glow-line {
  from {
    box-shadow: 0 0 10px -10px rgba(39, 189, 61, 0.3);
  }
  to {
    box-shadow: 0 0 10px 10px rgba(39, 189, 61, 0.3);
  }
}

/* RWD */
@media screen and (min-width: 768px) {
  .main .color-block {
    width: 40%;
  }

  .services .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 370px) {
  .main .content {
    flex-direction: column;
    align-items: center;
  }

  .main .photo {
    width: 50%;
  }

  .main .color-block {
    width: 100%;
    height: 100%;
    top: 50vh;
  }
}