/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

    /* 基础样式 */
    body {
      font-family: 'Exo', sans-serif;
      margin: 0;
      padding: 0;
      /* background: #05060f linear-gradient(0deg, rgba(216, 236, 248, .06), rgba(152, 192, 239, .06)); */
      background-image: radial-gradient(#0819ac, #020321);
      min-height: 100vh;
    }

    /* 头部样式 */
    header {
      background-color: transparent;
      color: #fff;
      padding: 15px 0;
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 1262px;
      top: 0;
      z-index: 1000;
      transition: background-color 0.3s;

    }

    header img {
      /*filter: drop-shadow(1px 1px 0px rgb(12, 12, 12));*/

    }

    header.scrolled {
      background-image: radial-gradient(#0819ac, #020321);
      border-radius: 0 0 14px 14px;
      /*background-image: radial-gradient(#17006B, #020321);*/
      /*box-shadow: 0 -3px 15px 1px #ccc;*/
    }


    header.scrolled img {
      filter: brightness(0) invert(1);
    }


    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .logo {
      height: 50px;
    }

    .logo img {
      height: 100%;
      width: auto;
    }

    .nav {
      display: flex;
      gap: 30px;
    }

    .menu-toggle {
      display: none;
      cursor: pointer;
      font-size: 24px;
      color: #fff;
    }

    .nav a {
      /* background: #004998 radial-gradient(farthest-side at 50% 100%, #c2ccff, transparent); */
      transition: background 0.5s, transform 0.5s;
      padding: 10px 20px;
      border-radius: 10px;
      color: #fff;
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav a:hover {
      color: #8f94fb;
    }

    /* 响应式样式 */
    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-image: radial-gradient(#0819ac, #020321);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        align-items: center;
        border-radius: 0 0 24px 24px;
        /*box-shadow: 0 1px 10px 0 #ccc;*/
      }

      .nav.active {
        display: flex;
      }

      .nav a {
        width: 80%;
        text-align: center;
      }
    }

    .container1 {
      max-width: 1200px;
      margin: 80px auto 40px;
      padding: 30px;
      /*background: rgb(151, 131, 131);*/
      border-radius: 15px;
      /*box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
      color: #ffffff;
      text-align: left;
    }

    .introContainer-container {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
      max-width: 1200px;
    }

    .main {
      position: relative;
      z-index: 10;
      order: 2;
      flex-grow: 1;
      flex-shrink: 0;
    }

    .clip {
      background: linear-gradient(120deg, #bd34fe, #41d1ff, #0000ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .name {
      max-width: 500px;
      font-size: 60px;
      font-weight: 700;
      margin: 0;
      line-height: 1.2;
    }

    .text {
      font-size: 60px;
      font-weight: 700;
    }

    .tagline {
      padding-top: 8px;
      max-width: 600px;
      font-size: 18px;
      font-weight: 500;
      margin: 0;
      line-height: 1.2;
    }

    /* 大屏幕下的样式 */
    @media (min-width: 769px) {
      .tagline-small {
        display: none; /* 隐藏小屏幕文字 */
      }
    }

    .tagline1 {
      padding-top: 8px;
      max-width: 800px;
      font-size: 14px;
      color: rgba(246, 247, 248, 0.5);
      font-weight: 500;
      margin: 0;
      line-height: 1.2;
    }




    .button {
      display: inline-block;
      padding: 12px 24px;
      margin-top: 50px;
      background: linear-gradient(120deg, #bd34fe, #41d1ff, #0000ff);
      border-radius: 24px;
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      transition: background 0.3s;
    }

    .image-container {
      position: relative;
      margin: 0 auto;
      width: 500px;
      height: 500px
    }

    .image-bg {
      position: absolute;
      top: 50%;
      left: 50%;
      border-radius: 60%;
      width: 300px;
      height: 100px;
      background-image: linear-gradient(-45deg, rgb(189, 52, 254) 50%, rgb(65, 209, 255) 50%);
      filter: blur(56px);
      transform: translate(-50%, -50%)
    }

    .image-src {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%)
    }

    /* 响应式样式 */
    @media (max-width: 768px) {
      .container1 {
        margin: 60px auto 20px;
        padding: 20px;
      }

      .introContainer-container {
        flex-direction: column;
        text-align: center;
      }

      .main {
        order: 1;
        margin-bottom: 30px;
      }

      .name {
        font-size: 30px;
        max-width: 100%;
      }

      .text {
        font-size: 30px;
        max-width: 100%;
        color: #ffffff;
        /*text-shadow: 1px 1px 2px white, -1px -1px 2px white, -1px 1px 2px white, 1px -1px 2px white;*/
      }


      .tagline {
        display: none; /* 隐藏原始文字 */
      }

      .tagline-small {
        margin-top: 20px;
        display: block; /* 显示小屏幕文字 */
        font-size: 13px;
      }

      .tagline-small {
        margin-top: 20px;
        display: block; /* 显示小屏幕文字 */
        font-size: 13px;
      }


      .button {
        padding: 10px 20px;
        margin-top: 30px;
      }

      .image-container {
        width: 300px;
        height: 200px;
      }

      .image-bg {
        width: 200px;
        height: 80px;
      }

      .image-src {
        max-width: 150px;
        height: auto;
      }
    }

    /*技术堆栈轮播*/
    .tech-stack-carousel {
      max-width: 1200px;
      padding: 40px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 auto;
      /*background: rgba(255, 255, 255, 0.05);*/
      overflow: hidden;
    }

    .carousel-container {
      align-items: center;
      width: 100%;
      position: relative;

    }

    .carousel-track {
      display: flex;
      animation: scroll 23s linear infinite;
      align-items: center;
      justify-content: center;
    }

    .carousel-item {
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 0 0 200px;
      margin: 10px 20px;
      transition: transform 0.3s ease;
      background-color: aliceblue;
      border-radius: 14px;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
      object-fit: contain;
      width: 100px;
      height: 100px;
    }

    .carousel-item:hover {
      transform: scale(1.1);
    }

    .carousel-item img {
      width: 100%;
      height: 90px;
      margin: 0 auto;
      /*filter: grayscale(100%);*/
      transition: filter 0.3s ease;
      object-fit: contain;
    }

    .carousel-item img:hover {
      filter: grayscale(0%);
    }

    @keyframes scroll {
      0% {
        transform: translateX(50%);
      }
      100% {
        transform: translateX(-50%);
      }

    }


    /* 容器样式 */
    .container {
      max-width: 1200px;
      margin: 100px auto 40px;
      padding: 30px;
      background: rgb(255, 255, 255);
      border-radius: 15px;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }


    /* 区块样式 */
    .section {
      margin-bottom: 50px;
    }

    h2 {
      color: #004998;
      font-size: 28px;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid #8f94fb;
    }

    /* 服务卡片样式 */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 25px;
      margin-top: 30px;
    }

    .service-card {
      background: #fff;
      padding: 25px;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s;
    }

    .service-card:hover {
      transform: translateY(-5px);
    }

    .service-card h3 {
      color: #004998;
      margin-bottom: 15px;
    }

    .section2 {
       display: flex;
      flex-wrap: wrap;
      -webkit-box-pack: center;
      justify-content: center;
      align-items: center;
    }

    .services-grid1 {
      width: 400px;
      display: flex;
      flex-wrap: wrap;
      -webkit-box-pack: center;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }

    .service-card1 {
      width: 80px;
      height: 80px;
      background-color: white;
      padding: 20px;
      text-align: center;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .service-card1 i {
      font-size: 40px;
      display: block;
      margin-bottom: 10px;
    }

    .service-card1 h4 {
      margin: 0;
      font-size: 12px;
      color: #004998;
    }

    /* 联系信息样式 */
    .contact-info {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    .contact-item {
      padding: 15px;
      background: #f8f9fa;
      border-radius: 8px;
    }

    /* 页脚样式 */
    footer {
      text-align: center;
      padding: 20px;
      color: #fff;
    }

    /* 产品轮播样式 */
    .product-slider {
      position: relative;
      /*width: 100%;*/
      overflow: hidden;

    }

    .slider-container {
      display: flex;
      transition: transform 0.5s ease;
    }

    .slide {
      min-width: 100%;
      padding: 0px;

    }

    .slide img {
      width: 100%;
      height: 400px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto;
      object-fit: cover;
      border-radius: 14px;
    }

    .slide-content {
      margin-top: 20px;
      text-align: center;
    }

    .slider-nav button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
    }

    .prev {
      left: 10px;
    }

    .next {
      right: 10px;
    }

    .slider-dots {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #ccc;
      margin: 0 5px;
      cursor: pointer;
    }

    .dot.active {
      background: #004998;
    }

    canvas#particleCanvas {
      position: absolute;
      top: 20px;
      pointer-events: none;
      animation: load 0.4s ease-in-out forwards;
      z-index: 1;
      width: 100%;
    }

    /* 响应式样式 */
    @media (max-width: 768px) {
      .container {
        margin: 30px 15px 30px;
        padding: 20px;
      }

      .slide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 14px;
      }

      h2 {
        font-size: 24px;
      }

      .services-grid {
        grid-template-columns: 1fr;
      }
    }

    /*!*打印字动画*!*/
    /*    .console-container {*/
    /*      font-size: 2em;*/
    /*      text-align: center;*/
    /*      display: block;*/
    /*      top: 0;*/
    /*      bottom: 0;*/
    /*      left: 0;*/
    /*      right: 0;*/
    /*      margin: auto;*/
    /*    }*/
    /*    .gradient-text {*/
    /*    background: linear-gradient(120deg, #bd34fe , #41d1ff, #0000ff);*/
    /*    -webkit-background-clip: text;*/
    /*    -webkit-text-fill-color: transparent;*/
    /*    background-size: 200% auto;*/
    /*    animation: gradient 3s linear infinite;*/
    /*}*/


