/* 好評分享頁樣式 */
    :root {
      --blue: #84b3c5;
      --blue-dark: #21383c;
      --gold: #d7a83a;
      --muted: #617684;
      --line: #d9e9ec;
      --soft: #eef7f8;
      --white: #ffffff;
      --bg: #f5fafb;
      --shadow: 0 18px 44px rgba(18, 57, 84, 0.1);
      --radius: 18px;
      --max: 1120px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      color: var(--blue-dark);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 248, 255, 0.92) 100%);
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      display: block;
      max-width: 100%;
    }

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .eyebrow {
      display: inline-block;
      margin-bottom: 14px;
      color: var(--gold);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    section {
      padding: 34px 0 44px;
    }

    .section-head {
      max-width: 720px;
      margin: 0 auto 46px;
      text-align: center;
    }

    .section-head h2 {
      margin: 0 0 14px;
      font-size: clamp(30px, 4vw, 44px);
      line-height: 1.25;
    }

    .section-head p {
      max-width: 580px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 18px;
    }

    .review-filter-wrap {
      display: flex;
      justify-content: center;
      margin: -22px 0 34px;
    }

    .review-filter {
      display: inline-flex;
      gap: 6px;
      justify-content: center;
      margin: 0 auto;
      padding: 5px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      box-shadow: 0 14px 34px rgba(18, 57, 84, 0.08);
    }

    .review-filter button {
      min-width: 82px;
      height: 36px;
      padding: 0 16px;
      border: 0;
      border-radius: 999px;
      color: #52676d;
      background: transparent;
      font: inherit;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .review-filter button.is-active {
      color: #fff;
      background: var(--blue);
    }

    .review-grid-wrap {
      display: block;
    }

    .review-grid-panel {
      display: none;
    }

    .review-grid-panel.is-active {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .review-column {
      display: grid;
      align-content: start;
      gap: 18px;
      min-width: 0;
    }

    .review-card {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      box-shadow: var(--shadow);
      cursor: pointer;
      text-align: left;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .review-card-inner {
      position: relative;
      background: var(--white);
    }

    .review-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 24px 52px rgba(18, 57, 84, 0.14);
    }

    .review-card img {
      width: 100%;
      height: auto;
      background: #dcebfa;
    }

    .review-card-media {
      position: relative;
      overflow: hidden;
      background: #dcebfa;
    }

    .review-card-slideshow {
      position: relative;
    }

    .review-card-slideshow img {
      transition: opacity .65s ease;
    }

    .review-card-slideshow img:not(:first-child) {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
    }

    .review-card-slideshow img:first-child {
      opacity: 1;
    }

    .review-card-slideshow img.is-active {
      opacity: 1;
    }

    .review-card-slideshow img:first-child:not(.is-active) {
      opacity: 0;
    }

    .review-card-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      padding: 12px 14px 14px;
      background: var(--white);
      border-bottom: 1px solid #ececec;
    }

    .review-card-date {
      display: inline-flex;
      align-items: center;
      min-height: 0px;
      padding: 0;
      border-radius: 999px;
      background: #ffffff;
      color: #4e5861;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.6px;
    }

    .review-card-title {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 9px;
      border-radius: 999px;
      background: #5394ad;
      color: #ffffff;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    .review-card-text {
      display: -webkit-box;
      margin: 0;
      overflow: hidden;
      color: #1f3540;
      font-size: 15px;
      font-weight: 400;
      line-height: 1.65;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .review-card-count {
      position: absolute;
      left: 10px;
      bottom: 10px;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 9px;
      border-radius: 999px;
      background: #eef7f8;
      color: var(--blue-dark);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.3px;
    }

    .review-empty {
      color: var(--muted);
      text-align: center;
    }

    .care-cases-section {
      background: #ffffff;
      padding-top: 60px;
      padding-bottom: 100px;
    }

    .care-cases-section .section-head p {
      max-width: 720px;
    }

    .case-grid {
      counter-reset: care-case;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 25px 54px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .case-grid li {
      counter-increment: care-case;
      padding: 0;
      border: 0;
      border-radius: 0;
      color: #5c5c5c;
      background: transparent;
      box-shadow: none;
      font-weight: 400;
    }

    .case-grid li::before {
      content: counter(care-case) ". ";
      color: var(--blue-dark);
      font-weight: 700;
    }

    .group-modal {
      position: fixed;
      inset: 0;
      z-index: 48;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: rgba(255, 255, 255, .76);
      backdrop-filter: blur(6px);
    }

    .group-modal.is-open {
      display: flex;
    }

    .group-modal-panel {
      position: relative;
      width: min(1024px, 100%);
      max-height: min(860px, calc(100vh - 56px));
      padding: 34px;
      border: 1px solid rgba(132, 179, 197, .28);
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 24px 72px rgba(18, 57, 84, .18);
    }

    .group-modal-panel::after {
      content: "";
      position: absolute;
      right: 48px;
      bottom: 34px;
      left: 34px;
      height: 40px;
      border-radius: 0 0 12px 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 62%, #ffffff 100%);
      pointer-events: none;
      z-index: 2;
    }

    .group-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      display: grid;
      width: 42px;
      height: 42px;
      place-items: center;
      border: 0;
      border-radius: 50%;
      color: var(--blue-dark);
      background: #eef7f8;
      font: inherit;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .group-modal-head {
      padding-right: 44px;
      margin-bottom: 20px;
      text-align: center;
    }

    .group-modal-head h3 {
      margin: 0;
      color: var(--blue-dark);
      font-size: clamp(24px, 3vw, 34px);
      line-height: 1.3;
    }

    .group-preview-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      max-height: min(650px, calc(100vh - 190px));
      overflow-y: auto;
      padding-right: 4px;
      padding-bottom: 50px;
    }

    .group-preview-item {
      display: block;
      width: 100%;
      padding: 0;
      border: 0;
      border-radius: 12px;
      overflow: hidden;
      background: #eef7f8;
      box-shadow: 0 12px 28px rgba(18, 57, 84, .10);
      cursor: pointer;
    }

    .group-preview-item img {
      width: 100%;
      height: 190px;
      object-fit: cover;
      object-position: center;
      transition: transform .22s ease;
    }

    .group-preview-item:hover img {
      transform: scale(1.04);
    }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      padding: 22px;
      background: rgba(11, 24, 33, 0.78);
      z-index: 50;
    }

    .modal.is-open {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-panel {
      width: min(1140px, 100%);
      max-height: calc(100vh - 44px);
      display: block;
      background: transparent;
    }

    .modal-stage {
      position: relative;
      width: 100%;
      min-height: 620px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      padding: 40px 84px 24px;
    }

    .nav-btn {
      border: 0;
      cursor: pointer;
      font: inherit;
    }

    .nav-btn {
      position: absolute;
      top: calc(50% - 20px);
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      padding: 0;
      border: 2px solid;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.12);
      color: #ffffff;
      font-size: 24px;
      line-height: 1;
      backdrop-filter: blur(6px);
    }

    .nav-btn .material-symbols-outlined {
      font-size: 28px;
      line-height: 1;
      display: block;
    }

    .nav-btn:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .nav-prev {
      left: 18px;
    }

    .nav-next {
      right: 18px;
    }

    .modal-image-wrap {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      height: min(72vh, 720px);
    }

    .modal-swiper {
      width: 100%;
      height: 100%;
      max-width: 100%;
    }

    .modal-swiper .swiper-wrapper {
      height: 100%;
    }

    .modal-swiper .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
    }

    .modal-swiper img {
      width: auto;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .modal-title {
      display: none;
      max-width: min(760px, 100%);
      margin: 0 auto -2px;
      color: #ffffff;
      font-size: 20px;
      font-weight: 800;
      line-height: 1.5;
      text-align: center;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .32);
    }

    .modal-title.is-visible {
      display: block;
    }

    .modal-description {
      display: none;
      max-width: min(720px, 100%);
      margin: 0 auto;
      padding: 14px 18px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      color: #ffffff;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.8;
      text-align: center;
      backdrop-filter: blur(6px);
    }

    .modal-description.is-visible {
      display: block;
    }

    .modal-description-title {
      display: block;
      font-weight: 800;
    }

    .modal-description-body {
      display: block;
      margin-top: 6px;
      font-weight: 500;
    }

    .modal-pagination {
      position: static;
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;
      min-height: 18px;
      margin-top: -4px;
      gap: 8px;
    }

    .modal-pagination .swiper-pagination-bullet {
      width: 8px;
      height: 8px;
      margin: 0 !important;
      background: rgba(255, 255, 255, .72);
      opacity: 1;
    }

    .modal-pagination .swiper-pagination-bullet-active {
      background: #ffffff;
    }

    .modal.is-single-slide .nav-btn,
    .modal.is-single-slide .modal-pagination {
      display: none;
    }

    @media (max-width: 920px) {
      .review-grid-panel.is-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(var(--max), calc(100% - 24px));
      }

      section {
        padding-top: 22px;
      }

      .review-grid-panel.is-active {
        grid-template-columns: 1fr;
      }

      .case-grid {
        grid-template-columns: 1fr;
        margin: 20px;
      }

      .group-modal {
        padding: 14px;
      }

      .group-modal-panel {
        padding: 24px 16px 18px;
        max-height: calc(100vh - 28px);
      }

      .group-modal-panel::after {
        right: 20px;
        bottom: 18px;
        left: 16px;
        border-radius: 0;
      }

      .group-preview-grid {
        grid-template-columns: 1fr;
        max-height: 65vh;
      }

      .group-preview-item img {
        height: min(240px, 62vw);
      }

      .modal {
        padding: 10px;
      }

      .modal-panel {
        max-height: calc(100vh - 20px);
      }

      .modal-stage {
        min-height: 300px;
        padding: 34px 5px 18px;
      }

      .modal-title {
        font-size: 17px;
      }

      .modal-description-body {
        font-size: 14px;
      }

      .modal-image-wrap {
        height: min(61vh, 560px);
      }

      .nav-prev {
        left: -2px;
      }

      .nav-next {
        right: -2px;
      }

      .nav-btn {
        display: none;
      }
    }
