/* 試玩 AI 功能 — 沿用 AI 客服金框展版 */

.trial-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 30%, #2a1810 0%, #0a0604 55%);
}

.trial-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  box-sizing: border-box;
}

.trial-widget {
  --widget-w: min(680px, 96vw);
  position: relative;
  width: var(--widget-w);
  aspect-ratio: 1 / 1;
}

.trial-widget__frame {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.trial-slot {
  position: absolute;
  left: 13%;
  top: 31.25%;
  width: 74%;
  height: 60%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.trial-head {
  flex-shrink: 0;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(139, 105, 20, 0.25);
}

.trial-head__title {
  margin: 0;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  color: #3d2817;
  letter-spacing: 0.02em;
}

.trial-head__sub {
  margin: 4px 0 0;
  font-size: clamp(9px, 2.2vw, 11px);
  color: #8a7355;
  line-height: 1.35;
}

.trial-list {
  flex: 1;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

.trial-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 60, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.trial-item__title {
  display: block;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 700;
  color: #2a2018;
  line-height: 1.35;
}

.trial-item__price {
  display: block;
  margin-top: 2px;
  font-size: clamp(9px, 2.2vw, 10px);
  color: #8b6914;
}

.trial-item__link {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 600;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(180, 140, 60, 0.45);
  background: linear-gradient(135deg, #c9a227, #8b6914);
  color: #fff;
}

.trial-item__link:hover,
.trial-item__link:focus-visible {
  filter: brightness(1.08);
}

.trial-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(139, 105, 20, 0.2);
}

.trial-foot a {
  padding: 4px 8px;
  font-size: 9px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(180, 140, 60, 0.35);
  background: rgba(255, 255, 255, 0.88);
  color: #3d2817;
}

@media (max-width: 768px) {
  .trial-widget {
    --widget-w: min(420px, 94vw);
  }
}
