/* ========== 全局样式 ========== */
:root {
  --primary-color: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --secondary-color: #2d2d2d;
  --text-color: #2d2d2d;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --bg-dark: #2d2d2d;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-hover);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 70px;
  width: auto;
}

.brand-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 45px;
  align-items: center;
}

.nav-menu a {
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.btn-contact {
  background: var(--primary-color);
  color: white !important;
  padding: 10px 25px !important;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
  margin-top: var(--nav-height, 80px);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/products/robot-family.jpg") center/cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
  padding-top: 150px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230, 0, 18, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 45px;
  font-size: 18px;
}

/* ========== Section 通用样式 ========== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
}

/* ========== 产品区域 ========== */
.products {
  background: var(--bg-light);
}

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

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 250px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-model {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.product-specs {
  margin-bottom: 20px;
}

.product-specs li {
  font-size: 14px;
  color: var(--text-light);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
}

.product-specs li:last-child {
  border-bottom: none;
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-link:hover {
  gap: 10px;
}

/* ========== 技术优势 ========== */
.technology {
  background: white;
}

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

.tech-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 15px;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

.tech-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.tech-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== 软件系统 ========== */
.software {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
}

.software .section-title {
  color: white;
}

.software .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

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

.software-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.software-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.software-card p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.software-card ul {
  list-style: none;
}

.software-card ul li {
  font-size: 14px;
  padding: 8px 0;
  opacity: 0.8;
}

/* ========== 应用场景 ========== */
.scenarios {
  background: var(--bg-light);
}

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

.scenario-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.scenario-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scenario-card {
  padding: 25px;
}

.scenario-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.scenario-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== CTA 区域 ========== */
.cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========== 页脚 ========== */
.footer {
  background: var(--secondary-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: white;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height, 80px);
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 28px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 新增产品页面概念图样式 */
.gallery-title {
  color: white;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

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

.gallery-item img {
  width: 100%;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.2);
}

.gallery-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item img {
    height: 120px;
  }

  .hero-title {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1em;
  }
}
