:root {
  --primary-color: #6b5b8e;
  --primary-blue: #4b77e6;
  --title-color: #2b2d5c;
  --muted-color: #7d7fa3;
  --rainbow-gradient: linear-gradient(
    90deg,
    #35c0f5 0%,
    #8b5cf6 28%,
    #d148e8 50%,
    #ff6b35 75%,
    #a3db4d 100%
  );
  --shadow-card: 0 8px 32px #2b2d5c14, 0 2px 8px #2b2d5c0a;
  --shadow-card-hover: 0 14px 38px #2b2d5c24, 0 4px 12px #2b2d5c14;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

html,
body,
#app {
  min-height: 100%;
}

body,
div,
p,
span,
img,
h1,
h2,
h3,
a,
input,
button,
select {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: #333;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted-color);
  letter-spacing: 0.08em;
}

.loader-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  background: var(--rainbow-gradient);
  box-shadow: 0 8px 24px #6b5b8e2e;
}

.top-header {
  position: relative;
  z-index: 1000;
  display: flex;
  height: 60px;
  padding: 0 50px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-home {
  display: inline-flex;
}

.brand-logo {
  display: block;
  width: 130px;
  height: auto;
  flex: 0 0 auto;
}

.exhibit-fullscreen-btn {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: -4px;
  padding: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111;
  background: transparent;
  opacity: 0.03;
  cursor: pointer;
}

.exhibit-fullscreen-btn:hover,
.exhibit-fullscreen-btn:focus-visible {
  opacity: 0.35;
}

.brand-divider {
  width: 2px;
  height: 40px;
  margin: 0 18px;
  background: linear-gradient(
    180deg,
    #35c0f5 0%,
    #8b5cf6 28%,
    #d148e8 50%,
    #ff6b35 75%,
    #a3db4d 100%
  );
  opacity: 0.95;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1.1;
}

.brand-text .en {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.4px;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .cn {
  margin-top: 5px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 5px;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu > * {
  flex: 0 0 auto;
}

.menu-item {
  position: relative;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu-item:hover,
.menu-item:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-dropdown {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 176px;
  padding-top: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.submenu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
}

.submenu-panel {
  padding: 8px 0;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px #1018281f;
}

.menu-dropdown:hover .submenu,
.menu-dropdown:focus-within .submenu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.submenu-item {
  display: block;
  padding: 10px 14px;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.submenu-item:hover {
  background: #6d7dff14;
}

.user-ops {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.member-btn,
.login-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.member-btn {
  border: 1px solid #d7dbe8;
  color: #2f3550;
  background: #fff;
}

.login-btn {
  border: 1px solid var(--primary-blue);
  color: #fff;
  background: var(--primary-blue);
}

.demo-btn {
  display: inline-flex;
  height: 32px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(90deg, #6d7dff 0%, #d96adf 100%);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.member-btn:hover,
.login-btn:hover,
.demo-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px #6d7dff2b;
}

.mobile-menu-button,
.mobile-menu-mask,
.mobile-menu-panel {
  display: none;
}

.hero-grid {
  --hero-slant-cut: 64px;
  display: flex;
  width: 100%;
  height: calc(100vh - 60px);
  min-height: 620px;
  overflow: hidden;
  background: #e9ebee;
}

.hero-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  clip-path: polygon(
    var(--hero-slant-cut) 0,
    100% 0,
    calc(100% - var(--hero-slant-cut)) 100%,
    0 100%
  );
  transition: flex-grow 0.45s ease, filter 0.32s ease;
}

.hero-item + .hero-item {
  margin-left: calc(-1 * var(--hero-slant-cut));
}

.hero-item.is-first {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--hero-slant-cut)) 100%, 0 100%);
}

.hero-item.is-last {
  clip-path: polygon(var(--hero-slant-cut) 0, 100% 0, 100% 100%, 0 100%);
}

.hero-bg {
  position: absolute;
  inset: -5px;
  z-index: 0;
  background-image: var(--hero-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.hero-item::before,
.hero-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-item::before {
  background:
    linear-gradient(180deg, rgba(8, 12, 26, 0.12) 0%, rgba(8, 12, 26, 0.46) 100%),
    linear-gradient(160deg, var(--hero-overlay-soft) 4%, rgba(0, 0, 0, 0) 56%),
    linear-gradient(15deg, rgba(0, 0, 0, 0) 28%, var(--hero-overlay-deep) 100%);
  opacity: 1;
  transition: opacity 0.28s ease;
}

.hero-item::after {
  background: radial-gradient(circle at 50% 78%, var(--hero-glow) 0%, rgba(0, 0, 0, 0) 58%);
  opacity: 0.72;
  animation: hero-glow-pulse 8s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-content {
  margin-bottom: 8%;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-content p {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.95;
}

.hero-case-btn {
  position: relative;
  display: inline-flex;
  min-width: 136px;
  height: 46px;
  margin-top: 18px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(3px);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.hero-case-btn::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -38%;
  width: 24px;
  height: 300%;
  opacity: 0;
  transform: rotate(22deg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-grid.is-hovering .hero-item {
  flex-grow: 1;
  filter: brightness(0.9) saturate(0.92);
}

.hero-grid.is-hovering .hero-item.active {
  z-index: 2;
  flex-grow: 1.42;
  filter: brightness(1.04) saturate(1.08);
}

.hero-item:hover::before,
.hero-item:focus-visible::before {
  opacity: 0;
}

.hero-item:hover::after,
.hero-item:focus-visible::after {
  opacity: 0.95;
}

.hero-item:hover .hero-bg,
.hero-item:focus-visible .hero-bg {
  transform: scale(1.025);
}

.hero-item:hover .hero-case-btn,
.hero-item:focus-visible .hero-case-btn {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.hero-item:hover .hero-case-btn::before,
.hero-item:focus-visible .hero-case-btn::before {
  opacity: 1;
  animation: hero-btn-shine 0.55s ease;
}

.hero-case-btn:hover {
  border-color: #ffffff8f;
  color: var(--hero-theme);
  background: #fff;
}

.hero-mobile {
  display: none;
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes hero-btn-shine {
  0% {
    transform: translate(-44px) rotate(22deg);
  }
  100% {
    transform: translate(220px) rotate(22deg);
  }
}

.case-section {
  padding: 56px 24px 72px;
  background: #fff;
}

.case-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.case-block {
  margin-top: 72px;
  scroll-margin-top: 24px;
}

.case-block:first-child {
  margin-top: 0;
}

.case-heading {
  margin-bottom: 36px;
  text-align: center;
}

.case-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #5c5e78;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: #fff;
  box-shadow: 0 1px 4px #2b2d5c14;
}

.case-title {
  margin-top: 16px;
  color: var(--title-color);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 14px rgba(43, 45, 92, 0.1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-title--photo {
  background-image: linear-gradient(135deg, #8fe6ff 0%, #35c0f5 45%, #1d78b8 100%);
}

.case-title--video {
  background-image: linear-gradient(135deg, #f3a0ff 0%, #d148e8 45%, #8a23b4 100%);
}

.case-title--commerce {
  background-image: linear-gradient(135deg, #ffc08f 0%, #ff6b35 45%, #cc4118 100%);
}

.case-title--staff {
  background-image: linear-gradient(135deg, #ddff9f 0%, #a3db4d 45%, #629a1b 100%);
}

.case-heading > p {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.75;
}

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

.media-card,
.wide-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.media-card:hover,
.wide-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.media-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e6f0;
}

.media-card-image img,
.wide-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wide-card-image {
  overflow: hidden;
}

.media-card:hover img,
.wide-card:hover img {
  transform: scale(1.05);
}

.media-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(76, 195, 241, 0.92);
  backdrop-filter: blur(4px);
}

.media-tag--commerce {
  background: rgba(255, 107, 53, 0.92);
}

.media-card-body {
  padding: 22px 24px 26px;
}

.media-card-body h3 {
  color: var(--title-color);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.media-card-body p {
  margin-top: 10px;
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.65;
}

.demo-section {
  padding: 72px 24px 96px;
  scroll-margin-top: 12px;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(236, 220, 255, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 20% 80%, rgba(255, 230, 210, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 85% 60%, rgba(200, 230, 255, 0.3) 0%, transparent 45%),
    #faf8fc;
}

.demo-inner {
  width: min(440px, 100%);
  margin: 0 auto;
  text-align: center;
}

.demo-eyebrow {
  color: #6b9fd4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.demo-title {
  margin-top: 16px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-line1 {
  margin-top: 18px;
  color: #5c5e78;
  font-size: 14px;
  line-height: 1.55;
}

.demo-line2 {
  margin-top: 10px;
  color: var(--muted-color);
  font-size: 14px;
  line-height: 1.6;
}

.demo-form {
  display: flex;
  margin-top: 32px;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.form-field {
  display: block;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  outline: none;
  color: var(--title-color);
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder {
  color: #a8aac4;
}

.form-field select:invalid {
  color: #a8aac4;
}

.form-field select {
  appearance: none;
  color: var(--title-color);
  background-image: linear-gradient(45deg, transparent 50%, #9ca1b5 50%),
    linear-gradient(135deg, #9ca1b5 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #6d7dff73;
  box-shadow: 0 0 0 3px #6d7dff1f;
}

.demo-cta {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--rainbow-gradient);
  box-shadow: 0 4px 20px #35c0f559, 0 8px 32px #8b5cf640, 0 4px 16px #ff6b3533;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.demo-cta:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 28px #35c0f566, 0 10px 36px #8b5cf64d, 0 6px 20px #ff6b3540;
}

.demo-cta:active {
  transform: scale(0.99);
}

.page-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  background: #faf9f6;
}

.footer-inner {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: block;
  width: 110px;
  height: auto;
  flex: 0 0 auto;
}

.footer-divider {
  width: 2px;
  height: 36px;
  margin: 0 14px;
  background: linear-gradient(
    180deg,
    #35c0f5 0%,
    #8b5cf6 28%,
    #d148e8 50%,
    #ff6b35 75%,
    #a3db4d 100%
  );
  opacity: 0.95;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.footer-en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-cn {
  margin-top: 4px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-dropdown {
  position: relative;
}

.footer-submenu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 1200;
  width: 188px;
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 4px);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px #1018281f;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.footer-dropdown:hover .footer-submenu,
.footer-dropdown:focus-within .footer-submenu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.footer-submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.35;
  transition: background-color 0.2s ease;
}

.footer-submenu a:hover {
  background: #6d7dff14;
  -webkit-text-fill-color: currentColor;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.footer-meta p,
.footer-meta a {
  color: #4a4d6e;
  font-size: 12px;
  white-space: nowrap;
}

.footer-meta a {
  color: #6a6d8f;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #4a4d6e;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  background: rgba(35, 29, 49, 0.92);
  box-shadow: 0 12px 32px #1d163b33;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.load-error {
  width: min(680px, calc(100% - 40px));
  margin: 18vh auto;
  color: var(--title-color);
  text-align: center;
}

.load-error h1 {
  font-size: 28px;
}

.load-error p {
  margin-top: 16px;
  color: var(--muted-color);
  line-height: 1.7;
}

.load-error code {
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--primary-blue);
  background: #eef2ff;
}

.load-error pre {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  color: #ad352f;
  background: #fff4f2;
  white-space: pre-wrap;
}

@media (max-width: 1280px) {
  .menu {
    gap: 20px;
  }

  .brand-divider {
    margin: 0 12px;
  }

  .brand-text .cn {
    letter-spacing: 3px;
  }

  .user-ops {
    gap: 8px;
  }

  .member-btn,
  .login-btn {
    padding: 0 13px;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    --hero-slant-cut: 46px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-case-btn {
    min-width: 118px;
    height: 40px;
    padding: 0 20px;
    font-size: 15px;
  }
}

@media (max-width: 1090px) {
  .brand-text,
  .brand-divider {
    display: none;
  }

  .top-header {
    padding: 0 28px;
  }

  .menu {
    gap: 14px;
  }

  .menu-item {
    font-size: 15px;
  }

  .member-btn,
  .login-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .demo-btn {
    padding: 0 12px;
  }
}

@media (max-width: 860px) {
  .top-header {
    height: 56px;
    padding: 0 18px;
  }

  .brand-logo {
    width: 112px;
  }

  .menu {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(107, 91, 142, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px #4b77e61a;
    cursor: pointer;
  }

  .hamburger-line {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4b77e6 0%, #8b5cf6 52%, #d148e8 100%);
  }

  .mobile-menu-mask {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    height: calc(100vh - 56px);
    visibility: hidden;
    opacity: 0;
    background: rgba(23, 20, 37, 0.34);
    z-index: 1200;
    transition: opacity 0.22s ease, visibility 0.22s;
  }

  .mobile-menu-mask.is-open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1250;
    display: flex;
    padding: 10px 18px 14px;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    border-bottom: 1px solid rgba(107, 91, 142, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px #4b77e629;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .mobile-menu-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu-item {
    display: flex;
    min-height: 48px;
    padding: 0 4px;
    align-items: center;
    border-bottom: 1px solid rgba(107, 91, 142, 0.08);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu-item:last-child {
    border-bottom: 0;
  }

  .hero-grid--desktop {
    display: none;
  }

  .hero-mobile {
    display: block;
    background: #fff;
  }

  .hero-mobile-brand {
    padding: 22px 24px 16px;
    text-align: center;
  }

  .hero-mobile-en {
    display: inline-flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: clamp(26px, 7.2vw, 32px);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
    background: var(--rainbow-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-mobile-divider {
    width: 36px;
    height: 3px;
    margin: 14px auto 12px;
    border-radius: 999px;
    background: var(--rainbow-gradient);
  }

  .hero-mobile-brand p {
    color: var(--muted-color);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }

  .hero-mobile-carousel {
    position: relative;
    margin: 0 16px 20px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 36px #2b2d5c24;
  }

  .hero-mobile-track {
    display: flex;
    transition: transform 0.42s ease;
  }

  .hero-mobile-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
  }

  .hero-mobile-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .hero-mobile-slide::before,
  .hero-mobile-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero-mobile-slide::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 26, 0.1) 0%, rgba(8, 12, 26, 0.5) 100%),
      linear-gradient(160deg, var(--hero-overlay-soft) 4%, rgba(0, 0, 0, 0) 56%),
      linear-gradient(15deg, rgba(0, 0, 0, 0) 28%, var(--hero-overlay-deep) 100%);
  }

  .hero-mobile-slide::after {
    background: radial-gradient(circle at 50% 78%, var(--hero-glow) 0%, rgba(0, 0, 0, 0) 58%);
    opacity: 0.72;
  }

  .hero-mobile-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 52px;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  .hero-mobile-content h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
  }

  .hero-mobile-content p {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.95;
  }

  .hero-mobile-case-btn {
    display: inline-flex;
    min-width: 118px;
    height: 40px;
    margin-top: 16px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
  }

  .hero-mobile-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .hero-mobile-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
  }

  .hero-mobile-dot.active {
    width: 22px;
    background: #fff;
  }

  .footer-inner {
    width: 100%;
    padding: 20px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-brand-text,
  .footer-divider,
  .footer-dropdown {
    display: none;
  }

  .footer-nav {
    order: 3;
    width: 100%;
    gap: 20px;
  }

  .footer-meta {
    order: 2;
    width: 100%;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .case-section {
    padding: 40px 16px 48px;
  }

  .case-title {
    font-size: 26px;
  }

  .case-block {
    margin-top: 52px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-card,
  .wide-card {
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .demo-section {
    padding: 56px 16px 72px;
  }

  .footer-logo {
    width: 96px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

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