.ai-demo-page {
  --demo-black: #070a09;
  --demo-green: #123b30;
  --demo-green-bright: #77b79f;
  --demo-silver: #c7cfcc;
  --demo-line: rgba(185, 207, 199, .22);
  background: #0a0e0c;
}

.ai-demo-page .topbar { border-bottom-color: #d9e2df; }
.ai-demo-page .topbar .nav > a.ai-demo-nav-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 8px 5px;
  padding: 8px 13px;
  border: 1px solid rgba(62, 137, 111, .64);
  border-radius: 999px;
  color: #e8faf1;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(130, 255, 205, .32);
  background: linear-gradient(115deg, #08251d 0%, #174c3c 46%, #0b1713 100%);
  box-shadow: 0 0 0 1px rgba(156, 225, 199, .08) inset, 0 5px 16px rgba(8, 69, 51, .22);
  animation: ai-demo-nav-breathe 2.8s ease-in-out infinite;
}
.ai-demo-page .topbar .nav > a.ai-demo-nav-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  left: -42%;
  width: 28%;
  height: 220%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(218, 255, 239, .72), transparent);
  animation: ai-demo-nav-sweep 3.8s cubic-bezier(.25, .7, .25, 1) infinite;
}
.ai-demo-page .topbar .nav > a.ai-demo-nav-link::after {
  content: "AI";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  place-items: center;
  color: #092019;
  background: #b7ead5;
  box-shadow: 0 0 13px rgba(156, 255, 211, .76);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -.04em;
  vertical-align: -2px;
}
.ai-demo-page .topbar .nav > a.ai-demo-nav-link:hover,
.ai-demo-page .topbar .nav > a.ai-demo-nav-link:focus-visible {
  transform: translateY(-2px) scale(1.025);
  border-color: #c7f6df;
  color: #fff;
  background: linear-gradient(115deg, #0d3629, #27765c 50%, #10251d);
  box-shadow: 0 0 0 1px rgba(221, 255, 239, .34) inset, 0 9px 23px rgba(14, 120, 87, .34);
}
@keyframes ai-demo-nav-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(156, 225, 199, .08) inset, 0 5px 16px rgba(8, 69, 51, .22); }
  50% { box-shadow: 0 0 0 1px rgba(184, 249, 219, .24) inset, 0 6px 22px rgba(18, 133, 95, .36), 0 0 16px rgba(94, 222, 171, .16); }
}
@keyframes ai-demo-nav-sweep {
  0%, 40% { left: -42%; }
  72%, 100% { left: 125%; }
}

.ai-demo-page main {
  min-height: calc(100vh - 64px);
  color: #eef3f1;
  background:
    radial-gradient(circle at 92% 10%, rgba(59, 115, 94, .2), transparent 28%),
    linear-gradient(180deg, #0b0f0d 0, #111714 58%, #090c0b 100%);
}

.ai-demo-hero {
  position: relative;
  min-height: 254px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--demo-line);
  background:
    linear-gradient(90deg, rgba(3, 5, 4, .97) 0%, rgba(3, 8, 6, .86) 44%, rgba(3, 10, 7, .34) 100%),
    url('../system-assets/demos/xunjing-cover.png') center 43% / cover no-repeat;
}

.ai-demo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 48%, rgba(215, 227, 223, .12) 48.2%, transparent 48.5%);
}

.ai-demo-hero-inner,
.ai-demo-library { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.ai-demo-hero-inner { position: relative; z-index: 1; padding: 48px 0 40px; }
.ai-demo-page .eyebrow { margin: 0 0 12px; color: var(--demo-green-bright); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.ai-demo-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.035em; }
.ai-demo-hero h1::after { content: ""; display: block; width: 54px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, #7eaa9a, #d8dfdc); }
.ai-demo-hero-inner > p:last-child { max-width: 660px; margin: 16px 0 0; color: #c3ceca; font-size: 15px; line-height: 1.8; }

.ai-demo-library { padding: 48px 0 74px; }
.ai-demo-library-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.ai-demo-library-head h2 { margin: 0; color: #f7faf9; font-size: 25px; letter-spacing: -.02em; }
.ai-demo-count { padding: 7px 11px; border: 1px solid var(--demo-line); color: #aebbb7; font-size: 12px; }

.ai-demo-project {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, .78fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--demo-line);
  background: rgba(17, 24, 21, .9);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
}

.ai-demo-project + .ai-demo-project { margin-top: 18px; }

.ai-demo-cover { position: relative; display: block; min-height: 470px; overflow: hidden; background: #050706; }
.ai-demo-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 56%, rgba(8, 13, 11, .62) 100%), linear-gradient(0deg, rgba(1, 4, 3, .48), transparent 38%); }
.ai-demo-cover img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.ai-demo-cover:hover img { transform: scale(1.025); filter: brightness(1.06); }
.ai-demo-live,
.ai-demo-cover-action { position: absolute; z-index: 1; }
.ai-demo-live { top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #dce8e3; border: 1px solid rgba(225, 238, 233, .24); background: rgba(5, 13, 10, .72); backdrop-filter: blur(8px); font-size: 12px; }
.ai-demo-live i { width: 7px; height: 7px; border-radius: 50%; background: #81d3ac; box-shadow: 0 0 0 5px rgba(129, 211, 172, .12); }
.ai-demo-cover-action { right: 22px; bottom: 20px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.ai-demo-cover-action b { display: inline-block; margin-left: 7px; transition: transform .22s ease; }
.ai-demo-cover:hover .ai-demo-cover-action b { transform: translate(3px, -3px); }

.ai-demo-project-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 44px 40px; }
.ai-demo-project-copy::before { content: ""; position: absolute; top: 44px; bottom: 44px; left: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(205, 220, 214, .36), transparent); }
.ai-demo-project-index { margin: 0 0 17px; color: #84b29f; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.ai-demo-project h3 { margin: 0; color: #fff; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.22; letter-spacing: -.035em; }
.ai-demo-project-subtitle { margin: 10px 0 0; color: var(--demo-silver); font-size: 14px; }
.ai-demo-description { margin: 24px 0 0; color: #aebbb7; font-size: 14px; line-height: 1.85; }
.ai-demo-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ai-demo-features li { padding: 7px 9px; border: 1px solid rgba(138, 180, 164, .2); color: #bdcbc6; background: rgba(42, 79, 65, .2); font-size: 11px; }
.ai-demo-device-note { margin: 18px 0 0; color: #7f8e89; font-size: 11px; line-height: 1.7; }
.ai-demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.ai-demo-page .ai-demo-actions .btn { min-height: 42px; padding: 10px 16px; border-radius: 2px; font-size: 13px; }
.ai-demo-page .ai-demo-actions .btn.primary { border-color: #d7dfdc; color: #07100d; background: linear-gradient(135deg, #f0f3f2, #aebbb7); }
.ai-demo-page .ai-demo-actions .btn.primary:hover { border-color: #fff; background: #fff; }
.ai-demo-page .ai-demo-actions .btn.secondary { border-color: rgba(195, 211, 204, .28); color: #d7e1dd; background: transparent; }
.ai-demo-page .ai-demo-actions .btn.secondary:hover { border-color: #87b6a3; color: #fff; background: rgba(48, 91, 73, .22); }

.electronics-demo-project .ai-demo-live i { background: #69b8ff; box-shadow: 0 0 0 5px rgba(105, 184, 255, .13); }
.electronics-demo-project .ai-demo-project-index { color: #82c4ff; }
.electronics-demo-project .ai-demo-features li { border-color: rgba(105, 184, 255, .22); background: rgba(28, 73, 104, .22); }
.electronics-demo-project .ai-demo-actions .btn.secondary:hover { border-color: #74b9ee; background: rgba(39, 93, 130, .23); }

.material-demo-project .ai-demo-live i { background: #6ed8c4; box-shadow: 0 0 0 5px rgba(110, 216, 196, .13); }
.material-demo-project .ai-demo-project-index { color: #8ae2d0; }
.material-demo-project .ai-demo-features li { border-color: rgba(110, 216, 196, .22); background: rgba(23, 91, 81, .22); }
.material-demo-project .ai-demo-actions .btn.secondary:hover { border-color: #74d1c0; background: rgba(31, 104, 92, .23); }

.aa-showroom-demo-project .ai-demo-live i { background: #e7bf6a; box-shadow: 0 0 0 5px rgba(231, 191, 106, .13); }
.aa-showroom-demo-project .ai-demo-project-index { color: #e5c06d; }
.aa-showroom-demo-project .ai-demo-features li { border-color: rgba(231, 191, 106, .24); background: rgba(102, 76, 29, .24); }
.aa-showroom-demo-project .ai-demo-actions .btn.secondary:hover { border-color: #e1bb6e; background: rgba(111, 80, 27, .24); }

.technology-demo-project .ai-demo-live i { background: #83d6c1; box-shadow: 0 0 0 5px rgba(131, 214, 193, .13); }
.technology-demo-project .ai-demo-project-index { color: #9adcc9; }
.technology-demo-project .ai-demo-features li { border-color: rgba(131, 214, 193, .22); background: rgba(31, 91, 79, .23); }
.technology-demo-project .ai-demo-actions .btn.secondary:hover { border-color: #8cdbc7; background: rgba(36, 107, 92, .24); }

@media (max-width: 1040px) {
  .ai-demo-page .topbar .nav > a { padding-right: 8px; padding-left: 8px; font-size: 13px; }
  .ai-demo-page .topbar .nav > a.ai-demo-nav-link { margin: 7px 2px; padding: 7px 10px; }
  .ai-demo-project { grid-template-columns: 1.15fr .85fr; }
  .ai-demo-project-copy { padding: 34px 28px; }
}

@media (max-width: 820px) {
  .ai-demo-project { grid-template-columns: 1fr; }
  .ai-demo-cover, .ai-demo-cover img { min-height: 340px; }
  .ai-demo-project-copy::before { top: 0; right: 28px; bottom: auto; left: 28px; width: auto; height: 1px; }
}

@media (max-width: 560px) {
  .ai-demo-hero-inner,
  .ai-demo-library { width: min(100% - 32px, 1180px); }
  .ai-demo-hero { min-height: 232px; }
  .ai-demo-hero-inner { padding: 38px 0 32px; }
  .ai-demo-library { padding: 34px 0 54px; }
  .ai-demo-library-head { align-items: start; }
  .ai-demo-count { margin-top: 22px; white-space: nowrap; }
  .ai-demo-cover, .ai-demo-cover img { min-height: 250px; }
  .ai-demo-project-copy { padding: 30px 22px; }
  .ai-demo-actions { display: grid; }
  .ai-demo-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-demo-cover img,
  .ai-demo-cover-action b,
  .ai-demo-page .topbar .nav > a.ai-demo-nav-link { transition: none; animation: none; }
  .ai-demo-page .topbar .nav > a.ai-demo-nav-link::before { animation: none; }
}
