/* 配對成功故事（couple.php）拍立得版面
   照片多為 389x292、早期更只有 160x120，相框寬度刻意控制在接近原圖，避免放大變糊 */
.couple_story {
  padding: 60px 0 80px;
  overflow: hidden;
}

/* 共用 .pagination_wrap 自帶 padding-bottom 100px，這頁由 section 統一控制底部留白 */
.couple_story .pagination_wrap {
  padding-bottom: 0;
}

.couple_story_intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  color: #6f5a85;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin: 0 auto 36px;
}

/* 兩側細短線 */
.couple_story_intro::before,
.couple_story_intro::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 149, 207, 0) 0%, #BE95CF 100%);
}

.couple_story_intro::after {
  background: linear-gradient(90deg, #BE95CF 0%, rgba(190, 149, 207, 0) 100%);
}

.couple_story_intro strong {
  color: #896BA5;
  font-size: 1.45em;
  font-weight: 700;
  margin: 0 4px;
  vertical-align: -0.06em;
}

.couple_story_list {
  max-width: 1080px;
  margin: 0 auto 60px;
}

.couple_item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

/* 文字底色帶：從相框後方延伸出來 */
.couple_item::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 120px;
  right: 0;
  border-radius: 24px;
  background: linear-gradient(90deg, #EADFF4 0%, rgba(239, 228, 249, 0.35) 100%);
  z-index: 0;
}

.couple_item:nth-child(even) {
  flex-direction: row-reverse;
}

.couple_item:nth-child(even)::before {
  left: 0;
  right: 120px;
  background: linear-gradient(270deg, #EADFF4 0%, rgba(239, 228, 249, 0.35) 100%);
}

/* 拍立得相框 */
.couple_polaroid {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 330px;
  padding: 14px 14px 0;
  background-color: #fff;
  box-shadow: 0 12px 30px rgba(80, 50, 110, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: rotate(-3deg);
  transition: transform 0.4s;
}

.couple_item:nth-child(even) .couple_polaroid {
  transform: rotate(2.5deg);
}

.couple_item:hover .couple_polaroid {
  transform: rotate(0) scale(1.02);
}

/* 紙膠帶 */
.couple_polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  background-color: rgba(221, 150, 180, 0.55);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.couple_item:nth-child(even) .couple_polaroid::before {
  background-color: rgba(190, 149, 207, 0.55);
  transform: rotate(5deg);
}

.couple_polaroid_pic {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #f3eef7;
  overflow: hidden;
}

.couple_polaroid_pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.couple_polaroid_caption {
  padding: 12px 4px 16px;
  text-align: center;
  color: #896BA5;
  font-size: 16px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 早期小照片：相框縮小、不放大原圖 */
.couple_polaroid.is-small {
  width: 230px;
  margin: 0 50px;
}

.couple_item_body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding: 70px 56px 70px 64px;
}

.couple_item:nth-child(even) .couple_item_body {
  padding: 70px 64px 70px 56px;
}

.couple_item_date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  background: linear-gradient(90deg, #DD96B4 0%, #BE95CF 100%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.couple_item_date svg {
  width: 13px;
  height: 13px;
}

.couple_item_name {
  position: relative;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #896BA5;
  margin: 0 0 18px;
  padding-bottom: 14px;
}

.couple_item_name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #DD96B4 0%, #BE95CF 100%);
}

.couple_item_text {
  position: relative;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #555;
  word-break: break-word;
}

/* 裝飾用引號 */
.couple_item_text::before {
  content: "\201C";
  position: absolute;
  top: -78px;
  right: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(190, 149, 207, 0.25);
  pointer-events: none;
}

.couple_item_text p {
  margin: 0 0 8px;
}

.couple_item_text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .couple_polaroid {
    width: 280px;
  }
  .couple_polaroid.is-small {
    width: 210px;
    margin: 0 35px;
  }
  .couple_item::before {
    left: 90px;
  }
  .couple_item:nth-child(even)::before {
    right: 90px;
  }
  .couple_item_body,
  .couple_item:nth-child(even) .couple_item_body {
    padding: 56px 36px;
  }
}

@media (max-width: 767px) {
  .couple_story {
    padding: 36px 0 50px;
  }
  .couple_story_intro {
    font-size: 15px;
    gap: 12px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
  }
  .couple_story_intro::before,
  .couple_story_intro::after {
    flex-basis: 24px;
  }
  .couple_item,
  .couple_item:nth-child(even) {
    flex-direction: column;
    margin-bottom: 56px;
  }
  .couple_item::before,
  .couple_item:nth-child(even)::before {
    top: 110px;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #EADFF4 0%, rgba(239, 228, 249, 0.35) 100%);
  }
  .couple_polaroid,
  .couple_polaroid.is-small {
    width: 260px;
    margin: 0;
  }
  .couple_polaroid.is-small {
    width: 200px;
  }
  .couple_item_body,
  .couple_item:nth-child(even) .couple_item_body {
    padding: 28px 22px 30px;
    width: 100%;
  }
  .couple_item_name {
    font-size: 22px;
  }
  .couple_item_text {
    font-size: 15px;
  }
  .couple_item_text::before {
    font-size: 80px;
    top: -60px;
  }
}

/* 頁尾行動呼籲 */
.couple_cta {
  position: relative;
  margin: 70px auto 0;
  max-width: 1080px;
  padding: 56px 40px 48px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, #F6EBFF 0%, #FBE9F1 100%);
  overflow: hidden;
}

.couple_cta::before,
.couple_cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.couple_cta::before {
  width: 220px;
  height: 220px;
  top: -90px;
  left: -60px;
  background: rgba(190, 149, 207, 0.18);
}

.couple_cta::after {
  width: 160px;
  height: 160px;
  bottom: -70px;
  right: -40px;
  background: rgba(221, 150, 180, 0.18);
}

.couple_cta > * {
  position: relative;
  z-index: 1;
}

.couple_cta_eyebrow {
  color: #DD96B4;
  font-size: 14px;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.couple_cta_title {
  color: #896BA5;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.couple_cta_desc {
  color: #6f5a85;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 auto 30px;
  max-width: 640px;
}

.couple_cta_btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.couple_cta_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 13px 32px;
  border-radius: 100px;
  border: 1.5px solid #BE95CF;
  background-color: #fff;
  color: #896BA5;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: 0.3s;
}

.couple_cta_btn:hover {
  color: #896BA5;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(190, 149, 207, 0.3);
}

.couple_cta_btn.is-primary {
  border-color: transparent;
  background: linear-gradient(90deg, #DD96B4 0%, #BE95CF 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(190, 149, 207, 0.35);
}

.couple_cta_btn.is-primary:hover {
  color: #fff;
}

.couple_cta_link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #896BA5;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(137, 107, 165, 0.5);
  padding-bottom: 2px;
}

.couple_cta_link:hover {
  color: #DD96B4;
  text-decoration: none;
  border-bottom-color: #DD96B4;
}

.couple_cta_link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s;
}

.couple_cta_link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .couple_cta {
    margin-top: 48px;
    padding: 40px 20px 36px;
    border-radius: 20px;
  }
  .couple_cta_title {
    font-size: 24px;
    letter-spacing: 0.05em;
  }
  .couple_cta_desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .couple_cta_btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .couple_cta_btn {
    min-width: 0;
    font-size: 16px;
  }
  .couple_cta_link {
    font-size: 14px;
  }
}
