@charset "UTF-8";

/* ==========================================================================
   Modern Minimalist Enterprise Theme - Base Variables
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #0066cc;
  --color-primary-hover: #004499;
  --color-text-main: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-text-muted: #a1a1a6;
  --color-bg-body: #ffffff;
  --color-bg-section: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-border: #d2d2d7;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0071e3 0%, #43b9ff 100%);
  --gradient-dark: linear-gradient(180deg, #1d1d1f 0%, #000000 100%);

  /* Typography */
  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Layout & Spacing */
  --max-width-container: 1200px;
  --header-height: 64px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.snap-y {
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: var(--max-width-container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 36px;
}

.nav-menu a {
  font-size: 14px;
  color: var(--color-text-main);
  font-weight: 500;
  opacity: 0.8;
  position: relative;
}

.nav-menu a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.nav-menu a.action {
  opacity: 1;
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-main);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.banner {
  height: 100vh;
  position: relative;
  background-color: var(--color-bg-body);
  overflow: hidden;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
}

.banner-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 0;
  overflow: hidden;
  animation: shrinkVideo 1.2s cubic-bezier(0.76, 0, 0.24, 1) 1.5s forwards;
  box-shadow: none;
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* 加深遮罩以突出文字 */
  z-index: 1;
  animation: fadeOutOverlay 1.2s ease 1.5s forwards;
}


.banner-inner {
  width: 100%;
  height: 100%;
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.banner-text {
  width: 50%;
  padding-left: 40px;
  opacity: 0;
  animation: fadeInText 1s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

.banner-text h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.banner-text h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-text p {
  font-size: 24px;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.banner-btns {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

@keyframes shrinkVideo {
  0% {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none;
  }

  100% {
    width: calc(var(--max-width-container) * 0.45);
    height: 60vh;
    border-radius: 24px;
    left: calc(50vw - var(--max-width-container)/2 + 24px);
    transform: translate(0, -50%);
    box-shadow: var(--shadow-lg);
  }
}

@keyframes fadeOutOverlay {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text-main);
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
  padding: 120px 24px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  scroll-snap-align: start;
  position: relative;
}

.section-bg {
  background-color: transparent;
  padding: 120px 24px;
}

.section-inner {
  max-width: var(--max-width-container);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 20px;
  color: var(--color-text-secondary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.card {
  background: var(--color-bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 240px;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.card-content {
  padding: 40px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-main);
  letter-spacing: -0.5px;
}

.card-content p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.card-btn {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-btn::after {
  content: "→";
  transition: transform 0.3s ease;
}

.card-btn:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img {
  aspect-ratio: 4/3;
  background: var(--gradient-primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
}

.about-content h3 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.about-item {
  margin-bottom: 24px;
}

.about-item strong {
  display: block;
  font-size: 18px;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.about-item p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--color-bg-section);
  padding: 80px 24px 40px;
  border-top: 1px solid var(--color-border);
  scroll-snap-align: end;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
}

.footer-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-col ul li a:hover {
  color: var(--color-text-main);
}

.copyright {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

/* ==========================================================================
   Page Transitions (PPT Style)
   ========================================================================== */
.banner-inner, 
.section-inner, 
.footer-inner {
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateY(15vh) scale(0.95);
  opacity: 0;
  will-change: transform, opacity;
}

section.is-inview .banner-inner,
section.is-inview .section-inner,
section.is-inview .footer-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 页脚在所有子页面默认显示，不依赖 is-inview（子页面无 section 观察器） */
.footer-section .footer-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 页脚内 .reveal 在子页面直接显示（产品详情页等无 reveal 观察器） */
.footer-section .reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 错落有致的卡片和元素飞入效果 */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.fade-up {
  transform: translateY(60px);
}

.reveal.fade-left {
  transform: translateX(-60px);
}

.reveal.fade-right {
  transform: translateX(60px);
}

.reveal.zoom-in {
  transform: scale(0.8);
}

.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

@media (max-width: 1248px) {
  @keyframes shrinkVideo {
    0% {
      width: 100vw;
      height: 100vh;
      border-radius: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      box-shadow: none;
    }

    100% {
      width: calc(50vw - 24px);
      height: 60vh;
      border-radius: 24px;
      left: 24px;
      transform: translate(0, -50%);
      box-shadow: var(--shadow-lg);
    }
  }
}

@media (max-width: 992px) {
  .banner-inner {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 80px;
    height: 100%;
  }

  .banner-text {
    width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .banner-btns {
    justify-content: center;
    flex-wrap: wrap;
  }

  .banner-text h1 {
    font-size: 48px;
    margin-bottom: 16px;
  }

  .banner-text p {
    margin-bottom: 32px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  @keyframes shrinkVideo {
    0% {
      width: 100vw;
      height: 100vh;
      border-radius: 0;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      box-shadow: none;
    }

    100% {
      width: calc(100vw - 48px);
      height: 35vh;
      border-radius: 24px;
      top: calc(var(--header-height) + 24px);
      left: 50%;
      transform: translate(-50%, 0);
      box-shadow: var(--shadow-lg);
    }
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-body);
    flex-direction: column;
    padding: 40px 24px;
    transition: var(--transition-base);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    font-size: 20px;
    display: block;
    padding: 12px 0;
  }

  .banner {
    height: 100vh;
    min-height: 650px;
  }

  .banner-inner {
    padding-bottom: 40px;
  }

  .banner-text h1 {
    font-size: 32px;
  }

  .banner-text p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .banner-btns {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 24px;
  }

  @keyframes shrinkVideo {
    0% {
      width: 100vw;
      height: 100vh;
      border-radius: 0;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      box-shadow: none;
    }

    100% {
      width: calc(100vw - 32px);
      height: 35vh;
      border-radius: 16px;
      top: calc(var(--header-height) + 16px);
      left: 50%;
      transform: translate(-50%, 0);
      box-shadow: var(--shadow-lg);
    }
  }

  .section {
    padding: 80px 24px;
  }

  .section-bg {
    padding: 80px 24px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .copyright {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ==========================================================================
   Scrollbar Modernization
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ::selection {
  background: #cdc981;
  color: #fff;
} */