/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0066cc;
  --secondary-color: #004499;
  --accent-color: #00a8e8;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f5f7fa;
  --border-color: #e0e0e0;
  --header-height: 75px;
  --top-bar-height: 40px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--bg-color);
}

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

ul {
  list-style: none;
}

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

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

/* 顶部联系信息栏 */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  background: #1a365d;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition);
}

.top-bar-item:hover {
  color: #fff;
}

.top-bar-item i {
  font-size: 12px;
  color: var(--accent-color);
}

/* 头部导航 */
.header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
}

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

.logo-img {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: white;
  padding: 2px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  margin-left: 10px;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 80px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

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

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

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

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 语言下拉菜单 */
.lang-dropdown {
  position: relative;
  margin-left: auto;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.lang-dropdown-btn:hover {
  border-color: var(--primary-color);
}

.lang-dropdown-btn .lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-dropdown-btn .lang-flag svg {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-dropdown-btn .fa-chevron-down {
  font-size: 12px;
  transition: var(--transition);
}

.lang-dropdown.active .lang-dropdown-btn .fa-chevron-down {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.lang-dropdown.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-color);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--bg-light);
}

.lang-option.active {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
}

.lang-option .lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-option .lang-flag svg {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-option .lang-name {
  font-size: 14px;
}

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

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

/* 主要内容区域 */
.main {
  padding-top: calc(var(--header-height) + var(--top-bar-height));
}

/* Hero 轮播区域 */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* 第一张轮播图使用实际图片 */
.hero-slide:first-child .hero-slide-bg {
  opacity: 1;
  background: url('../images/首页轮播图1.webp') center center / contain no-repeat;
  background-color: #0a0a1a;
}

.hero-slide-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
  background-size: 100px 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* 统计数据区域 */
.stats-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: white;
}

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

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 15px;
  opacity: 0.9;
}

/* 产品区域 */
.section {
  padding: 100px 0;
}

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

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

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  white-space: nowrap;
}

.products-section {
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
  aspect-ratio: 5 / 3.38;
  background: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-icon {
  font-size: 80px;
  color: var(--primary-color);
  opacity: 0.9;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.product-content {
  padding: 25px;
}

.product-category {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

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

/* 关于我们区域 */
.about-section {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image-bg {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.1;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
}

.about-feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.about-feature-text p {
  font-size: 13px;
  margin: 0;
}

/* 研发实力区域 */
.rd-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.rd-section .section-title,
.rd-section .section-subtitle {
  color: white;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.rd-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.rd-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.rd-card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.rd-card-number {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.rd-card-label {
  font-size: 14px;
  opacity: 0.8;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-number {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* 发展历程 */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  max-width: 400px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 30px;
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 5px;
  box-sizing: border-box;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 联系区域 */
.contact-section {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-text p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-img {
  height: 36px;
  margin-bottom: 20px;
  background: white;
  padding: 4px 10px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 40px;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header {
    top: 0;
  }

  .main {
    padding-top: var(--header-height);
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: flex;
  }

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

  .hero {
    min-height: 500px;
  }

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

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

  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

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

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

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .rd-card {
    padding: 20px;
  }

  .rd-card-number {
    font-size: 28px;
  }

  .tech-list {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .timeline-year {
    left: 20px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    font-size: 10px;
    padding: 3px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lang-switch {
    display: none;
  }

  .lang-dropdown {
    margin-left: auto;
    margin-right: 15px;
  }

  .lang-dropdown-menu {
    right: -10px;
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 46px;
    max-width: 170px;
    padding: 2px 8px;
  }

  .logo-text {
    font-size: 20px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo-img {
    height: 40px;
    max-width: 140px;
    padding: 2px 6px;
    border-radius: 5px;
  }

  .logo-text {
    font-size: 17px;
    margin-left: 5px;
    letter-spacing: 0;
  }

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

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

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

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