/* 颐然健康官方网站 - 主样式文件 */
/* 整合Tailwind CSS和Bootstrap 3风格 */

/* 基础重置和变量 */
:root {
  --primary-color: #00bcd4;
  --secondary-color: #4caf50;
  --accent-color: #ff9800;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --border-light: #e9ecef;
}

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

body {
  font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.95), rgba(0, 151, 167, 0.95));
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.2);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  min-height: 70px;
  display: flex;
  align-items: center;
}

/* LOGO容器样式 */
.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  color: white !important;
  text-decoration: none;
  padding: 15px 0;
  transition: all 0.3s ease;
}

/* LOGO图片样式 - 柔和自然设计 */
.navbar-brand img {
  height: 45px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) 
          drop-shadow(0 0 8px rgba(255, 255, 255, 0.6))
          brightness(1.1) 
          contrast(1.1)
          saturate(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 12px;
  /* 轻微的背景效果，不过于突出 */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 6px;
  padding: 1px;
}

/* LOGO悬浮效果 - 适度增强 */
.navbar-brand:hover img {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) 
          drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
          brightness(1.15) 
          contrast(1.2)
          saturate(1.1);
  transform: translateY(-1px) scale(1.01);
}

/* LOGO文字部分 */
.navbar-brand .logo-text {
  color: white;
  font-weight: 600;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.navbar-nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0 20px;
}

.navbar-nav a {
  color: white !important;
  text-decoration: none;
  padding: 15px 0;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  border-bottom-color: white;
  transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
  margin-top: 85px;
  min-height: calc(100vh - 85px);
  padding-bottom: 40px;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), #4caf50);
  color: white;
  padding: 120px 0 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.8;
  animation: fadeInUp 1s ease 0.4s both;
}

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), #0097a7);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: linear-gradient(45deg, var(--secondary-color), #388e3c);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

/* 区块样式 */
.section {
  padding: 80px 0 100px 0;
  margin-bottom: 40px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: none;
}

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

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #0097a7);
  color: white;
  padding: 20px;
  border: none;
}

.card-body {
  padding: 30px;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* 网格系统 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4, .col-md-6, .col-md-12 {
  padding: 0 15px;
  margin-bottom: 30px;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* 技术特色区域 */
.tech-features {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #0097a7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: white;
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: rotate(360deg) scale(1.1);
}

/* 解决方案网格 */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.solution-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
}

.solution-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 48px;
  color: white;
}

/* 统计数据 */
.stats-section {
  background: linear-gradient(135deg, var(--text-dark), #555555);
  color: white;
}

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

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: 18px;
  margin-top: 10px;
  opacity: 0.9;
}

/* 新闻资讯 */
.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: bold;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  color: var(--text-dark);
}

.news-excerpt {
  color: var(--text-light);
  line-height: 1.6;
}

/* 页脚样式 */
.footer {
  background: linear-gradient(135deg, var(--text-dark), #222222);
  color: white;
  padding: 60px 0 20px;
}

.footer-section {
  margin-bottom: 40px;
}

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

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

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

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #444444;
  padding-top: 20px;
  text-align: center;
  color: #999999;
}

/* 联系信息 */
.contact-info {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    min-height: 65px;
    padding: 0 15px;
  }

  .navbar-brand {
    padding: 10px 0;
  }

  .navbar-brand img {
    height: 35px;
    margin-right: 8px;
  }

  .navbar-brand .logo-text {
    font-size: 20px;
  }

  .main-content {
    margin-top: 70px;
  }

  .navbar-nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 20px;
    display: none;
  }
  
  .navbar-nav.show {
    display: flex;
  }

  .hero-section {
    padding: 80px 0 60px 0;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }

  .section {
    padding: 60px 0 80px 0;
    margin-bottom: 30px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .col-md-4, .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

/* 实用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--bg-light); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-light); } 