/* 互动体验页面专用样式 */

.vr-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.vr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.vr-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.vr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.vr-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.vr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.vr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.vr-card:hover .vr-overlay {
  opacity: 1;
}

.vr-overlay i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.vr-content {
  padding: 1.5rem;
}

.vr-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.vr-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.vr-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.vr-features i {
  color: #27ae60;
}

.vr-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.vr-requirements {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}

.vr-requirements h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.requirement-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 10px;
}

.requirement-item i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.requirement-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 教育游戏区域 */
.games-section {
  padding: 4rem 0;
  background: #fff;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.game-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.game-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.game-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature i {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.feature span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.game-screenshot {
  width: 100%;
  height: 200px;
  margin: 1.5rem 0;
  border-radius: 5px;
  overflow: hidden;
}

.game-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* DIY实验区域 */
.diy-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.diy-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.diy-category {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-header {
  background: linear-gradient(135deg, var(--secondary-color), #764ba2);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-header i {
  font-size: 2rem;
  margin-right: 1rem;
}

.category-header h3 {
  flex: 1;
  margin: 0;
}

.difficulty {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: bold;
}

.difficulty.easy {
  background: #27ae60;
}

.difficulty.medium {
  background: #f39c12;
}

.difficulty.hard {
  background: var(--accent-color);
}

.category-content {
  padding: 1.5rem;
}

.materials {
  margin: 1rem 0;
}

.materials h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.materials ul {
  list-style: none;
  padding-left: 0;
}

.materials li {
  padding: 0.3rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.materials li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.time-estimate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  margin: 1rem 0;
}

.safety-notice {
  background: #fff3cd;
  border-left: 4px solid #f39c12;
  padding: 1.5rem;
  border-radius: 5px;
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.notice-icon {
  font-size: 2rem;
  color: #f39c12;
}

.notice-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 时间线区域 */
.timeline-section {
  padding: 4rem 0;
  background: #fff;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.timeline-content {
  width: 45%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  color: var(--secondary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  background: var(--bg-light);
  color: var(--secondary-color);
}

.user-submission {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 3rem;
}

.user-submission h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.submission-form {
  margin-top: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .vr-grid,
  .games-grid,
  .diy-categories {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }

  .timeline-dot {
    left: 20px;
  }

  .vr-actions {
    flex-direction: column;
  }
}

