/* ============================================================
   AI 模型 API 頁面 · 暗色風格
   ============================================================ */

/* Hero Banner */
.aiHero {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(50, 240, 140, .1), transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 100%, rgba(16, 185, 129, .06), transparent 60%),
    #0a0d0b;
  overflow: hidden;
}
.aiHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.aiHero .sectionInner {
  padding-block: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.aiHeroTag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(50, 240, 140, .35);
  border-radius: 2px;
  color: #32f08c;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.aiHeroTitle {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.aiHeroTitle .accent {
  background: linear-gradient(120deg, #a0fde7 0%, #32f08c 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aiHeroDesc {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}
.aiHeroStats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  margin-top: 32px;
}
.aiHeroStat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}
.aiHeroStat i {
  color: #32f08c;
  font-size: 14px;
}

/* Models Section */
.aiModelsSection {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #0a0b0d;
}
.aiModelsSection .sectionInner {
  padding-block: 56px;
}

/* Filter Bar */
.modelFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filterBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filterBtn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(1.1);
}
.filterBtn:hover {
  color: #fff;
  border-color: rgba(50, 240, 140, .35);
  background: rgba(50, 240, 140, .04);
}
.filterBtn.isActive {
  color: #32f08c;
  border-color: rgba(50, 240, 140, .5);
  background: rgba(50, 240, 140, .08);
}

/* Models Grid */
.modelsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Model Card */
.modelCard {
  position: relative;
  padding: 20px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.modelCard:hover {
  border-color: rgba(50, 240, 140, .35);
  background: rgba(50, 240, 140, .03);
  transform: translateY(-2px);
}

/* Card Header */
.mcHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.mcIcon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, .05);
  object-fit: contain;
  flex-shrink: 0;
}
.mcTitleArea {
  flex: 1;
  min-width: 0;
}
.mcTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mcTitle {
  color: #f5f9fe;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.mcBadge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
  font-weight: 500;
}
.mcBadge.badgeVideo {
  background: rgba(139, 92, 246, .12);
  color: #b39bff;
}
.mcCopy {
  flex-shrink: 0;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  font-size: 13px;
  transition: color .2s ease;
}
.mcCopy:hover { color: #32f08c; }

/* Pricing */
.mcPricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, .25);
  border-radius: 6px;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
}
.mcPriceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mcPriceLabel {
  color: rgba(255, 255, 255, .5);
}
.mcPriceVal {
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.mcPriceVal i { font-size: 11px; }

/* Description */
.mcDesc {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Footer */
.mcFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, .08);
  font-size: 12px;
}
.mcTags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .5);
}
.mcTags .mcDot {
  color: #32f08c;
  font-size: 8px;
  line-height: 1;
}
.mcTags .mcSep {
  color: rgba(255, 255, 255, .18);
  margin: 0 2px;
}
.mcLink {
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s ease;
}
.mcLink:hover { color: #32f08c; }

/* Loading & Empty states */
.modelsLoading,
.modelsEmpty,
.modelsError {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
}
.modelsLoading i,
.modelsEmpty i,
.modelsError i {
  display: block;
  font-size: 32px;
  margin-bottom: 16px;
  color: #32f08c;
}
.modelsError i { color: #ef4444; }
.modelsLoading p,
.modelsEmpty p,
.modelsError p { margin: 0; }

/* Copy toast */
.mcToast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(50, 240, 140, .95);
  color: #0a0d0b;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(50, 240, 140, .3);
}
.mcToast.isShow {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 599px) {
  .aiHero .sectionInner { padding-block: 56px; }
  .aiModelsSection .sectionInner { padding-block: 40px; }
  .modelsGrid { grid-template-columns: 1fr; gap: 12px; }
  .aiHeroStats { gap: 10px 20px; margin-top: 24px; }
}
