/* 
 * 英拿科技官网 - 自定义样式 (浅色主题)
 * 参考七牛云设计风格
 */

/* ===== CSS变量 ===== */
:root {
  /* 主色调 - 科技蓝 */
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --primary-light: #E8F4FF;
  --primary-lighter: #F5FAFF;
  
  /* 辅助色 */
  --success: #00C853;
  --warning: #FFB300;
  --danger: #FF1744;
  --info: #00B8D4;
  
  /* 背景色 */
  --bg-white: #FFFFFF;
  --bg-gray: #F7F8FA;
  --bg-gray-light: #F0F2F5;
  
  /* 文字色 */
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #FFFFFF;
  
  /* 边框 */
  --border-color: #E8E8E8;
  --border-light: #F0F0F0;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: all 0.35s ease;
  padding: 0;
  height: 88px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.6);
}

/* 顶部科技感动态渐变线 */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--info), var(--primary));
  background-size: 200% 100%;
  animation: navLineFlow 6s linear infinite;
}

@keyframes navLineFlow {
  to { background-position: 200% 0; }
}

/* 底部滚动进度条（宽度由 JS 通过 --nav-progress 控制） */
.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: var(--nav-progress, 0%);
  background: linear-gradient(90deg, var(--primary), var(--info));
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.5);
}

/* 滚动后收缩为紧凑模式 */
.navbar.scrolled {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(0, 40, 110, 0.08);
  border-bottom-color: transparent;
}

@media (min-width: 992px) {
  .navbar.scrolled .nav-link {
    padding: 20px 20px !important;
  }

  .navbar.scrolled .nav-link::after {
    bottom: 12px;
  }
}

.navbar-brand {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand img {
  transition: height 0.35s ease, transform 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
  height: 34px !important;
}

.navbar-brand:hover img {
  transform: scale(1.06);
}

.navbar-brand i {
  color: var(--primary);
  font-size: 24px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 32px 20px !important;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, padding 0.35s ease, text-shadow 0.3s ease;
  position: relative;
}

/* 悬停/激活时的渐变下划线 */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

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

/* 悬停时文字辉光 */
.nav-link:hover {
  text-shadow: 0 0 14px rgba(0, 102, 255, 0.35);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* 导航右侧 CTA 按钮 */
.nav-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white) !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.28);
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* CTA 光泽扫过 */
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.nav-cta:hover {
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 255, 0.4);
}

.nav-cta:hover::after {
  left: 130%;
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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='%231a1a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== 轮播Banner ===== */
.banner-carousel {
  padding-top: 88px;
}

.banner-slide {
  height: 650px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.banner-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-title span {
  color: var(--primary-light);
}

.banner-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.banner-buttons {
  display: flex;
  gap: 16px;
}

.banner-buttons .btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--text-white);
}

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

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  margin: 0 6px;
}

.carousel-indicators button.active {
  background-color: var(--primary);
  width: 30px;
  border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.banner-carousel:hover .carousel-control-prev,
.banner-carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.2);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* ===== Hero区域 ===== */
.hero-section {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-white) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 88px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== 按钮样式 ===== */
.btn {
  padding: 10px 24px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-lg {
  padding: 12px 32px;
  font-size: 15px;
}

/* ===== 区块标题 ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 服务卡片 ===== */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--primary);
}

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

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

/* ===== 产品卡片 ===== */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.product-body {
  padding: 24px;
}

/* ===== 新闻卡片 ===== */
.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.5;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

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

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

.stat-number {
  font-size: 40px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

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

.cta-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

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

.cta-btn {
  background: var(--text-white);
  color: var(--primary);
  font-weight: 500;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-gray);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-color);
}

.footer-brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand i {
  color: var(--primary);
}

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

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

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

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

.footer-contact i {
  color: var(--primary);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ===== 页面横幅 ===== */
.page-banner {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-white) 100%);
  text-align: center;
}

.page-banner-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.page-banner-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding-left: 24px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

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

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

/* ===== 资质卡片 ===== */
.qualification-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.qualification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--info));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.qualification-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

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

.qualification-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.qualification-card:hover .qualification-icon {
  background: var(--primary);
  color: var(--text-white);
  transform: scale(1.1) rotate(5deg);
}

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

.qualification-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* 资质卡片动画 */
@keyframes qualificationFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.qualification-card.animate-float {
  animation: qualificationFloat 3s ease-in-out infinite;
}

.qualification-card:nth-child(2).animate-float {
  animation-delay: 0.5s;
}

.qualification-card:nth-child(3).animate-float {
  animation-delay: 1s;
}

.qualification-card:nth-child(4).animate-float {
  animation-delay: 1.5s;
}

/* ===== 联系表单 ===== */
.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-control {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-select {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* ===== 特色列表 ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-list li i {
  color: var(--primary);
  margin-right: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ===== 标签 ===== */
.badge-tech {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
}

/* ===== 表格 ===== */
.table {
  font-size: 14px;
}

.table-dark {
  --bs-table-bg: var(--bg-gray);
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border-color);
}

/* ===== 轮播 ===== */
.carousel-item {
  min-height: 400px;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.carousel-indicators button.active {
  background-color: var(--primary);
}

/* ===== 分页 ===== */
.pagination .page-link {
  background: var(--bg-white);
  border-color: var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

.pagination .page-link:hover {
  background: var(--bg-gray);
  border-color: var(--border-color);
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* ===== 警告框 ===== */
.alert {
  font-size: 14px;
  border-radius: var(--radius-md);
}

.alert-info {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== 响应式调整 ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 16px 16px;
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .nav-link {
    padding: 12px 0 !important;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-cta {
    margin: 12px 0 4px;
    align-self: flex-start;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .page-banner-title {
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .hero-stat {
    flex: 1 1 40%;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .cta-title {
    font-size: 24px;
  }
}

/* ===== 动画类 ===== */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

/* ===== AOS自定义 ===== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}
