/* ========================================
   AI Module Pages - Full-Screen Layout
   ======================================== */

/* ---------- Reset & Base ---------- */
.ai-page { overflow-x: hidden; }

/* ---------- Hero Banner ---------- */
.ai-hero-banner {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0e1a;
}
.ai-hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: 1;
}
.ai-hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,.92) 0%, rgba(20,40,80,.72) 50%, rgba(10,14,26,.85) 100%);
  z-index: 2;
}
.ai-hero-banner .hero-content {
  position: relative;
  z-index: 3;
  max-width: 960px;
  width: 90%;
  text-align: center;
  padding: 80px 0 60px;
}
.ai-hero-banner .hero-label {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.ai-hero-banner h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
  letter-spacing: 2px;
}
.ai-hero-banner .hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 30px;
}
.ai-hero-banner .hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ai-hero-banner .hero-tags span {
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
}

/* ---------- Section Common ---------- */
.ai-section {
  width: 100%;
  padding: 72px 0;
}
.ai-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.ai-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.ai-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.ai-section-title .en-sub {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
}
.ai-section-title .line {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #2f5cff, #00c6ff);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---------- KPI Cards ---------- */
.ai-kpi-section {
  background: linear-gradient(135deg, #0f1629 0%, #1a2747 100%);
}
.ai-kpi-section .ai-section-title h2 {
  color: #fff;
}
.ai-kpi-section .ai-section-title .en-sub {
  color: rgba(255,255,255,.45);
}
.ai-kpi-section .ai-section-title .line {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
}
.ai-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ai-kpi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.ai-kpi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.ai-kpi-card .kpi-num {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 12px;
}
.ai-kpi-card .kpi-label {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ---------- Content Grid ---------- */
.ai-content-section {
  background: #fff;
}
.ai-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ai-content-grid.reverse {
  direction: rtl;
}
.ai-content-grid.reverse > * {
  direction: ltr;
}
.ai-content-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  line-height: 1.3;
}
.ai-content-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ai-content-text li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 15px;
  color: #444;
  line-height: 1.85;
}
.ai-content-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f5cff, #00c6ff);
}
.ai-content-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.ai-content-img img {
  width: 100%;
  display: block;
  transition: transform .5s;
}
.ai-content-img:hover img {
  transform: scale(1.03);
}

/* ---------- Gallery ---------- */
.ai-gallery-section {
  background: #f7f9fc;
}
.ai-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ai-gallery-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}
.ai-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.ai-gallery-card .card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.ai-gallery-card .card-caption {
  padding: 16px 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  font-weight: 500;
}

/* ---------- Extra Feature Section ---------- */
.ai-feature-section {
  background: #fff;
}
.ai-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.ai-feature-row:last-child {
  margin-bottom: 0;
}
.ai-feature-card {
  display: flex;
  gap: 20px;
  background: #f7f9fc;
  border-radius: 16px;
  padding: 24px;
  align-items: flex-start;
  transition: box-shadow .3s;
}
.ai-feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.ai-feature-card .feat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f5cff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}
.ai-feature-card .feat-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.ai-feature-card .feat-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Footer ---------- */
.ai-footer {
  background: #0a0e1a;
  padding: 40px 0;
  text-align: center;
}
.ai-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.ai-footer .footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ai-footer .footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .3s;
}
.ai-footer .footer-links a:hover {
  color: #fff;
}
.ai-footer .footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  line-height: 1.8;
}
.ai-footer .footer-copy a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ai-hero-banner { min-height: 420px; }
  .ai-hero-banner h1 { font-size: 38px; }
  .ai-hero-banner .hero-desc { font-size: 16px; }
  .ai-kpi-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .ai-content-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-content-grid.reverse { direction: ltr; }
  .ai-gallery-grid { grid-template-columns: 1fr 1fr; }
  .ai-feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ai-hero-banner { min-height: 360px; }
  .ai-hero-banner h1 { font-size: 28px; }
  .ai-hero-banner .hero-content { padding: 60px 0 40px; }
  .ai-section { padding: 48px 0; }
  .ai-section-title h2 { font-size: 24px; }
  .ai-kpi-card { padding: 24px 20px; }
  .ai-kpi-card .kpi-num { font-size: 36px; }
  .ai-gallery-grid { grid-template-columns: 1fr; }
  .ai-hero-banner .hero-tags span { font-size: 12px; padding: 6px 14px; }
}
