/* Services page — Figma 99:1239 */

/* ── Hero ── */
.svc-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  min-height: 640px;
  padding: 96px 0 64px;
}

.svc-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
}

.svc-hero__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  letter-spacing: -0.025em;
}

.svc-hero__title-accent {
  color: var(--color-primary);
}

.svc-hero__content .body {
  max-width: 448px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.625;
}

.svc-hero__media {
  position: relative;
}

.svc-hero__media::before {
  content: "";
  position: absolute;
  inset: 4% -6% -8% 8%;
  background: #e4e2dd;
  border-radius: 8px;
  opacity: 0.5;
  transform: rotate(2deg);
  z-index: 0;
  pointer-events: none;
}

.svc-hero__frame {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(27, 28, 25, 0.06);
  aspect-ratio: 4 / 3;
  background: #1b1c19;
}

.svc-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-hero__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.svc-hero__play img {
  width: 60px;
  height: 60px;
  display: block;
}

/* ── Offer cards (时光重塑服务) ── */
.svc-offers {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.svc-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  align-items: stretch;
  background: var(--color-bg-alt);
  border-radius: 8px;
  overflow: hidden;
  min-height: 460px;
}

.svc-offer__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px 48px 48px;
  min-width: 0;
}

.svc-offer__title {
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin: 0 0 8px;
}

.svc-offer__sub {
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  margin: 0 0 20px;
}

.svc-offer__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 4px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-width: 480px;
}

.svc-offer__features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 14px;
  line-height: 32px;
  color: var(--color-text-muted);
}

.svc-offer__features img {
  width: 14px;
  height: 14px;
  margin-top: 9px;
  flex-shrink: 0;
}

.svc-offer__flow-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.svc-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}

.svc-flow__step {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(119, 90, 25, 0.2);
  background: rgba(119, 90, 25, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  white-space: nowrap;
}

.svc-flow__arrow {
  width: 12px;
  height: 3px;
  flex-shrink: 0;
  display: block;
}

.svc-offer__cta {
  align-self: flex-start;
  min-width: 160px;
  padding: 12px 48px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.svc-offer__media {
  min-height: 320px;
  height: 100%;
}

.svc-offer__photo {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 0;
  overflow: hidden;
}

.svc-offer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before/after comparison slider (Figma 99:1341) */
.svc-compare {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 0;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  background: #1b1c19;
}

.svc-compare__before,
.svc-compare__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* 修复前：褪色旧照；修复后：彩色还原（同源图） */
.svc-compare__before {
  filter: grayscale(1) sepia(0.35) contrast(0.92) brightness(0.88);
  z-index: 0;
}

.svc-compare__after {
  z-index: 1;
  clip-path: inset(0 0 0 var(--compare-pos, 50%));
}

.svc-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos, 50%);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.svc-compare__handle img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  position: static;
  inset: auto;
  filter: none;
}

.svc-compare__labels {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: #fff;
}

.svc-compare__labels span {
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.svc-compare__labels span:first-child {
  background: rgba(0, 0, 0, 0.4);
}

.svc-compare__labels span:last-child {
  background: rgba(119, 90, 25, 0.8);
}

/* ── Pricing cards：少则居中，多则横向滑动 ── */
.section:has(.price-scroll) .section-head p {
  color: var(--color-text-muted);
  font-size: 16px;
}

.price-scroll {
  position: relative;
}

.price-scroll.is-overflow::before,
.price-scroll.is-overflow::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 20px;
  width: 40px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.price-scroll.is-overflow::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg, #fbf9f4), transparent);
}

.price-scroll.is-overflow::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg, #fbf9f4), transparent);
}

.price-scroll.show-fade-left::before,
.price-scroll.show-fade-right::after {
  opacity: 1;
}

.price-grid {
  display: flex;
  gap: 32px;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  overflow-x: hidden;
  scroll-snap-type: none;
  scroll-padding-inline: 0;
  padding: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.price-grid.is-overflow {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 90, 25, 0.35) transparent;
}

.price-grid.is-overflow.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.price-grid::-webkit-scrollbar {
  height: 0;
}

.price-grid.is-overflow::-webkit-scrollbar {
  height: 6px;
}

.price-grid.is-overflow::-webkit-scrollbar-thumb {
  background: rgba(119, 90, 25, 0.3);
  border-radius: 999px;
}

.price-card {
  position: relative;
  flex: 1 0 0;
  min-width: 300px;
  width: auto;
  max-width: none;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(119, 90, 25, 0.14);
  border-radius: 8px;
  padding: 48px 44px;
  gap: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(27, 28, 25, 0.06);
  transition: background 0.5s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-sizing: border-box;
}

.price-grid.is-overflow .price-card {
  flex: 0 0 380px;
  width: 380px;
  min-width: 380px;
}

.price-card:hover {
  background: #fff;
  border-color: rgba(119, 90, 25, 0.28);
  box-shadow: 0 16px 36px rgba(27, 28, 25, 0.1);
  transform: translateY(-8px);
}

.price-card.is-featured {
  background: #b8923f;
  border-color: transparent;
  color: #1b1200;
  transform: none;
  box-shadow: 0 28px 56px -12px rgba(78, 55, 0, 0.35);
  overflow: hidden;
}

.price-card.is-featured:hover {
  background: #b8923f;
  transform: translateY(-8px);
  box-shadow: 0 36px 64px -12px rgba(78, 55, 0, 0.4);
}

.price-card.is-featured .price,
.price-card.is-featured .tagline,
.price-card.is-featured .name {
  color: #1b1200;
}

.price-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  align-self: auto;
  background: #3d2a00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card .name {
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  display: inline-block;
  font-size: 34px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
}

.price-card .tagline {
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 0.025em;
  margin-bottom: 40px;
}

.price-card.is-featured .tagline {
  color: rgba(27, 18, 0, 0.78);
}

.price-card .price {
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  display: inline-block;
  font-size: 56px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 40px;
}

.price-card .price .unit {
  font-family: var(--font-sans);
  font-style: normal;
  transform: none;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 4px;
  font-weight: 400;
}

.price-card.is-featured .price .unit {
  color: rgba(27, 18, 0, 0.7);
}

.price-card ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--color-text);
}

.price-card.is-featured li {
  color: #1b1200;
}

.price-card li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}

.price-card.is-featured li::before {
  color: #1b1200;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
  padding: 17px 24px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
}

.price-card .btn-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
  background: transparent;
  font-weight: 700;
}

.price-card .btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.price-card.is-featured .btn-plan {
  background: #2a1c00;
  color: #fff;
  border: none;
  font-weight: 700;
}

.price-card.is-featured .btn-plan:hover {
  background: #1b1200;
  opacity: 1;
}

/* ── Compare table (Figma 107:3173) ── */
.compare-section {
  max-width: 1280px;
}

.compare-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 64px;
}

.compare-head .heading-md {
  margin-bottom: 0;
  font-weight: 400;
}

.compare-head__line {
  width: 48px;
  height: 1px;
  background: var(--color-primary);
}

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.compare-col-label {
  width: 25%;
}

.compare-table th,
.compare-table td {
  padding: 32px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(209, 197, 180, 0.15);
  vertical-align: middle;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  background: transparent;
  font-weight: 400;
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(209, 197, 180, 0.15);
}

.compare-table thead th:first-child {
  font-family: var(--font-sans);
  font-style: normal;
  transform: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7f7667;
}

.compare-table__plan {
  display: inline-block;
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--color-text);
  transform: skewX(var(--headline-skew));
  transition: color 0.25s ease;
}

.compare-table td:first-child {
  color: #4e4639;
  font-weight: 400;
}

.compare-table td:not(:first-child) {
  color: var(--color-text);
}

/* Featured plan column — keep readable contrast */
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  background: rgba(184, 146, 63, 0.12);
}

.compare-table thead th:nth-child(3) .compare-table__plan {
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* Subtle zebra rows */
.compare-table tbody tr:nth-child(even) td {
  background: rgba(245, 243, 238, 0.45);
}

/* Column hover: gold title + vertical tint (Figma) */
.compare-table:has(tr > :nth-child(2):hover) th:nth-child(2),
.compare-table:has(tr > :nth-child(2):hover) td:nth-child(2) {
  background: rgba(197, 160, 89, 0.08);
}

.compare-table:has(tr > :nth-child(2):hover) th:nth-child(2) .compare-table__plan {
  color: var(--color-primary);
}

.compare-table:has(tr > :nth-child(3):hover) th:nth-child(3),
.compare-table:has(tr > :nth-child(3):hover) td:nth-child(3) {
  background: rgba(184, 146, 63, 0.2);
}

.compare-table:has(tr > :nth-child(3):hover) th:nth-child(3) .compare-table__plan {
  color: var(--color-primary);
}

.compare-table:has(tr > :nth-child(4):hover) th:nth-child(4),
.compare-table:has(tr > :nth-child(4):hover) td:nth-child(4) {
  background: rgba(197, 160, 89, 0.08);
}

.compare-table:has(tr > :nth-child(4):hover) th:nth-child(4) .compare-table__plan {
  color: var(--color-primary);
}

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled .site-header__inner {
  box-shadow: none;
}

@media (max-width: 1100px) {
  .svc-offer {
    grid-template-columns: 1fr;
  }

  .svc-offer__media {
    order: -1;
  }

  .svc-offer__photo,
  .svc-compare {
    min-height: 320px;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .svc-offer__body {
    padding: 36px 28px 40px;
  }

  .svc-flow {
    flex-wrap: wrap;
    width: auto;
  }
}

@media (max-width: 900px) {
  .svc-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 72px 0 40px;
    gap: 32px;
  }

  .svc-hero__content {
    max-width: none;
  }

  .svc-offer__features {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .cta-dark {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 40px;
    border-radius: 16px;
    gap: 40px;
  }

  .cta-dark__action {
    width: 100%;
    align-items: stretch;
  }

  .cta-dark .btn-cream,
  .cta-dark .btn-gold {
    width: 100%;
  }

  .cta-dark__stat,
  .cta-dark__note {
    text-align: left;
    white-space: normal;
  }

  .price-card.is-featured,
  .price-card:hover,
  .price-card.is-featured:hover {
    transform: none;
  }

  .price-card {
    flex: 0 0 min(360px, 82vw);
    width: min(360px, 82vw);
    min-width: min(360px, 82vw);
    padding: 40px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .price-card,
  .price-card:hover,
  .price-card.is-featured:hover {
    transition: none;
    transform: none;
  }
}
