/* page-vibration-monitor.component.scss */
:host {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 30px 0;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
  background-size: 20px 20px;
  opacity: 0.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.ai-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-card {
  flex: 1 1 300px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

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

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.feature-desc {
  color: #666;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover {
  background: #2980b9;
}

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

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

.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.subsection {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.subsection-title {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.subsection-title i {
  margin-right: 10px;
  color: var(--primary-color);
}

/* 知识图谱可视化容器 */
#knowledge-graph {
  width: 100%;
  height: 400px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 15px 0;
}

/* AR名片样式 */
.ar-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.ar-card {
  flex: 1 1 200px;
  background: linear-gradient(135deg, #f5f7fa, #e4e8eb);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.ar-card:hover {
  transform: scale(1.05);
}

.ar-card-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--primary-color);
}

.ar-card-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.ar-card-title {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ar-card-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* 智能检索区域 */
.search-container {
  display: flex;
  margin: 20px 0;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  padding: 0 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #2980b9;
}

/* 轮播图样式 */
.swiper {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: white;
  position: relative;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.slide-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* 人才库卡片 */
.talent-card {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}

.talent-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.talent-info {
  flex: 1;
  padding: 15px;
}

.talent-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.talent-skill {
  display: inline-block;
  background: #e0f7fa;
  color: #00838f;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

.blockchain-badge {
  display: inline-flex;
  align-items: center;
  background: #f3e5f5;
  color: #6a1b9a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 5px;
}

.blockchain-badge i {
  margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ai-features {
    flex-direction: column;
  }
  
  .feature-card {
    flex: 1 1 auto;
  }
  
  .ar-cards {
    flex-direction: column;
  }
  
  .ar-card {
    flex: 1 1 auto;
  }
  
  .swiper {
    height: 200px;
  }
}