/* 卧龙科技 - 统一样式表 */
/* 参考丰农控股设计风格，使用原创代码和合法资源 */

:root {
  --primary-color: #00b45a;
  --secondary-color: #00d170;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-gray: #f7f8fa;
  --border-color: #e5e5e5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
}

/* 导航栏样式 - 无边界透明设计 */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
  border: none;
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.navbar-brand {
  font-weight: 800;
  color: var(--text-primary) !important;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 24px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Hero区域样式 - 大气动态设计 */
.hero-section {
  background: linear-gradient(135deg, #00b45a 0%, #00d170 50%, #00b899 100%);
  color: white;
  padding: 180px 0 100px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  border-radius: 50%;
  top: -300px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(50px, -50px) rotate(120deg); }
  66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -2px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .lead {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 统计数据样式 - 动态效果 */
.stat-item-modern {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.stat-number-modern {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.stat-item-modern:hover .stat-number-modern {
  transform: scale(1.1);
}

.stat-label-modern {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 标题样式 - 创意设计 */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 100px 0 60px;
  position: relative;
  letter-spacing: -1px;
}

.section-title::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 900;
  color: var(--bg-gray);
  z-index: -1;
  opacity: 0.5;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 卡片样式 - 不规整创意布局 */
.card {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 40px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 180, 90, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-body {
  color: var(--text-primary);
  padding: 32px;
  position: relative;
  z-index: 1;
}

.card-title {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 60px rgba(0, 180, 90, 0.15);
}

/* 按钮样式 - 现代动感 */
.btn-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 180, 90, 0.3);
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-custom:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 180, 90, 0.4);
  color: white;
}

/* 页脚样式 - 现代化 */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: #999999;
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
}

footer a {
  color: #999999;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

footer p {
  color: #999999;
  margin-bottom: 8px;
}

/* 图标样式 - 动态效果 */
.tech-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.card:hover .tech-icon,
.product-card:hover .tech-icon {
  transform: scale(1.2) rotate(5deg);
  animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1.2) rotate(5deg); }
  50% { transform: scale(1.3) rotate(-5deg); }
}

/* 产品卡片样式 - 大胆不规则 */
.product-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.product-card:nth-child(even) {
  transform: rotate(1deg);
}

.product-card:hover {
  transform: translateY(-15px) rotate(0deg) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 180, 90, 0.2);
}

.product-card-inner {
  padding: 32px;
}

.product-card-inner h3 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.product-card-inner p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 16px;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 180, 90, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, var(--bg-gray), #e8f5e9);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.15) rotate(2deg);
}

/* 特性列表样式 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  border-bottom: 1px solid #f5f5f5;
}

.feature-list li:hover {
  color: var(--primary-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* 模态框样式 */
.modal-content {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: var(--primary-color);
  color: white;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 20px 24px;
}

.modal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-body {
  padding: 24px;
  color: var(--text-primary);
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h5 {
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.modal-body ul {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body ul li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.modal-body strong {
  color: var(--primary-color);
  font-weight: 600;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .stat-number-modern {
    font-size: 2rem;
  }
}
