/* 全局样式 */
:root {
  --primary-color: #1a5fb4;
  --primary-dark: #0d3a7a;
  --primary-light: #4a9eff;
  --accent-color: #00d4ff;
  --text-dark: #1a1a2e;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #0a1628;
  --card-bg: #ffffff;
  --gradient-start: #1a5fb4;
  --gradient-end: #00d4ff;
}

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

html {
  scroll-behavior: smooth;
}

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

/* 导航栏 */
#mainNav {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all 0.3s ease;
}

#mainNav.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 45px;
  width: auto;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 10px 20px !important;
  margin: 0 5px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
  z-index: 1;
}

.hero-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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 3px;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons .btn {
  padding: 14px 35px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(26, 95, 180, 0.4);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(26, 95, 180, 0.5);
}

.hero-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 动画 */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.title-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  margin: 20px auto 0;
  border-radius: 2px;
}

.bg-light {
  background: var(--bg-light) !important;
}

.bg-dark-blue {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
}

/* 关于我们 */
.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  padding: 30px;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: 20px;
  border: 1px solid rgba(26, 95, 180, 0.2);
}

.tech-grid {
  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"><defs><pattern id="tech" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(26,95,180,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23tech)"/></svg>');
  border-radius: 20px;
}

.about-content-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

.about-content {
  padding-left: 30px;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 2px;
}

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

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

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(26, 95, 180, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(26, 95, 180, 0.1);
  transform: translateX(5px);
}

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

.feature-item span {
  font-weight: 500;
  color: var(--text-dark);
}

/* 服务卡片 */
.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon i {
  color: #fff;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

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

.service-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-list li {
  padding: 8px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* 资质证书 */
.cert-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cert-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-placeholder {
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(26, 95, 180, 0.3);
}

.cert-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--primary-color);
  padding: 20px;
}

.cert-placeholder-content i {
  font-size: 3rem;
  opacity: 0.7;
}

.cert-placeholder-content span {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.cert-card:hover .cert-image img {
  transform: scale(1.05);
}

.cert-content {
  padding: 25px;
  text-align: center;
}

.cert-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cert-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 联系方式 */
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
}

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

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.contact-icon i {
  font-size: 1.8rem;
  color: #fff;
}

.contact-card h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 联系表单 */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px 20px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea.form-control {
  resize: none;
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: none;
  padding: 15px 50px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* 页脚 */
.footer {
  background: #050d18;
  padding: 80px 0 30px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  text-align: center;
}

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

.footer-brand h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-links h5,
.footer-contact h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h5::after,
.footer-contact h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent-color);
  width: 20px;
}

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

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 响应式 */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    padding-left: 0;
    margin-top: 40px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .contact-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

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

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

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

  .about-content-box {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-item {
    padding: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-buttons .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

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

  .contact-form-wrapper {
    padding: 25px;
  }
}
