/* Reusable UI components */

.hero {
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero__slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.5s ease;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05));
  inset: 0;
  position: absolute;
}

.hero__content {
  align-items: center;
  display: flex;
  min-height: 620px;
  padding-block: 96px 80px;
  position: relative;
  z-index: 10;
}

.hero__eyebrow {
  color: var(--color-accent-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 42rem;
}

.hero__meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-top: 20px;
}

.hero__cta {
  margin-top: 40px;
}

.hero__dots {
  bottom: 32px;
  display: flex;
  gap: 8px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 20;
}

.hero__dots-inner {
  display: flex;
  gap: 8px;
  pointer-events: auto;
  width: fit-content;
}

.hero__dot {
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  height: 6px;
  transition: all var(--transition);
  width: 24px;
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero__dot.is-active {
  background: var(--color-accent);
  width: 40px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  min-height: 250px;
  overflow: hidden;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
}

.product-card__title {
  color: var(--color-accent-light);
  font-size: 1.5rem;
}

.product-card__desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  min-height: 4rem;
}

.product-card__desc p + p {
  margin-top: 6px;
}

.product-card__cta {
  margin-top: 32px;
}

.product-card__img {
  object-fit: contain;
  width: 100%;
}

.product-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.image-link {
  border-radius: var(--radius-sm);
  display: block;
  overflow: hidden;
  position: relative;
}

.image-link img {
  transition: transform 0.4s ease;
  width: 100%;
}

.image-link:hover img {
  transform: scale(1.025);
}

.image-link span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  padding-top: 14px;
  text-align: center;
}

.vision-banner {
  align-items: center;
  aspect-ratio: 12 / 5;
  background-color: #000;
  background-image:
    linear-gradient(180deg, #000 0, transparent 18%, transparent 82%, #000),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 65%),
    url("../images/site/home/brand-vision.png");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% auto;
  display: flex;
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

.vision-banner__inner {
  max-width: 48rem;
  padding: 56px 24px;
}

.vision-banner__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
}

.vision-banner__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-top: 24px;
  white-space: pre-line;
}

.vision-banner__closing {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 32px;
}

.review-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.review-header .section-title {
  text-align: left;
}

.review-nav {
  display: flex;
  gap: 8px;
}

.reviews-viewport {
  overflow: hidden;
  position: relative;
}

.reviews-page {
  width: 100%;
}

.reviews-page[hidden] {
  display: none !important;
}

.circle-btn {
  align-items: center;
  border: 1px solid hsla(0, 0%, 100%, 0.35);
  border-radius: var(--radius-pill);
  color: #fff;
  display: grid;
  font-size: 1.5rem;
  height: 2.5rem;
  place-items: center;
  transition: border-color var(--transition), background-color var(--transition);
  width: 2.5rem;
}

.circle-btn:hover {
  background: rgba(151, 71, 255, 0.28);
  border-color: var(--color-accent);
}

.review-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.review-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 24px;
}

.review-card__head {
  align-items: center;
  display: flex;
  gap: 20px;
}

.review-card__avatar {
  border-radius: 50%;
  height: 80px;
  object-fit: cover;
  width: 80px;
}

.review-card__stars {
  color: var(--color-accent);
}

.review-card__text {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-top: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-hero {
  align-items: center;
  background: #000 center / cover no-repeat;
  display: flex;
  min-height: 420px;
  padding: 120px 0 80px;
  position: relative;
}

.page-hero::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2));
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
}

.feature-block {
  display: grid;
  gap: 40px;
  padding-block: 64px;
}

.feature-block__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  white-space: pre-line;
}

.feature-block__text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
}

.feature-block img {
  border-radius: var(--radius-md);
  width: 100%;
}

.spec-table {
  border-collapse: collapse;
  margin-top: 32px;
  width: 100%;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 12px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  width: 36%;
}

.spec-table td {
  color: var(--color-text-muted);
}

.faq-list {
  margin-top: 40px;
  max-width: 900px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__q {
  align-items: center;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  justify-content: space-between;
  padding: 20px 0;
  text-align: left;
  width: 100%;
}

.faq-item__q::after {
  content: "+";
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 400;
}

.faq-item.is-open .faq-item__q::after {
  content: "−";
}

.faq-item__a {
  color: var(--color-text-muted);
  display: none;
  font-size: 14px;
  line-height: 1.75;
  padding-bottom: 20px;
}

.faq-item.is-open .faq-item__a {
  display: block;
}

.support-card,
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: background var(--transition);
}

.support-card:hover,
.contact-card:hover {
  background: #303136;
}

.support-card img,
.contact-card img {
  height: 48px;
  margin-bottom: 16px;
  width: auto;
}

.support-card h3,
.contact-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.support-card p,
.contact-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.card-grid figure,
.card-grid img,
.tab-panel > figure img {
  display: block;
  width: 100%;
}

.card-grid figure img {
  border-radius: var(--radius-md);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  transition: all var(--transition);
}

.tab-btn.is-active,
.tab-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.product-subnav {
  background: #111;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.product-subnav__inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}

.product-subnav {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  padding: 8px 0;
  white-space: nowrap;
}

.product-subnav a.is-active,
.product-subnav a:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .hero__meta {
    font-size: 1rem;
  }

  .product-card__body {
    padding: 40px;
  }

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

  .product-grid .product-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 400px;
    min-height: 400px;
  }

  .product-grid .product-card--featured .product-card__img {
    grid-column: span 3;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .product-grid .product-card--featured .product-card__body {
    grid-column: span 2;
    min-height: 0;
    padding: 28px 32px;
  }

  .product-grid .product-card--featured .product-card__desc {
    margin-top: 12px;
    min-height: 0;
  }

  .product-grid .product-card--featured .product-card__cta {
    margin-top: 20px;
  }

  /* 大图反转：文案左、图片右（与 CritCast Pro 同结构，左右对调） */
  .product-grid .product-card--featured-flip .product-card__body {
    grid-column: 1 / span 2;
    order: 1;
  }

  .product-grid .product-card--featured-flip .product-card__img {
    grid-column: 3 / span 3;
    order: 2;
  }

  .product-card--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .review-card {
    padding: 32px;
  }

  .vision-banner__inner {
    padding: 56px;
  }

  .vision-banner__text {
    font-size: 1rem;
  }

  .vision-banner__closing {
    font-size: 1.25rem;
  }

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

  .feature-block {
    align-items: center;
    grid-template-columns: 1fr 1fr;
  }

  .feature-block--reverse .feature-block__media {
    order: -1;
  }
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Solutions center carousel ----- */
.solutions-section {
  overflow: hidden;
  padding-bottom: 4rem;
}

.solutions-section__label {
  margin-bottom: 2.5rem;
}

.solutions-carousel__viewport {
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.solutions-carousel__track {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

.solutions-carousel__slide {
  border-radius: 12px;
  flex: 0 0 min(72vw, 960px);
  overflow: hidden;
  position: relative;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.solutions-carousel__slide::after {
  background: rgba(0, 0, 0, 0.55);
  content: "";
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.solutions-carousel__slide.is-active::after {
  opacity: 0;
}

.solutions-carousel__slide img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* 底部渐变遮罩：白底图也能看清标题 */
.solutions-carousel__caption {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.28) 35%,
    rgba(0, 0, 0, 0.62) 100%
  );
  bottom: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  left: 0;
  letter-spacing: 0.04em;
  padding: 3.5rem 1.5rem 1.6rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  z-index: 1;
}

.solutions-carousel__dots {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.solutions-carousel__dot {
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
  width: 8px;
}

.solutions-carousel__dot.is-active {
  background: #fff;
  width: 28px;
}

/* 仅一种方案：居中大图，无侧peek、无圆点 */
.solutions-section--single .solutions-carousel__viewport {
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
}

.solutions-section--single .solutions-carousel__track {
  justify-content: center;
  transform: none !important;
  width: min(100%, 960px);
}

.solutions-section--single .solutions-carousel__slide {
  flex: 0 0 100%;
  max-width: 960px;
}

.solutions-section--single .solutions-carousel__slide::after {
  opacity: 0;
}

@media (max-width: 900px) {
  .solutions-carousel__slide {
    flex-basis: min(86vw, 720px);
  }
}

@media (max-width: 640px) {
  .hero,
  .hero__content {
    min-height: 680px;
  }

  .hero__image {
    object-position: 63% center;
  }

  .hero__overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1));
  }

  .vision-banner {
    align-items: flex-start;
    aspect-ratio: auto;
    background-position: 68% bottom;
    background-size: 100% 100%, 100% 100%, auto 72%;
    min-height: 560px;
  }

  .solutions-carousel__slide {
    border-radius: 8px;
    flex-basis: min(90vw, 560px);
  }

  .solutions-carousel__track {
    gap: 0.75rem;
  }

  .solutions-carousel__caption {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    padding: 2.75rem 1rem 1.25rem;
  }
}
