:root {
  --page: #050505;
  --panel: #111;
  --panel-soft: #171717;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f6f6;
  --muted: #989898;
  --orange: #ff8a12;
  --orange-deep: #ff5b00;
  --orange-soft: rgba(255, 138, 18, 0.14);
  --radius: 9px;
  --shell: 720px;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -160px, rgba(255, 126, 0, 0.08), transparent 360px),
    #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.page-shell {
  width: 100%;
  max-width: var(--shell);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.9);
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  height: 70px;
  padding: 0 10px;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.topbar-action {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.topbar-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

.topbar-action svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-link {
  justify-self: start;
  color: var(--orange);
}

.menu-button {
  justify-self: start;
  color: var(--orange);
}

.menu-button svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.8;
}

.back-link svg {
  width: 35px;
  height: 35px;
  stroke-width: 2.6;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.language-select {
  width: 68px;
  height: 34px;
  padding: 0 7px;
  color: #d9d9d9;
  font-size: 12px;
  background:
    linear-gradient(45deg, transparent 50%, #999 50%) calc(100% - 13px) 14px / 4px 4px no-repeat,
    linear-gradient(135deg, #999 50%, transparent 50%) calc(100% - 9px) 14px / 4px 4px no-repeat,
    #111;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.language-select:focus {
  border-color: rgba(255, 138, 18, 0.68);
}

.brand {
  justify-self: center;
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(27px, 8vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #ff9b0b;
  -webkit-text-stroke: 1px #ff5d00;
  text-shadow:
    0 0 2px #ff5b00,
    0 0 12px rgba(255, 98, 0, 0.28),
    2px 2px 0 #3a1600;
}

.category-tabs {
  display: flex;
  gap: 10px;
  padding: 8px 10px 10px;
  overflow-x: auto;
  background: #030303;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs a {
  flex: 0 0 auto;
  padding: 9px 16px;
  color: #d5d5d5;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  background: #151515;
  border: 1px solid #252525;
  border-radius: 5px;
}

.category-tabs a.active {
  color: #111;
  font-weight: 700;
  background: linear-gradient(180deg, #ffad23, #ff7a00);
  border-color: #ff9b13;
  box-shadow: 0 5px 18px rgba(255, 119, 0, 0.2);
}

.drawer-overlay {
  position: fixed;
  z-index: 110;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

.site-drawer {
  position: fixed;
  z-index: 111;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(286px, 82vw);
  padding: 18px 14px 26px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 0 0, rgba(255, 134, 0, 0.13), transparent 230px),
    #0d0d0d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.55);
  transform: translateX(-104%);
  transition: transform 0.24s ease;
}

.site-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  color: #ff9b0b;
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 29px;
  font-weight: 900;
  -webkit-text-stroke: 1px #ff5d00;
  text-shadow: 0 0 10px rgba(255, 98, 0, 0.25);
}

.drawer-close {
  width: 38px;
  height: 38px;
  padding: 0;
  color: #bdbdbd;
  font-size: 27px;
  line-height: 1;
  background: transparent;
  border: 1px solid #2c2c2c;
  border-radius: 50%;
  cursor: pointer;
}

.site-drawer nav {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.site-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  color: #cfcfcf;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
}

.site-drawer nav a:hover,
.site-drawer nav a.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.site-drawer nav a span {
  color: #666;
  font-size: 19px;
}

.studio-strip {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(255, 138, 18, 0.04), transparent),
    #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.studio-strip span {
  color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
}

main {
  width: 100%;
}

.ai-tech {
  padding: 0 6px;
}

.section-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 5px 7px;
  padding: 13px 0 10px;
}

.section-title-row span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18));
}

.section-title-row span:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.section-title-row h1 {
  margin: 0;
  color: #f0f0f0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 10px;
}

.feature-card {
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.feature-visual {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  transform: translateZ(0);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.52));
}

.feature-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.feature-card:hover .feature-visual {
  border-color: rgba(255, 138, 18, 0.48);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.feature-card:hover .feature-visual img {
  transform: scale(1.035);
}

.feature-card:active .feature-visual {
  transform: scale(0.985);
}

.feature-shine {
  position: absolute;
  z-index: 2;
  top: -70%;
  left: -50%;
  width: 35%;
  height: 220%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(24deg);
  transition: left 0.55s ease, opacity 0.2s ease;
}

.feature-card:hover .feature-shine {
  left: 120%;
  opacity: 1;
}

.feature-badge {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  padding: 4px 7px;
  color: #1a0d00;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #ffc44d, #ff8200);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(255, 108, 0, 0.3);
}

.feature-caption {
  display: block;
  padding-top: 8px;
  color: #929292;
  font-size: 16px;
  line-height: 1.2;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 7px 0;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 167, 45, 0.3), transparent 35%),
    linear-gradient(120deg, #16100a, #2a1302 58%, #101010);
  border: 1px solid rgba(255, 150, 24, 0.2);
  border-radius: 10px;
}

.promo-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.promo-banner h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.promo-button {
  flex: none;
  padding: 9px 13px;
  color: #141414;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffb12b, #ff7a00);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 28px;
  padding: 22px 8px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-nav a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #d8d8d8;
  font-size: 11px;
  white-space: nowrap;
}

.quick-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  padding: 26px 14px 34px;
}

.site-footer > h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: 20px;
  line-height: 1.45;
}

.site-footer > p {
  margin: 8px 0 18px;
  color: #d3d3d3;
  font-size: 14px;
  line-height: 1.75;
}

.footer-list {
  margin: 0 -14px;
  border-top: 1px solid var(--line);
}

.footer-list a,
.footer-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  color: #e9e9e9;
  font-size: 15px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.footer-list span {
  color: #7d7d7d;
  font-size: 20px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 22px;
  color: #7f7f7f;
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dialog-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.dialog-card {
  position: relative;
  width: min(100%, 400px);
  padding: 26px 24px 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 133, 0, 0.14), transparent 40%),
    #151515;
  border: 1px solid rgba(255, 139, 17, 0.24);
  border-radius: 13px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.dialog-backdrop.open .dialog-card {
  transform: translateY(0) scale(1);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 13px;
  padding: 4px;
  color: #8f8f8f;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dialog-kicker {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.dialog-card h2 {
  margin: 8px 0 10px;
  font-size: 23px;
}

.dialog-card p {
  margin: 0;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.8;
}

.dialog-primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  color: #17100a;
  font-weight: 800;
  background: linear-gradient(180deg, #ffb52d, #ff7900);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 36px);
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  visibility: hidden;
  background: rgba(28, 28, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: 0.2s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 768px) {
  .topbar {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    height: 78px;
    padding: 0 18px;
  }

  .language-select {
    width: 78px;
    height: 36px;
    font-size: 13px;
  }

  .category-tabs {
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .ai-tech {
    padding: 0 14px;
  }

  .section-title-row {
    margin: 0 14px 10px;
    padding: 22px 0 14px;
  }

  .section-title-row h1 {
    font-size: 23px;
    font-weight: 600;
  }

  .feature-grid {
    gap: 22px 14px;
  }

  .feature-caption {
    padding-top: 10px;
    font-size: 18px;
  }

  .promo-banner {
    margin: 32px 14px 0;
    padding: 22px 24px;
  }

  .promo-banner h2 {
    font-size: 20px;
  }

  .quick-nav {
    margin-top: 34px;
    padding: 26px 16px 22px;
  }

  .quick-nav a {
    font-size: 13px;
  }

  .site-footer {
    padding: 32px 22px 42px;
  }

  .site-footer > h2 {
    font-size: 24px;
  }

  .footer-list {
    margin-right: -22px;
    margin-left: -22px;
  }

  .footer-list a,
  .footer-list button {
    padding-right: 22px;
    padding-left: 22px;
  }

  /* MacCMS public header: keep the header and category slider flush on desktop. */
  .header.fixed {
    height: 64px !important;
    min-height: 64px !important;
    align-items: center;
    background: #000 !important;
    border-bottom: 0 !important;
  }

  .labellist {
    padding-top: 64px !important;
    margin-top: 0 !important;
  }

  .labellist .slider-content.fixed {
    top: 64px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #000 !important;
    border-top: 0 !important;
  }

  .aitech-maccms-page {
    padding-top: 62px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
