/* ========================================
   战神数科 - 企业官网样式
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #0066FF;
  --primary-dark: #0052CC;
  --secondary-color: #00D4AA;
  --accent-color: #FF6B35;
  --dark-bg: #0A0E27;
  --dark-bg-secondary: #111827;
  --text-primary: #1A1A2E;
  --text-secondary: #64748B;
  --text-light: #FFFFFF;
  --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1A2E 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}

.navbar.scrolled .logo-text {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
  background: var(--text-primary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--dark-bg);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  color: var(--text-light);
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-cta {
  background: var(--gradient-primary);
  color: var(--text-light);
  font-size: 18px;
  padding: 16px 48px;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 102, 255, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-light);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.5; }
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  padding: 100px 0;
  background: #F8FAFC;
}

.about-content {
  margin-bottom: 80px;
}

.about-main {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  margin-bottom: 50px;
}

.about-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.about-paragraph {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 16px;
  text-align: justify;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 700;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================
   Partners Section
   ======================================== */
.partners-section {
  padding-top: 60px;
}

.partners-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.partners-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.partner-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 16/9;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
  padding: 80px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(0, 102, 255, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 170, 0.2) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .stat-plus {
  font-size: 0.6em;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
  padding: 100px 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  background: #F8FAFC;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  background: white;
  border-color: rgba(0, 102, 255, 0.1);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 100px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 100%, rgba(0, 102, 255, 0.4) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--dark-bg-secondary);
}

.footer-main {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  height: 36px;
}

.footer-logo .logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 12px;
}

.footer-partner {
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 500;
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.contact-icon {
  flex-shrink: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.icp-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.icp-link:hover {
  color: var(--primary-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    padding-top: 100px;
  }

  .about-section,
  .services-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-number {
    font-size: 36px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partner-card {
    padding: 20px;
  }

  .footer-grid {
    gap: 40px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .about-features {
    gap: 20px;
  }

  .feature-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stat-number {
    font-size: 32px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }
}

/* ========================================
   图片全屏查看模态框
   ======================================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  cursor: default;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10000;
}

.modal-close:hover {
  opacity: 0.7;
}
