/* 档案库页面专用样式 */

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 分类导航 */
.category-nav {
  background: #fff;
  padding: 2rem 0;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  min-width: 120px;
}

.category-tab i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.category-tab span {
  font-size: 0.9rem;
  font-weight: bold;
}

.category-tab:hover,
.category-tab.active {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-tab.active i,
.category-tab:hover i {
  color: #fff;
}

/* 技术分类区域 */
.tech-category {
  padding: 4rem 0;
}

.tech-category:nth-child(even) {
  background: var(--bg-light);
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.category-header h2 i {
  color: var(--secondary-color);
}

.category-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* 技术卡片网格 */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tech-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.tech-card.featured {
  border: 3px solid var(--secondary-color);
}

.tech-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tech-card:hover .tech-image img {
  transform: scale(1.1);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.tech-content {
  padding: 1.5rem;
}

.tech-content h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.tech-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tech-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.tech-meta i {
  color: var(--secondary-color);
}

.tech-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background: var(--bg-light);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  border: 1px solid var(--secondary-color);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.read-more-btn:hover {
  gap: 1rem;
  color: var(--primary-color);
}

.interactive-demo {
  margin: 1rem 0;
}

.demo-btn {
  background: linear-gradient(135deg, var(--secondary-color), #764ba2);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 对比表格 */
.comparison-table {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}

.comparison-table h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-light);
  color: var(--primary-color);
  font-weight: bold;
}

.comparison-table tr:hover {
  background: var(--bg-light);
}

/* 交互式地图 */
.interactive-map {
  margin-top: 3rem;
}

.interactive-map h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.map-container {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.astronomy-map {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1200');
  background-size: cover;
  background-position: center;
}

.site-marker {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.marker-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.site-marker:hover .marker-icon {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(231,76,60,0.5);
}

.site-popup {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 1rem;
  border-radius: 5px;
  box-shadow: var(--shadow-hover);
  min-width: 150px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.site-marker:hover .site-popup {
  opacity: 1;
  pointer-events: auto;
}

.site-popup h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.site-popup p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .category-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .category-tab {
    flex-direction: row;
    justify-content: flex-start;
    min-width: auto;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .category-header h2 {
    font-size: 2rem;
    flex-direction: column;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .astronomy-map {
    height: 300px;
  }
}

