/* 门户站 H5：侧滑菜单、底栏、底部弹层。桌面版保持不变。 */

.nav-drawer-head,
.nav-drawer-more,
.h5-tabbar,
.nav-backdrop {
  display: none;
}

.dock-wechat.is-open .dock-qr,
.dock-qr-item.is-open .dock-qr {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

@media (max-width: 980px) {
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(16, 12, 14, 0.42);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  body.nav-open .nav-backdrop,
  .nav-backdrop:not([hidden]) {
    display: block;
  }

  .site-header {
    overflow: visible;
  }

  .site-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(84vw, 360px);
    height: 100dvh;
    max-height: none;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: env(safe-area-inset-top) 0 calc(16px + env(safe-area-inset-bottom));
    background: #fff !important;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 48px rgba(22, 24, 29, 0.16);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
  }
  body.nav-open .site-header {
    z-index: 120;
  }

  body.page-home .site-header:not(.is-scrolled) .site-nav,
  body.page-ai-hub .site-header:not(.is-scrolled) .site-nav {
    background: #fff !important;
  }
  body.page-home .site-header:not(.is-scrolled) .site-nav a,
  body.page-ai-hub .site-header:not(.is-scrolled) .site-nav a,
  body.page-ai-hub .site-header:not(.is-scrolled) .nav-ai-trigger {
    color: var(--ink);
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 12px;
    flex: none;
  }
  .nav-drawer-head strong {
    font-size: 16px;
    letter-spacing: 0.04em;
  }
  .nav-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .site-nav > a,
  .site-nav .nav-ai-trigger {
    display: flex;
    width: calc(100% - 24px);
    margin: 2px 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
  }
  .site-nav > a.is-active,
  .site-nav .nav-ai-trigger.is-active {
    background: rgba(230, 57, 70, 0.08);
    color: var(--brand);
  }
  .site-nav a.is-active::after,
  .site-nav .nav-ai-trigger.is-active::after {
    display: none;
  }

  .nav-item-ai {
    width: 100%;
  }
  .nav-ai-panel,
  .nav-item-ai:not(:hover):not(:focus-within) .nav-ai-panel,
  .nav-item-ai.is-panel-closed .nav-ai-panel,
  .nav-item-ai:hover:not(.is-panel-closed) .nav-ai-panel,
  .nav-item-ai:focus-within:not(.is-panel-closed) .nav-ai-panel {
    display: grid !important;
    position: static;
    transform: none;
    width: calc(100% - 24px);
    margin: 0 12px 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--line);
    background: var(--bg-2);
    grid-template-columns: 1fr;
  }
  .nav-ai-panel a {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .nav-drawer-more {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 16px 16px 8px;
    border-top: 1px solid var(--line);
  }
  .nav-drawer-more a,
  .nav-drawer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-drawer-phone {
    background: linear-gradient(135deg, #ff5a67, #e63946) !important;
    border-color: transparent !important;
    color: #fff !important;
  }
  .nav-drawer-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px 12px 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
  }
  .nav-drawer-qr img {
    width: 148px;
    height: 148px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
  }

  body.nav-lock {
    overflow: hidden;
  }
  .nav-toggle { position: relative; z-index: 101; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 768px) {
  :root {
    --header: 56px;
    --h5-tabbar: calc(56px + env(safe-area-inset-bottom));
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    padding-bottom: 0;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    padding-left: 8px;
    gap: 8px;
  }
  .brand {
    margin-left: 0;
    gap: 8px;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .brand-name {
    font-size: 15px;
    max-width: none;
    overflow: visible;
  }
  .brand-name-full { display: none; }
  .brand-name-short { display: inline; }
  .brand-sub {
    display: none;
  }
  .header-actions {
    margin-right: 2px;
    gap: 6px;
  }
  .header-nickname,
  .header-caret {
    display: none;
  }
  .credit-pill {
    height: 32px;
    padding: 0 6px 0 8px;
    gap: 6px;
  }
  .credit-mini {
    display: none !important;
  }

  .hero-slider {
    height: min(44svh, 320px);
    min-height: 250px;
  }
  .hero-slider .hero-copy {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -48%);
    width: calc(100% - 40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-slider .hero-company { display: none; }
  .hero-slider h1,
  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .hero-slider h1 em {
    display: block;
    font-size: 24px;
    max-width: 12em;
  }
  .hero-slider .lead {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 auto 14px;
    max-width: 20em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slider .kicker,
  .kicker {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }
  .hero-actions { justify-content: center; }
  .hero-nav,
  .ai-hub-slider .hero-nav {
    display: none;
  }
  .ai-hub-copy {
    width: calc(100% - 28px);
    transform: translate(-50%, -40%);
  }
  .ai-hub-copy h1 { font-size: 24px; }
  .ai-hub-copy .lead {
    font-size: 14px;
    margin-bottom: 16px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-dots {
    bottom: 14px;
  }
  .hero-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .section {
    padding: 40px 0;
  }
  .hero {
    padding-top: 20px;
  }
  .featured-grid,
  .stats,
  .cards-3,
  .cards-2,
  .cases-grid,
  .tools-grid,
  .about-grid,
  .split,
  .contact-layout,
  .news-card,
  .wechat-grid,
  .gallery,
  .cred-item,
  .ai-showcase {
    grid-template-columns: 1fr;
  }
  .featured-card,
  .featured-card img {
    min-height: 140px;
  }

  .site-footer {
    padding: 28px 0 calc(20px + var(--h5-tabbar));
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 4px;
  }
  .footer-logo-full { display: none; }
  .footer-logo-short { display: inline; }
  .footer-brand > p:last-child { display: none; }
  .footer-col-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
  }
  .footer-col-contact h4 { width: 100%; margin-bottom: 4px; }
  .footer-col-contact p { margin: 0; font-size: 13px; }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 650;
    color: var(--ink);
  }
  .footer-copy {
    flex-direction: column;
    gap: 6px;
  }

  .service-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto !important;
    align-items: center;
    min-height: 108px;
  }
  .service-card .thumb {
    min-height: 108px;
    height: 100%;
    padding: 10px;
  }
  .service-card .thumb img,
  .service-card > img {
    width: 76px;
    height: 76px;
    object-fit: contain;
  }
  .service-card .body {
    padding: 12px 14px 12px 2px;
  }
  .service-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .service-card .excerpt {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-card .meta-row { display: none; }

  .site-dock {
    display: block !important;
    left: auto;
    right: 10px;
    top: 50% !important;
    bottom: auto;
    transform: translateY(-50%);
  }
  .site-dock.is-below-fold {
    opacity: 1;
    pointer-events: auto;
  }
  .dock-rail {
    padding: 8px 6px;
    gap: 6px;
  }
  .dock-btn {
    width: 48px;
    min-height: 48px;
    gap: 0;
  }
  .dock-btn > span:last-child { display: none; }
  .dock-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .site-dock .dock-qr {
    right: calc(100% + 10px);
    left: auto;
    width: 168px;
  }
  .mp-lead { padding-top: 8px; }
  .mp-lead-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mp-lead-card {
    min-height: 132px;
    padding: 14px 12px;
  }
  .mp-lead-card:last-child { grid-column: 1 / -1; }
  .mp-lead-modal {
    place-items: end center;
    padding: 0;
  }
  .mp-lead-dialog {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  body.dock-open .site-dock,
  body.nav-open .site-dock,
  body.auth-modal-open .site-dock,
  body.mp-lead-open .site-dock {
    visibility: hidden;
    pointer-events: none;
  }

  .dock-overlay {
    background: rgba(16, 12, 14, 0.42);
  }
  .dock-panel,
  .dock-chat-panel,
  .dock-contact-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: min(88dvh, 720px);
    max-height: min(88dvh, 720px);
    transform: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .form-grid input,
  .form-grid textarea,
  .auth-field input,
  .search-bar input,
  #qiyeAiInput {
    font-size: 16px;
    background: #fff;
    color: var(--ink);
  }

  .h5-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    height: var(--h5-tabbar);
    padding: 4px 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    justify-content: space-around;
    align-items: stretch;
  }
  .h5-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #8b93a3;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    min-width: 0;
    text-decoration: none;
    font-family: inherit;
  }
  .h5-tab svg {
    width: 22px;
    height: 22px;
  }
  .h5-tab.is-active {
    color: var(--brand);
  }

  body.ai-workspace .h5-tabbar,
  body.hide-ai-widget .h5-tabbar,
  body.ds-page .h5-tabbar,
  body.vs-page .h5-tabbar {
    display: none !important;
  }
  body.ai-workspace .site-footer,
  body.hide-ai-widget .site-footer,
  body.ds-page .site-footer,
  body.vs-page .site-footer {
    padding-bottom: 28px;
  }

  body.dock-open .h5-tabbar,
  body.nav-open .h5-tabbar,
  body.auth-modal-open .h5-tabbar,
  body.credits-open .h5-tabbar,
  body.mp-lead-open .h5-tabbar {
    visibility: hidden;
    pointer-events: none;
  }

  .auth-modal,
  .credits-modal {
    place-items: end center;
    padding: 0;
    align-items: end;
  }
  .auth-modal-dialog,
  .credits-dialog {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    max-height: min(92dvh, 720px);
  }
  .qiye-toast-host {
    top: 72px;
    width: min(92vw, 360px);
  }

  .page-hero { padding-top: 20px; }
  .page-hero h1 { font-size: 28px; }
  .search-bar { flex-wrap: wrap; }
  .search-bar .btn { min-width: 88px; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filters .chip { flex: none; }

  .subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .subnav a {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .hero-slider h1,
  .hero-slider h1 em { font-size: 24px; }
}

/* —— 手机 H5 科技感与动效（桌面不引用这些选择器） —— */
@keyframes h5GridDrift {
  to { background-position: 28px 28px, 28px 28px; }
}
@keyframes h5Orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
  50% { transform: translate(18px, -14px) scale(1.12); opacity: .9; }
}
@keyframes h5Scan {
  0% { top: -12%; }
  100% { top: 110%; }
}
@keyframes h5Blink {
  50% { opacity: 0; }
}
@keyframes h5Glow {
  0%, 100% { text-shadow: 0 0 12px rgba(255, 90, 103, .35); }
  50% { text-shadow: 0 0 22px rgba(255, 90, 103, .7), 0 0 40px rgba(230, 57, 70, .28); }
}
@keyframes h5Shine {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(130%); }
}
@keyframes h5Pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(230, 57, 70, .28); }
  50% { box-shadow: 0 10px 28px rgba(230, 57, 70, .48), 0 0 0 4px rgba(230, 57, 70, .08); }
}
@keyframes h5SheetUp {
  from { transform: translateY(18%); opacity: .4; }
  to { transform: none; opacity: 1; }
}
@keyframes h5HeroIn {
  from { opacity: 0; transform: translate(-50%, -38%); }
  to { opacity: 1; transform: translate(-50%, -48%); }
}
@keyframes h5Bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes h5Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(620px 280px at 112% -8%, rgba(230, 57, 70, 0.16), transparent 52%),
      radial-gradient(420px 260px at -12% 18%, rgba(56, 189, 248, 0.09), transparent 48%),
      #f3f5fa;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(230, 57, 70, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(22, 24, 29, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 10%, #000 12%, transparent 72%);
    animation: h5GridDrift 20s linear infinite;
  }
  .site-wrap { position: relative; z-index: 1; }

  .site-header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(230, 57, 70, 0.08);
  }
  body.page-home .site-header.is-scrolled,
  body.page-ai-hub .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(22, 24, 29, 0.08);
  }

  .hero-slider {
    isolation: isolate;
  }
  .hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.035) 0 1px,
        transparent 1px 4px
      );
    mix-blend-mode: overlay;
  }
  .h5-hero-fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
  }
  .h5-hero-fx i {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    animation: h5Orb 7.5s ease-in-out infinite;
  }
  .h5-hero-fx i:nth-child(1) {
    width: 170px;
    height: 170px;
    left: -16%;
    top: 10%;
    background: rgba(230, 57, 70, 0.42);
  }
  .h5-hero-fx i:nth-child(2) {
    width: 120px;
    height: 120px;
    right: -8%;
    top: 28%;
    background: rgba(56, 189, 248, 0.28);
    animation-delay: -2.4s;
  }
  .h5-hero-fx i:nth-child(3) {
    width: 90px;
    height: 90px;
    left: 36%;
    bottom: 12%;
    background: rgba(255, 214, 90, 0.2);
    animation-delay: -4s;
  }
  .h5-hero-fx .h5-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 72px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    animation: h5Scan 5.2s linear infinite;
  }
  .hero-slider .kicker {
    letter-spacing: 0.2em;
  }
  .hero-slider .kicker::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 11px;
    margin-left: 6px;
    background: #ffd2d6;
    box-shadow: 0 0 8px #ffd2d6;
    animation: h5Blink 1s step-end infinite;
  }
  .hero-slider h1 em {
    animation: h5Glow 3.2s ease-in-out infinite;
  }
  .hero-slider .hero-copy {
    animation: h5HeroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-actions .btn-primary,
  .cta-band .btn-primary {
    position: relative;
    overflow: hidden;
    animation: h5Pulse 2.8s ease-in-out infinite;
  }
  .hero-actions .btn-primary::after,
  .cta-band .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.4), transparent 72%);
    transform: translateX(-130%);
    animation: h5Shine 3.4s ease-in-out infinite;
  }

  .featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-right: -14px;
    padding-right: 14px;
  }
  .featured-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(22, 24, 29, 0.12);
  }
  .featured-card img {
    transition: transform 0.6s ease;
  }
  .featured-card:active img { transform: scale(1.06); }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    position: relative;
    overflow: hidden;
    min-height: 108px;
    padding: 18px 14px 16px 18px;
    border-color: rgba(230, 57, 70, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 248, 0.9));
    box-shadow: 0 10px 24px rgba(22, 24, 29, 0.06);
  }
  .stat b { font-size: 28px; }
  .stat span { font-size: 12px; margin-top: 6px; }
  .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff6b75, #e63946);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head h2 {
    position: relative;
    padding-left: 12px;
    font-size: 24px;
  }
  .section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #ff6b75, #e63946);
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.45);
    transform-origin: top;
    animation: h5Bar 0.6s ease both;
  }

  .service-card,
  .news-card,
  .case-card,
  .ai-show-card,
  .tool-card,
  .panel,
  .job-card {
    border-color: rgba(230, 57, 70, 0.1);
    box-shadow: 0 12px 28px rgba(22, 24, 29, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }
  .service-card:active,
  .news-card:active,
  .case-card:active,
  .ai-show-card:active,
  .tool-card:active {
    transform: scale(0.985) translateY(1px);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.14);
  }
  .ai-show-card.is-in { animation: h5Float 5.5s ease-in-out infinite; }
  .ai-showcase .ai-show-card.is-in:nth-child(2n) { animation-delay: -2.2s; }

  .cta-band {
    position: relative;
    overflow: hidden;
    border-color: rgba(230, 57, 70, 0.2);
    background:
      radial-gradient(220px 120px at 100% 0%, rgba(255, 77, 90, 0.22), transparent 62%),
      linear-gradient(160deg, #1a1216 0%, #2a141a 55%, #16181d 100%);
    color: #fff;
  }
  .cta-band h2,
  .cta-band p { color: #fff; }
  .cta-band p { color: rgba(255, 255, 255, 0.74); }

  .page-hero h1 {
    background: linear-gradient(120deg, #16181d 20%, #e63946 140%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .h5-tabbar {
    background: rgba(16, 12, 18, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 28px rgba(16, 12, 18, 0.18);
  }
  .h5-tab { color: #8b93a3; }
  .h5-tab.is-active {
    color: #ff6b75;
    text-shadow: 0 0 12px rgba(230, 57, 70, 0.45);
  }
  .h5-tab.is-active svg {
    filter: drop-shadow(0 0 6px rgba(230, 57, 70, 0.65));
  }

  .dock-panel,
  .dock-chat-panel,
  .dock-contact-panel {
    animation: h5SheetUp 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .h5-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .h5-reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .chip.is-active {
    background: rgba(230, 57, 70, 0.1);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
  }
}

@media (max-width: 980px) {
  .site-nav {
    background:
      linear-gradient(180deg, #17141a 0%, #1c1216 48%, #141218 100%) !important;
    border-left-color: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  body.page-home .site-header:not(.is-scrolled) .site-nav,
  body.page-ai-hub .site-header:not(.is-scrolled) .site-nav {
    background:
      linear-gradient(180deg, #17141a 0%, #1c1216 48%, #141218 100%) !important;
  }
  .nav-drawer-head strong,
  body.page-home .site-header:not(.is-scrolled) .site-nav a,
  body.page-ai-hub .site-header:not(.is-scrolled) .site-nav a,
  body.page-ai-hub .site-header:not(.is-scrolled) .nav-ai-trigger,
  .site-nav > a,
  .site-nav .nav-ai-trigger {
    color: #f4f1f2;
  }
  .site-nav > a.is-active,
  .site-nav .nav-ai-trigger.is-active {
    background: rgba(230, 57, 70, 0.18);
    color: #ff8a92;
    box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.25);
  }
  .nav-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .nav-ai-panel,
  .nav-item-ai:not(:hover):not(:focus-within) .nav-ai-panel,
  .nav-item-ai.is-panel-closed .nav-ai-panel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .nav-drawer-more {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .nav-drawer-more a,
  .nav-drawer-login {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body::before,
  .h5-hero-fx i,
  .h5-hero-fx .h5-scan,
  .hero-slider .kicker::after,
  .hero-slider h1 em,
  .hero-actions .btn-primary,
  .cta-band .btn-primary,
  .hero-actions .btn-primary::after,
  .cta-band .btn-primary::after,
  .ai-show-card,
  .section-head h2::before {
    animation: none !important;
  }
  .h5-reveal {
    opacity: 1;
    transform: none;
  }
}
