/* General Body Styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
    text-decoration: none;
}

.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
}

.main-content { flex: 1; }
.section { padding: 4rem 0; }
.section:nth-child(even) { background-color: #f8f9fa; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}


.intro-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.join-content {
  max-width: 800px;
  margin: 0 auto;
}

.join-content ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 2rem 0;
  padding-left: 20px;
}

.material-item {
  display: flex;    
  align-items: center;        
  gap: 1rem;
  margin-top: 1rem;
}

.join-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.join-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(270deg, #667eea, #764ba2, #ff6ec4, #667eea);
  background-size: 600% 600%;
  -webkit-background-clip: text;     
  color: transparent;
  animation: text-gradient-move 6s linear infinite, text-pulse 2.5s ease-in-out infinite;
}
@keyframes text-gradient-move {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes text-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.join-info-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.join-text-content { flex: 2; }

.neon-text {
  font-size: 24px;
  font-weight: bold;
  color: #d689ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff, 0 0 20px #00f7ff, 0 0 40px #00f7ff;
  animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  from { text-shadow: 0 0 2px #d689ff, 0 0 5px #d689ff, 0 0 10px #00f7ff, 0 0 20px #00f7ff; }
  to { text-shadow: 0 0 5px #d689ff, 0 0 10px #d689ff, 0 0 20px #00f7ff, 0 0 40px #00f7ff, 0 0 80px #00f7ff; }
}

.qq-group-box {
  flex: 1;
  max-width: 300px;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-top: 25px;
  padding: 1rem;
  text-align: center;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.qq-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  background: linear-gradient(270deg, #667eea, #764ba2, #ff6ec4, #667eea);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 4s linear infinite, pulseScale 3s ease-in-out infinite;
  text-align: center;
}

.qq-qr-image { width: 100%; height: auto; border-radius: 4px; }

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

a.department-card-link { text-decoration: none; }

.department-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  box-sizing: border-box;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.department-icon { color: #667eea; margin-bottom: 1rem; }
.department-card h3 { color: #333; margin-bottom: 1rem; font-size: 1.5rem; }
.department-card p { color: #666; line-height: 1.6; margin-bottom: 1rem; }

/* Styles for Gallery Carousel */
.el-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.el-carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
}
.el-carousel-item {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 25%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1;
}
.el-carousel-item.is-active {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
}
.el-carousel-item.is-prev {
    transform: translateX(-55%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
}
.el-carousel-item.is-next {
    transform: translateX(55%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
}

.gallery-item { position: relative; height: 100%; width: 100%; }
.gallery-image { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem;
  text-align: left;
}
.gallery-overlay h4 { margin: 0 0 0.5rem 0; font-size: 1.3rem; }
.gallery-overlay p { margin: 0; opacity: 0.9; }

/* Footer */
.footer { background-color: #2c3e50; color: white; padding: 2rem 0 1rem; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h4 { margin-bottom: 1rem; color: #ecf0f1; }
.links { display: flex; flex-direction: column; gap: 0.5rem; }
.links a { color: #bdc3c7; text-decoration: none; transition: color 0.3s; }
.links a:hover { color: #3498db; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

.department-detail {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 2rem 0;
}

.back-button { margin-bottom: 2rem; }

.department-content {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.department-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.department-header .department-icon { flex-shrink: 0; }
.department-info h1 { font-size: 2.5rem; margin: 0 0 1rem 0; }
.department-description { font-size: 1.2rem; margin: 0 0 1rem 0; opacity: 0.9; }
.department-leaders { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.leader-item { display: flex; align-items: center; font-size: 1.1rem; }
.leader-title { font-weight: bold; margin-right: 0.5rem; }

.department-details { padding: 2rem; }
.detail-section h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}
.responsibility-content { font-size: 1.1rem; line-height: 1.6; color: #555; }
.responsibility-content ul { margin: 1rem 0; padding-left: 2rem; }
.responsibility-content li { margin-bottom: 0.5rem; }


.el-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    height: 40px;
    white-space: nowrap;
    cursor: pointer;
    color: #fff;
    background-color: #409eff;
    border: 1px solid #409eff;
   
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    font-size: 16px;
    border-radius: 4px;
    padding: 12px 20px;
}
.el-button:hover {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}
.el-button .el-icon {
    margin-right: 8px;
    vertical-align: middle;
}


@media (max-width: 768px) {
  .nav-content { flex-direction: column; gap: 1rem; }
  .section-title { font-size: 2rem; }
  .join-materials { flex-direction: column; }
  .join-info-wrapper { flex-direction: column; align-items: center; }
  .departments-grid { grid-template-columns: 1fr; }
  .department-header { flex-direction: column; text-align: center; padding: 2rem 1rem; }
  .department-info h1 { font-size: 2rem; }
  .department-details { padding: 1.5rem; }
  .el-carousel-item { width: 80%; left: 10%; }
  .el-carousel-item.is-prev { transform: translateX(-40%) scale(0.7); }
  .el-carousel-item.is-next { transform: translateX(40%) scale(0.7); }
}


.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(31, 45, 61, 0.11);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-arrow:hover {
    background-color: rgba(31, 45, 61, 0.23);
}

.carousel-arrow-left {
    left: 16px;
}

.carousel-arrow-right {
    right: 16px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 30px;
        height: 30px;
    }
    .carousel-arrow-left {
        left: 8px;
    }
    .carousel-arrow-right {
        right: 8px;
    }
}