/**
 * Hospitable 功能介绍区
 */

.hospitable-page {
  /* 对齐 theme: 1rem = 16px */
  --hp-display: clamp(2.25rem, 3.5vw, 3rem);
  --hp-section: clamp(1.75rem, 2.8vw, 2.5rem);
  --hp-subsection: clamp(1.25rem, 1.5vw, 1.5rem);
  --hp-lead: clamp(1rem, 1.1vw, 1.125rem);
  --hp-body: 1rem;
  --hp-body-sm: 0.875rem;
  --hp-caption: 0.75rem;
  --hp-lh-tight: 1.15;
  --hp-lh-normal: 1.6;
  --hp-fw-bold: 700;
  --hp-fw-semibold: 600;
  --hp-fw-medium: 500;
}

/**
 * Home Hero Product Showcase
 */
.home-hero-showcase {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .home-hero-showcase {
    padding-top: 160px;
    padding-bottom: 96px;
  }
}

.home-hero-showcase__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.home-hero-showcase__main {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.home-hero-showcase__content {
  min-width: 0;
}

.home-hero-showcase__eyebrow {
  margin: 0;
  font-size: var(--hp-caption);
  font-weight: var(--hp-fw-semibold);
  letter-spacing: 0.08em;
  line-height: var(--hp-lh-normal);
  color: #6b7280;
  text-transform: uppercase;
}

.dark .home-hero-showcase__eyebrow {
  color: #9ca3af;
}

.home-hero-showcase__title {
  margin: 16px 0 0;
  font-size: var(--hp-display);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .home-hero-showcase__title {
  color: #f9fafb;
}

.home-hero-showcase__intro {
  max-width: 480px;
  margin: 16px 0 0;
  font-size: var(--hp-lead);
  line-height: var(--hp-lh-normal);
  color: #6b7280;
}

.dark .home-hero-showcase__intro {
  color: #9ca3af;
}

.home-hero-showcase__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 28px;
  font-size: var(--hp-body);
  font-weight: var(--hp-fw-semibold);
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: #178d72;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.home-hero-showcase__cta:hover {
  color: #fff;
  background: #147a63;
}

.home-hero-showcase__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.home-hero-showcase__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-hero-showcase__rating-stars {
  font-size: var(--hp-body-sm);
  letter-spacing: 1px;
  color: #f59e0b;
}

.home-hero-showcase__rating-label {
  font-size: var(--hp-body-sm);
  font-weight: var(--hp-fw-medium);
  color: #374151;
}

.dark .home-hero-showcase__rating-label {
  color: #d1d5db;
}

.home-hero-showcase__partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-hero-showcase__partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 14px;
  font-size: var(--hp-caption);
  font-weight: var(--hp-fw-semibold);
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 8px;
}

.dark .home-hero-showcase__partner-logo {
  color: #9ca3af;
  background: #374151;
}

.home-hero-showcase__screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 520px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.dark .home-hero-showcase__screenshot {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.home-hero-showcase__screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero-showcase__tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.home-hero-showcase-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 20px 18px;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .home-hero-showcase-tab {
  background: #1f2937;
  border-color: #374151;
}

.home-hero-showcase-tab:hover {
  border-color: #d1d5db;
}

.home-hero-showcase-tab.is-active {
  border-color: #178d72;
  box-shadow: 0 0 0 1px rgba(23, 141, 114, 0.15);
}

.dark .home-hero-showcase-tab.is-active {
  border-color: #178d72;
}

.home-hero-showcase-tab__check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: var(--hp-caption);
  color: #fff;
  background: #178d72;
  border-radius: 50%;
}

.home-hero-showcase-tab.is-active .home-hero-showcase-tab__check {
  display: flex;
}

.home-hero-showcase-tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dark .home-hero-showcase-tab__icon {
  color: #9ca3af;
  background: #374151;
}

.home-hero-showcase-tab.is-active .home-hero-showcase-tab__icon {
  color: #178d72;
  background: rgba(23, 141, 114, 0.12);
}

.home-hero-showcase-tab__title {
  font-size: var(--hp-body-sm);
  font-weight: var(--hp-fw-semibold);
  line-height: var(--hp-lh-tight);
  color: #374151;
}

.dark .home-hero-showcase-tab__title {
  color: #d1d5db;
}

.home-hero-showcase-tab.is-active .home-hero-showcase-tab__title {
  color: #111827;
}

.dark .home-hero-showcase-tab.is-active .home-hero-showcase-tab__title {
  color: #f9fafb;
}

@media (max-width: 1199.98px) {
  .home-hero-showcase__tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .home-hero-showcase__inner {
    padding: 0 32px;
  }

  .home-hero-showcase__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-hero-showcase__screenshot {
    height: 420px;
  }
}

@media (max-width: 767.98px) {
  .home-hero-showcase {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .home-hero-showcase__inner {
    padding: 0 24px;
  }

  .home-hero-showcase__screenshot {
    height: 300px;
    padding: 16px;
  }

  .home-hero-showcase__tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-hero-showcase-tab {
    flex: 0 0 auto;
    min-width: 140px;
    min-height: 110px;
    scroll-snap-align: start;
  }
}

.hospitable-showcase {
  padding-top: 120px;
  padding-bottom: 80px;
}

@media (min-width: 992px) {
  .hospitable-showcase {
    padding-top: 160px;
    padding-bottom: 120px;
  }
}

.hospitable-showcase__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hospitable-showcase__title {
  margin: 0;
  text-align: left;
  font-size: var(--hp-section);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .hospitable-showcase__title {
  color: #f9fafb;
}

.hospitable-showcase__intro {
  max-width: 520px;
  margin: 16px 0 0;
  font-size: var(--hp-lead);
  line-height: var(--hp-lh-normal);
  color: #6b7280;
}

.dark .hospitable-showcase__intro {
  color: #9ca3af;
}

.hospitable-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 991.98px) {
  .hospitable-showcase__grid {
    grid-template-columns: 1fr;
  }
}

.hospitable-card {
  min-width: 0;
}

.hospitable-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  padding: 24px;
}

.hospitable-card__media img,
.hospitable-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hospitable-card__title {
  margin: 20px 0 0;
  font-size: var(--hp-subsection);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .hospitable-card__title {
  color: #f9fafb;
}

.hospitable-card__desc {
  margin: 12px 0 0;
  font-size: var(--hp-body);
  line-height: var(--hp-lh-normal);
  color: #6b7280;
}

.dark .hospitable-card__desc {
  color: #9ca3af;
}

/**
 * Hospitable AI 功能展示区
 */
.hospitable-calm {
  padding: 96px 0;
}

.hospitable-calm__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hospitable-calm__title {
  margin: 0;
  text-align: center;
  font-size: var(--hp-section);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .hospitable-calm__title {
  color: #f9fafb;
}

.hospitable-calm__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.hospitable-calm-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
}

.dark .hospitable-calm-card {
  background: #1f2937;
  border-color: #374151;
}

.hospitable-calm-card__heading {
  text-align: center;
}

.hospitable-calm-card__title {
  margin: 0;
  font-size: var(--hp-subsection);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .hospitable-calm-card__title {
  color: #f9fafb;
}

.hospitable-calm-card__desc {
  max-width: 420px;
  margin: 12px auto 0;
  font-size: var(--hp-body);
  line-height: var(--hp-lh-normal);
  color: #6b7280;
}

.dark .hospitable-calm-card__desc {
  color: #9ca3af;
}

.hospitable-calm-card__demo {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin-top: 24px;
}

.hospitable-calm-card__demo--chat {
  gap: 16px;
  padding: 0 8px;
}

.calm-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calm-chat-row--ai {
  justify-content: flex-end;
  padding-right: 8px;
}

.calm-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #e5e7eb;
}

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

.calm-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--hp-body-sm);
  font-weight: var(--hp-fw-bold);
  color: #6b7280;
}

.calm-bubble {
  position: relative;
  max-width: 100%;
  font-size: var(--hp-body-sm);
  line-height: var(--hp-lh-normal);
}

.calm-bubble--user {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.dark .calm-bubble--user {
  color: #e5e7eb;
  background: #111827;
  border-color: #4b5563;
}

.calm-bubble__author {
  display: block;
  margin-top: 8px;
  font-size: var(--hp-caption);
  color: #9ca3af;
}

.calm-bubble-wrap--ai {
  position: relative;
  max-width: 92%;
}

.calm-bubble--ai {
  padding: 14px 16px 18px;
  color: #374151;
  background: #fff1f2;
  border-radius: 16px;
}

.dark .calm-bubble--ai {
  color: #fce7f3;
  background: rgba(225, 29, 72, 0.15);
}

.calm-bubble__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--hp-caption);
  font-weight: var(--hp-fw-semibold);
  color: #e11d48;
}

.calm-bubble__badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: var(--hp-caption);
  color: #fff;
  background: #e11d48;
  border: 2px solid #fff;
  border-radius: 50%;
}

.dark .calm-bubble__badge {
  border-color: #1f2937;
}

.calm-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.calm-avatars__item {
  width: 44px;
  height: 44px;
  overflow: hidden;
  margin-left: -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e5e7eb;
}

.calm-avatars__item:first-child {
  margin-left: 0;
}

.dark .calm-avatars__item {
  border-color: #1f2937;
}

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

.calm-bubble--insight {
  max-width: 340px;
  margin: 0 auto;
  padding: 16px 18px;
  text-align: left;
  color: #374151;
  background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
  border-radius: 16px;
}

.dark .calm-bubble--insight {
  color: #fce7f3;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(244, 114, 182, 0.18) 100%);
}

.calm-bubble--insight .calm-bubble__label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calm-bubble--insight .calm-bubble__label i {
  font-size: var(--hp-body-sm);
}

@media (max-width: 767.98px) {
  .hospitable-calm__grid {
    grid-template-columns: 1fr;
  }

  .hospitable-calm-card {
    min-height: auto;
    padding-bottom: 28px;
  }
}

/**
 * Hospitable Automation 功能切换展示区
 */
.hospitable-automation {
  padding: 96px 0;
}

.hospitable-automation__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hospitable-automation__title {
  margin: 0;
  text-align: left;
  font-size: var(--hp-section);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #111827;
}

.dark .hospitable-automation__title {
  color: #f9fafb;
}

.hospitable-automation__intro {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: var(--hp-lead);
  line-height: var(--hp-lh-normal);
  color: #6b7280;
}

.dark .hospitable-automation__intro {
  color: #9ca3af;
}

.hospitable-automation__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 480px;
  margin-top: 40px;
  padding: 32px;
  background: #efe7ff;
  border-radius: 20px;
}

.dark .hospitable-automation__preview {
  background: rgba(139, 92, 246, 0.12);
}

.hospitable-automation__preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hospitable-automation__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.hospitable-automation-tab {
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.hospitable-automation-tab__track {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #e5e7eb;
}

.dark .hospitable-automation-tab__track {
  background: #4b5563;
}

.hospitable-automation-tab__progress {
  width: 0;
  height: 100%;
  background: #e11d48;
}

@keyframes hospitableAutomationProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.hospitable-automation-tab.is-active .hospitable-automation-tab__progress {
  animation: hospitableAutomationProgress 5s linear forwards;
}

.hospitable-automation-tab__title {
  margin: 16px 0 0;
  font-size: var(--hp-subsection);
  font-weight: var(--hp-fw-bold);
  line-height: var(--hp-lh-tight);
  color: #374151;
  transition: color 0.2s ease;
}

.dark .hospitable-automation-tab__title {
  color: #d1d5db;
}

.hospitable-automation-tab.is-active .hospitable-automation-tab__title {
  color: #e11d48;
}

.hospitable-automation-tab__desc {
  margin: 8px 0 0;
  font-size: var(--hp-body);
  line-height: var(--hp-lh-normal);
  color: #9ca3af;
}

.dark .hospitable-automation-tab__desc {
  color: #6b7280;
}

@media (max-width: 767.98px) {
  .hospitable-automation__tabs {
    grid-template-columns: 1fr;
  }

  .hospitable-automation__preview {
    height: auto;
    min-height: 320px;
  }
}
