/* 
 * main.css - Oil Website 主样式文件
 * 包含团队成员展示和活动列表的样式
 */

/* === 团队成员展示样式 === */

/* 整体容器 */
.team-intro {
  margin-bottom: 40px;
  text-align: center;
}

.team-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.team-intro p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 80%;
  margin: 0 auto;
}

/* 成员网格布局 */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* 成员卡片 */
.member-card {
  background-color: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.member-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .member-image img {
  transform: scale(1.05);
}

.member-image.placeholder {
  background: linear-gradient(145deg, #333, #222);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image.placeholder span {
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
}

.member-info {
  padding: 15px;
}

.member-name {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.member-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* 成员详情页 */
.member-details-container {
  width: 100%;
  margin-top: 50px;
  animation: fadeIn 0.4s ease-in-out;
}

.back-button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.member-details {
  background-color: rgba(20, 20, 20, 0.8);
  border-radius: 15px;
  padding: 30px;
  margin-top: 20px;
}

.member-profile {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.member-detail-image {
  width: 280px;
  height: 280px;
  border-radius: 10px;
  object-fit: cover;
}

.member-profile-info {
  flex: 1;
  min-width: 300px;
}

.member-profile-info h2 {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
}

.member-profile-info h3 {
  font-size: 1.3rem;
  font-weight: normal;
  margin: 0 0 25px 0;
  color: rgba(255, 255, 255, 0.8);
}

.member-socials {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.social-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-link.instagram {
  background-color: rgba(193, 53, 132, 0.3);
}

.social-link.soundcloud {
  background-color: rgba(255, 85, 0, 0.3);
}

.social-link.bandcamp {
  background-color: rgba(99, 154, 169, 0.3);
}

.member-bio-section, .member-projects-section {
  margin-top: 30px;
}

.member-bio-section h3, .member-projects-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.member-bio-section h3:after, .member-projects-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.member-bio {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.member-projects-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.member-projects-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-projects-list li:last-child {
  border-bottom: none;
}

/* 加载和错误状态 */
.loading-indicator, .error-message {
  text-align: center;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  margin: 30px auto;
  max-width: 400px;
}

.loading-indicator {
  color: rgba(255, 255, 255, 0.7);
}

.error-message {
  color: #ff6b6b;
}

.no-members {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

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

/* === 活动列表样式 === */

.events-container {
  width: 100%;
}

.events-header {
  margin-bottom: 40px;
  text-align: center;
}

.events-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.events-header p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 80%;
  margin: 0 auto;
}

.events-toggle {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 15px;
}

.toggle-button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.toggle-button.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.toggle-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.events-list {
  margin-top: 30px;
}

.event-section {
  display: none;
}

.event-section.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.event-card {
  background-color: rgba(20, 20, 20, 0.7);
  border-radius: 15px;
  margin-bottom: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-image {
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.event-title {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.event-venue {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.event-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.event-artists {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-artists h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.artist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artist-tag {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.event-link {
  display: inline-block;
  margin-top: 20px;
  color: white;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
}

.event-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }
  
  .member-image {
    height: 160px;
  }
  
  .member-profile {
    flex-direction: column;
    gap: 20px;
  }
  
  .member-detail-image {
    width: 100%;
    height: auto;
    max-height: 300px;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-image {
    width: 100%;
    height: 180px;
  }
  
  .event-info {
    width: 100%;
    padding: 20px;
  }
  
  .events-toggle {
    flex-direction: column;
    align-items: center;
  }
  
  .toggle-button {
    width: 80%;
  }
}

@media (min-width: 769px) {
  .event-card {
    flex-direction: row;
    height: 220px;
  }
  
  .event-image {
    width: 300px;
    height: 100%;
  }
  
  .event-info {
    width: calc(100% - 300px);
  }
}
