/* Common Components CSS
   This file contains shared styles for navbar, page-header, tech-hero sections,
   and all button components to maintain consistency and reduce redundancy */

/* 全局隐藏滚动条但保留滚动功能 */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
}

/* CSS Variables for consistency */
:root {
    --primary-gradient: linear-gradient(135deg, #6a82fb 0%, #fc5c7d 100%);
    --primary-gradient-hover: linear-gradient(135deg, #5a6cfb 0%, #e14fad 100%);
    --secondary-gradient: linear-gradient(45deg, #6a11cb, #ff6b2c);
    --secondary-gradient-hover: linear-gradient(45deg, #5a0fb5, #e55a25);
    --btn-transition: all 0.3s ease;
    --btn-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    --btn-shadow-hover: 0 6px 20px rgba(106, 17, 203, 0.6);
  }
  
  /* Universal Button System */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--btn-transition);
    border: none;
    cursor: pointer;
    text-align: center;
  }
  
  .btn-primary, .primary-btn {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 0.75rem 0.75rem;
  }
  
  .btn-primary:hover, .primary-btn:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 130, 251, 0.3);
  }
  
  .btn-secondary, .secondary-btn {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: transparent;
  }
  
  .btn-secondary:hover, .secondary-btn:hover {
    color: var(--text-primary);
    border-color: #6a82fb;
    background: rgba(106, 130, 251, 0.1);
  }
  
  .btn-feature, .feature-btn {
    background: var(--secondary-gradient);
    color: white;
    font-weight: 600;
    padding: 1.0rem 1rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--btn-shadow);
    font-size: 12px;
  }
  
  .btn-feature:hover, .feature-btn:hover {
    background: var(--secondary-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--btn-shadow-hover);
  }
  
  .btn-cta, .start-now-btn {
    background: var(--secondary-gradient);
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--btn-shadow);
  }
  
  .btn-cta:hover, .start-now-btn:hover {
    background: var(--secondary-gradient-hover);
    transform: translateY(-3px);
    box-shadow: var(--btn-shadow-hover);
  }
  
  /* Page Header Styles */
  .page-header {
      background: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
      padding: 5rem 0 2rem;
      text-align: center;
      position: relative;
      margin-top: 40px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .page-header h1 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #ffffff;
  }
  
  .page-header p {
      font-size: 1.0rem;
      opacity: 0.8;
      max-width: 700px;
      margin: 0 auto;
  }
  
  /* Tech Hero Section Styles */
  .tech-hero {
      background: linear-gradient(120deg, #0f0f0f, #1a1a1a);
      position: relative;
      overflow: hidden;
      padding: 4rem 0;
      margin-top: 0px;
  }
  
  .tech-hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 20% 50%, rgba(76, 0, 255, 0.1) 0%, rgba(76, 0, 255, 0) 70%),
                  radial-gradient(circle at 80% 30%, rgba(255, 107, 44, 0.1) 0%, rgba(255, 107, 44, 0) 70%);
      pointer-events: none;
  }
  
  .tech-hero::after {
      content: "";
      position: absolute;
      bottom: -50px;
      right: -50px;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      filter: blur(30px);
      animation: float 15s ease-in-out infinite alternate;
  }
  
  .tech-hero .container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
  }
  
  .tech-hero-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
      padding: 40px;
      border-radius: 15px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(5px);
  }
  
  .tech-hero-content:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .tech-hero-content h2 {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      background: linear-gradient(90deg, #fff, #ccc);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
  }
  
  .tech-hero-content p {
      font-size: 1.1rem;
      line-height: 1.6;
      margin-bottom: 2rem;
      color: rgba(255, 255, 255, 0.8);
  }
  
  .tech-hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
  }
  
  .tech-hero-stats .stat-item {
      background: rgba(255, 255, 255, 0.05);
      padding: 1rem;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      text-align: center;
  }
  
  .tech-hero-stats .stat-item:hover {
      background: rgba(255, 255, 255, 0.08);
      transform: translateY(-5px);
  }
  
  .tech-hero-stats .stat-number {
      font-size: 1.8rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
  }
  
  .tech-hero-stats .stat-number i {
      font-size: 2rem;
      background: var(--secondary-gradient);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
  }
  
  .tech-hero-stats .stat-label {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);
      text-align: center;
  }
  
  .tech-hero-image {
      position: relative;
      z-index: 1;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease;
      animation: floatAnimation 3s ease-in-out infinite;
  }
  
  .tech-hero-image:hover {
      transform: translateY(-5px);
  }
  
  .tech-hero-image img,
  .tech-hero-image video {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 12px;
      transition: transform 0.3s ease;
      transform: perspective(1000px) rotateY(-5deg);
      animation: reveal 1s ease-out 0.5s both;
  }
  
  .tech-hero-image:hover img,
  .tech-hero-image:hover video {
      transform: perspective(1000px) rotateY(0deg);
  }
  
  /* Animation keyframes */
  @keyframes float {
      0% {
          transform: translateY(0) rotate(0deg);
      }
      100% {
          transform: translateY(-20px) rotate(5deg);
      }
  }
  
  @keyframes reveal {
      0% {
          opacity: 0;
          transform: perspective(1000px) rotateY(-15deg) translateX(50px);
      }
      100% {
          opacity: 1;
          transform: perspective(1000px) rotateY(-5deg) translateX(0);
      }
  }
  
  @keyframes floatAnimation {
      0% {
          transform: translateY(0);
      }
      50% {
          transform: translateY(-10px);
      }
      100% {
          transform: translateY(0);
      }
  }
  
  /* Other Products Section */
  .other-products {
      padding: 80px 0;
      background: var(--dark-bg);
      position: relative;
  }
  
  .other-products .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 2rem;
  }
  
  .other-products h2 {
      text-align: center;
      margin-bottom: 3rem;
      color: var(--text-color);
      font-size: 2.5rem;
      font-weight: 700;
  }
  
  .other-products .product-cards {
      display: flex;
      justify-content: center;
      gap: 30px;
      margin: 0 auto;
      max-width: 1200px;
  }
  
  .other-products .product-card {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      padding: 30px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.1);
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 400px;
      height: 400px !important;
      min-height: 400px !important;
      max-height: 400px !important;
      box-sizing: border-box;
      position: relative;
      transform: none !important;
  }
  
  .other-products .product-icon {
      width: 70px;
      height: 70px;
      margin-bottom: 20px;
      background: rgba(203, 95, 49, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      color: var(--primary-color);
      font-size: 30px;
      flex-shrink: 0;
  }
  
  .other-products .product-card h3 {
      font-size: 24px;
      margin-bottom: 15px;
      color: var(--text-color);
      width: 100%;
      height: auto;
  }
  
  .other-products .product-card p {
      color: var(--text-light);
      line-height: 1.6;
      width: 100%;
      height: 120px;
      max-height: 120px;
      min-height: 120px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      margin-bottom: 30px;
  }
  
  .other-products .product-card .learn-more {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      pointer-events: auto;
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) !important;
  }
  
  .other-products .product-card .learn-more:hover {
      color: #ffffff;
  }
  
  .other-products .product-card .learn-more::after {
      content: "→";
      margin-left: 5px;
  }
  
  .other-products .product-card .learn-more:hover::after {
      transform: translateX(5px);
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
      .tech-hero .container {
          grid-template-columns: 1fr;
          gap: 2rem;
      }
      
      .tech-hero-image {
          order: -1;
          margin-bottom: 2rem;
          max-width: 600px;
          margin: 0 auto;
      }
      
      .tech-hero-content {
          text-align: center;
          max-width: 100%;
      }
      
      .tech-hero-stats {
          justify-content: center;
      }
      
      .other-products .product-cards {
          grid-template-columns: repeat(2, 1fr);
          gap: 25px;
      }
  }
  
  @media (max-width: 768px) {
      .page-header {
          padding: 6rem 0 3rem;
      }
      
      .page-header h1 {
          font-size: 2rem;
      }
      
      .tech-hero-content h2 {
          font-size: 1.8rem;
      }
      
      .tech-hero-stats {
          grid-template-columns: repeat(3, 1fr);
          gap: 1rem;
      }
      
      .other-products .product-cards {
          grid-template-columns: 1fr;
          gap: 20px;
      }
      
      .other-products h2 {
          font-size: 2rem;
          margin-bottom: 2rem;
      }
      
      .btn-cta, .start-now-btn {
          width: 100%;
          text-align: center;
      }
  }
  
  @media (max-width: 576px) {
      .tech-hero-stats {
          grid-template-columns: 1fr;
      }
      
      .tech-hero-stats .stat-item {
          padding: 15px;
          flex-direction: row;
          justify-content: flex-start;
          text-align: left;
      }
      
      .tech-hero-stats .stat-number {
          margin-bottom: 0;
          margin-right: 15px;
      }
      
      .tech-hero-stats .stat-label {
          margin-top: 0;
      }
      
      .tech-hero-content {
          padding: 20px;
      }
  }