/**
 * 我們的服務 — 公版採購 / 客製開模（照片底圖卡）
 */

.pub-section--services-v2 {
  padding:
    clamp(80px, 10vw, 100px)
    var(--wuji-content-rail)
    clamp(40px, 5vw, 56px);
  background: var(--color-bg-default);
}

.pub-section--services-v2 .pub-section__inner--services {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.pub-services-v2__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.pub-services-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--wuji-font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sustain);
}

.pub-services-v2__eyebrow-mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--color-sustain);
}

.pub-services-v2__title {
  margin: 0;
  font-family: var(--wuji-font-serif);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

.pub-services-v2__desc {
  margin: 0;
  font-family: var(--wuji-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.6);
}

.pub-services-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.pub-services-v2__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 26vw, 320px);
  border: none;
  border-radius: 16px;
  background: var(--color-ink, #111);
  isolation: isolate;
}

.pub-services-v2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pub-services-v2__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.pub-services-v2__card--stock .pub-services-v2__bg-img {
  object-position: center 35%;
}

.pub-services-v2__card--custom .pub-services-v2__bg-img {
  object-position: center 30%;
}

/* 上半部留白露圖，下半部黑色漸層遮罩承托文字 */
.pub-services-v2__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 36%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.68) 66%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.pub-services-v2__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 24px);
  background: transparent;
}

.pub-services-v2__card-en {
  margin: 0;
  font-family: var(--wuji-font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.pub-services-v2__card-title {
  margin: 0;
  font-family: var(--wuji-font-serif);
  font-size: clamp(22px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.pub-services-v2__card-lead {
  margin: 0;
  font-family: var(--wuji-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.pub-services-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--btn-radius);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--wuji-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pub-services-v2__cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
}

.pub-services-v2__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .pub-services-v2__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pub-services-v2__card {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-services-v2__cta {
    transition: none;
  }
}
