/* 
 * 产品页面公共样式 - 场景应用区域
 * 用于 hardware_products1.html 和 hardware_products2.html
 */

/* 场景应用区域 - 随时随录 随拍随识 */
.assistant-section {
  position: relative;
  width: 100%;
  padding: 92px 0 120px;
  background: none;
  overflow: hidden;
}

.assistant-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 176, 0.28) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 50% 100%, rgba(171, 197, 255, 0.22) 0%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.assistant-inner {
  position: relative;
  width: min(1140px, calc(100% - 56px));
  margin: 0 auto;
  z-index: 1;
}

.assistant-header {
  text-align: center;
  opacity: 0;
  transform: translateY(48px);
  filter: blur(12px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.assistant-title-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.assistant-accent {
  width: 8px;
  height: 34px;
  background: #ff2a20;
  border-radius: 2px;
  flex-shrink: 0;
}

.assistant-title {
  font-size: 50px;
  line-height: 1.12;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.02em;
}

.assistant-subtitle {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  color: #696969;
}

.assistant-stack {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.assistant-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 226px;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 28px 60px rgba(161, 169, 196, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(72px);
  filter: blur(16px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1), filter 0.9s ease, box-shadow 0.4s ease;
}

.assistant-card:hover {
  box-shadow:
    0 34px 72px rgba(161, 169, 196, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.assistant-card.media-left {
  flex-direction: row;
}

.assistant-card.media-right {
  flex-direction: row-reverse;
}

.assistant-media {
  position: relative;
  flex: 0 0 61%;
  min-height: 226px;
  overflow: hidden;
  isolation: isolate;
}

.assistant-card.media-left .assistant-media {
  border-radius: 34px 0 0 34px;
}

.assistant-card.media-right .assistant-media {
  border-radius: 0 34px 34px 0;
}

.assistant-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 24, 35, 0.08) 0%, rgba(18, 24, 35, 0) 32%, rgba(18, 24, 35, 0.08) 100%);
  pointer-events: none;
  z-index: 1;
}

.assistant-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.assistant-card:hover .assistant-media img {
  transform: scale(1.08);
}

.assistant-copy {
  position: relative;
  flex: 1;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #323232;
  transform: scale(1.2);
  transform-origin: left center;
}

.assistant-copy::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 131, 0.18) 0%, rgba(255, 255, 255, 0) 72%);
  top: -44px;
  right: -34px;
  pointer-events: none;
}

.assistant-card.media-right .assistant-copy::before {
  right: auto;
  left: -34px;
  background: radial-gradient(circle, rgba(153, 185, 255, 0.18) 0%, rgba(255, 255, 255, 0) 72%);
}

.assistant-card-title {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
  color: #323232;
}

.assistant-tag {
  margin-top: 20px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 107, 0.28);
  background: rgba(255, 250, 245, 0.78);
  font-size: 13px;
  line-height: 1;
  color: #f0a078;
  width: fit-content;
}

.assistant-tag::after {
  content: "AI";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(255, 193, 157, 0.22);
  font-size: 11px;
  font-weight: 700;
  color: #ef8b57;
}

.assistant-lines {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistant-lines p {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: #7a7a7a;
}

.assistant-card.accent-blue .assistant-tag {
  border-color: rgba(148, 177, 255, 0.34);
  background: rgba(245, 248, 255, 0.82);
  color: #a9bce8;
}

.assistant-card.accent-blue .assistant-tag::after {
  background: rgba(160, 183, 255, 0.2);
  color: #7f96cf;
}

.assistant-card.accent-cyan .assistant-tag {
  border-color: rgba(145, 205, 221, 0.34);
  background: rgba(244, 252, 255, 0.84);
  color: #88b9c7;
}

.assistant-card.accent-cyan .assistant-tag::after {
  background: rgba(133, 215, 235, 0.18);
  color: #71abc3;
}

.assistant-card.accent-warm .assistant-tag {
  border-color: rgba(255, 159, 107, 0.28);
  background: rgba(255, 250, 245, 0.78);
  color: #f0a078;
}

.assistant-card.accent-warm .assistant-tag::after {
  background: rgba(255, 193, 157, 0.22);
  color: #ef8b57;
}

.assistant-section.in-view .assistant-header {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.assistant-section.in-view .assistant-card {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: var(--assistant-delay, 0ms);
}

/* 响应式 - 992px 以下 */
@media (max-width: 992px) {
  .assistant-section {
    padding: 78px 0 96px;
  }

  .assistant-inner {
    width: calc(100% - 32px);
  }

  .assistant-title {
    font-size: 38px;
  }

  .assistant-subtitle {
    font-size: 18px;
  }

  .assistant-card,
  .assistant-card.media-right,
  .assistant-card.media-left {
    flex-direction: column;
  }

  .assistant-media {
    flex-basis: auto;
    min-height: 248px;
  }

  .assistant-card.media-left .assistant-media,
  .assistant-card.media-right .assistant-media {
    border-radius: 34px 34px 0 0;
  }
}

/* 响应式 - 768px 以下 */
@media (max-width: 768px) {
  .assistant-section {
    padding: 64px 0 80px;
  }

  .assistant-inner {
    width: calc(100% - 20px);
  }

  .assistant-title-row {
    gap: 10px;
  }

  .assistant-accent {
    width: 6px;
    height: 24px;
  }

  .assistant-title {
    font-size: 28px;
  }

  .assistant-subtitle {
    margin-top: 8px;
    font-size: 14px;
  }

  .assistant-stack {
    margin-top: 30px;
    gap: 16px;
  }

  .assistant-card {
    min-height: auto;
    border-radius: 26px;
  }

  .assistant-media {
    min-height: 188px;
  }

  .assistant-card.media-left .assistant-media,
  .assistant-card.media-right .assistant-media {
    border-radius: 26px 26px 0 0;
  }

  .assistant-copy {
    padding: 24px 20px 22px;
  }

  .assistant-card-title {
    font-size: 22px;
  }

  .assistant-tag {
    margin-top: 8px;
    font-size: 12px;
  }

  .assistant-lines {
    margin-top: 14px;
    gap: 6px;
  }

  .assistant-lines p {
    font-size: 16px;
  }
}

/* ========================================
   声波动画组件 - 公共样式
   用于 hardware_products1.html 和 hardware_products2.html
   ======================================== */

/* 波浪装饰容器 */
.qa-wave-decoration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: 249.74px;
  height: 40px;
  margin-left: 42px;
}

/* 声波条容器 */
.qa-wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

/* 单个声波条 */
.qa-wave-bar {
  width: 4px;
  height: var(--bar-height, 12px);
  border-radius: 2px;
  background: linear-gradient(180deg, #f5b185 0%, #d8b6e9 50%, #8cb4f5 100%);
  animation: waveBarPulse 1.5s ease-in-out infinite;
  animation-delay: var(--bar-delay, 0s);
  transform-origin: center center;
  box-shadow: 0 0 8px rgba(245, 177, 133, 0.4);
}

/* 声波条脉动动画 */
@keyframes waveBarPulse {
  0%, 100% {
    transform: scaleY(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* 机器人图标容器 */
.qa-robot {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 27.46px;
  height: 22.36px;
}

.qa-robot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .qa-wave-decoration {
    width: 200px;
    height: 32px;
    margin-left: 0;
  }

  .qa-wave-bars {
    gap: 3px;
  }

  .qa-wave-bar {
    width: 3px;
  }

  .qa-robot {
    width: 22px;
    height: 18px;
    bottom: -24px;
  }
}

/* ========================================
   QA Section - 公共样式
   用于 hardware_products1.html 和 hardware_products2.html
   ======================================== */

/* ══════════════════ 8. AI Q&A Section ══════════════════ */
.qa-section {
  padding: 100px 0 120px;
  background: none;
  overflow: hidden;
}

.qa-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 60px 40px 20px;
  transform: scale(1.35);
}

.qa-bubbles-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 340px;
  margin: 0 auto;
}

/* 通用气泡样式 */
.qa-bubble {
  position: absolute;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  /* 初始状态：在中心位置且不可见 */
  opacity: 0;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.3);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 动画激活后的状态 */
.qa-bubble.qa-animated {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* 漂浮动画 */
.qa-bubble.qa-floating {
  animation: qaFloat 3s ease-in-out infinite;
}

@keyframes qaFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(0, -8px) scale(1);
  }
}

.qa-bubble-big {
  border-radius: 16px;
  padding: 16px 24px;
}

.qa-bubble-text {
  color: #949494;
  font-family: "Noto Sans SC";
  font-size: 16.955px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  margin-bottom: 0;
}

.qa-bubble-big .qa-bubble-text {
  color: #676767;
  font-family: "Noto Sans SC";
  font-size: 30.277px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* 怎么做红烧肉才好吃？ - 左上 */
.qa-bubble-top-left.qa-animated {
  left: 17% !important;
  top: 8% !important;
}

.qa-bubble-top-left .qa-bubble-text {
  font-size: 15px;
  color: #999;
}

/* 如何提高睡眠质量？ - 中上 */
.qa-bubble-top-center.qa-animated {
  left: 50% !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
}

.qa-bubble-top-center .qa-bubble-text {
  font-size: 20px;
  color: #333;
}

/* 微信聊天记录怎么备份？ - 右上 */
.qa-bubble-top-right.qa-animated {
  right: 13% !important;
  left: auto !important;
  top: 15% !important;
}

.qa-bubble-top-right .qa-bubble-text {
  font-size: 15px;
  color: #999;
}

/* 帮我把刚才的会议总结 - 左中 */
.qa-bubble-middle-left.qa-animated {
  left: 3% !important;
  top: 45% !important;
  transform: translateY(-50%) !important;
}

.qa-bubble-middle-left .qa-bubble-text {
  font-size: 17px;
  color: #555;
}

/* 飞机延误了怎么办？ - 右中 */
.qa-bubble-middle-right.qa-animated {
  right: 3% !important;
  left: auto !important;
  top: 45% !important;
  transform: translateY(-50%) !important;
}

.qa-bubble-middle-right .qa-bubble-text {
  font-size: 20px;
  color: #333;
  font-weight: 500;
}

/* 咖啡和茶，哪个更提神？ - 左下 */
.qa-bubble-bottom-left.qa-animated {
  left: 15% !important;
  bottom: 18% !important;
  top: auto !important;
}

.qa-bubble-bottom-left .qa-bubble-text {
  font-size: 15px;
  color: #999;
}

/* 晚上饿了吃什么不容易胖？ - 右下 */
.qa-bubble-bottom-right.qa-animated {
  right: 14% !important;
  left: auto !important;
  bottom: 18% !important;
  top: auto !important;
}

.qa-bubble-bottom-right .qa-bubble-text {
  font-size: 15px;
  color: #999;
}

/* 中心内容区域 */
.qa-center-content {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  padding: 20px;
  z-index: 10;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.qa-title {
  color: #333;
  font-family: "Noto Sans";
  font-size: 35.997px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  line-height: 1;
}

.qa-subtitle {
  color: #333;
  font-family: "Noto Sans";
  font-size: 35.997px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin: 0 0 20px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .qa-bubbles-wrapper {
    max-width: 900px;
    gap: 16px;
  }

  .qa-title {
    font-size: 24px;
  }

  .qa-subtitle {
    font-size: 20px;
  }

  .qa-bubble-text {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .qa-section {
    padding: 60px 0 80px;
  }

  .qa-bubbles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
  }

  .qa-bubble {
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  .qa-center-content {
    order: -1;
    padding: 30px 20px;
  }

  .qa-title {
    font-size: 22px;
  }

  .qa-subtitle {
    font-size: 18px;
  }

  .qa-wave-decoration {
    height: 60px;
  }
  
  .qa-wave-img {
    height: 30px;
  }
  
  .qa-robot {
    width: 50px;
    height: 50px;
  }
}

/* ========================================
   产品图片轮播 - 图片淡入淡出效果
   ======================================== */
.product-img {
  transition: opacity 0.3s ease;
}
