:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --white-color: #ffffff;
  --black-color: #000000;

  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --bg-light: #1e1e1e;
  --bg-lighter: #252525;

  --text-light: #f0f0f0;
  --text-lighter: #cccccc;
  --text-muted: #888888;
  --text-dark: #333333;

  --border-color: #333333;

  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  padding-top: 80px; /* 为固定导航栏留出空间 */
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: #0b5ed7;
}

/* 导航栏 */
.navbar {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  color: var(--white-color) !important;
  font-size: 1.5rem;
}

.navbar-toggler {
  border: 1px solid var(--text-lighter); /* 添加边框 */
  padding: 0.25rem 0.5rem; /* 添加内边距 */
  border-radius: 4px; /* 添加圆角 */
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25); /* 聚焦时的阴影效果 */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* 使用白色图标 */
}

.nav-link {
    color: var(--text-lighter) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem; /* 调整内边距以改善对齐 */
    line-height: 1; /* 确保行高一致 */
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--white-color) !important;
}

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

/* Hero区域 */
.hero-bg {
  background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(30, 30, 30, 0.9)),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a0a0a"/><path d="M0 0L100 100M100 0L0 100" stroke="%231a1a1a" stroke-width="1"/></svg>');
  background-size: cover;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  display: block;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-lighter);
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-light {
  border: 1px solid var(--text-lighter);
  color: var(--text-lighter);
}

.btn-outline-light:hover {
  background-color: var(--text-lighter);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* 产品卡片 */
.product-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

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

.card-header {
  background-color: var(--bg-lighter);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.card-text {
  color: var(--text-lighter);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* 特性图标 */
.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(13, 110, 253, 0.1);
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.feature-box {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white-color);
}

.feature-desc {
  color: var(--text-lighter);
}

/* 章节标题 */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.25rem;
  color: var(--text-lighter);
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* 关于我们 */
.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

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

.stat-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white-color);
}

.stat-item p {
  color: var(--text-muted);
  margin: 0;
}

/* 联系我们 */
.contact-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-color);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white-color);
}

.contact-info {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(13, 110, 253, 0.1);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.contact-details h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--white-color);
}

.contact-details p {
  color: var(--text-lighter);
  margin: 0;
}

.form-control {
  background-color: var(--bg-lighter);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  background-color: var(--bg-lighter);
  border-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  color: var(--white-color);
  margin-bottom: 0.5rem;
  display: inline-block;
}

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

/* 页脚 */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer h3,
.footer h5 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.footer p,
.footer a {
  color: var(--text-lighter);
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer hr {
  background-color: var(--border-color);
  opacity: 1;
  margin: 2rem 0;
}

.copyright {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 社交媒体链接 */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-lighter);
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-link {
    margin: 0.25rem 0;
  }
}

@media (max-width: 576px) {
  .hero-bg {
    padding: 4rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
