/* css/style.css - 更新后的版本 */

/* 移动端菜单样式 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 40;
  padding: 100px 24px 40px;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

/* PC端隐藏移动菜单 */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* 菜单按钮 */
.mobile-menu-btn {
  transition: all 0.3s ease;
  z-index: 45;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 遮罩层 */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
  display: none;
}

/* PC端隐藏遮罩层 */
@media (min-width: 768px) {
  #overlay {
    display: none !important;
  }
}

/* 菜单链接激活状态 */
.nav-link.active,
.mobile-nav-link.active {
  color: #1E40AF !important;
  font-weight: 600;
}

/* 滚动动画相关样式 */
.section-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 按钮动画 */
.btn-animate {
  transition: all 0.3s ease;
}

.btn-animate:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.2);
}

/* 浮动动画 */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 背景图片样式 */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.section-content-wrapper {
  position: relative;
  z-index: 10;
}

/* 毛玻璃效果 */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 文字阴影 */
.text-shadow-light {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-dark {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 联系卡片等高处理 */
.contact-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-card {
  flex: 1;
  min-width: 300px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 确保所有联系卡片等高 */
.contact-card .glass-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 修正邮箱部分的布局 */
.email-section .space-y-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-section .space-y-4 > div {
  flex: 1;
}

/* 修正按钮位置 */
.contact-card .pt-4 {
  margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .contact-card {
    min-width: 100%;
  }
}

/* 方案二：简洁版 - 只移除边框 */
#about .glass-card {
  border: none !important;
}

#about .glass-card.rounded-xl {
  border: none !important;
}

#about .glass-card.rounded-2xl {
  border: none !important;
}

#about .relative.group .absolute.inset-0 {
  border: none !important;
}