/*!Animate.css - http://daneden.me/animate*/
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

@-webkit-keyframes fadeInLeft {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-40px, 0, 0);
    transform: translate3d(-40px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-40px, 0, 0);
    -ms-transform: translate3d(-40px, 0, 0);
    transform: translate3d(-40px, 0, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-width: 256px;
  font-family: Helvetica, Microsoft Yahei, Arial, sans-serif;
  color: white;
  overflow: hidden;
  background: #2998eb;
  background: linear-gradient(135deg, #00c4ff, #9d1bb2) no-repeat fixed;
}

html {
  width: 100%;
  height: 100%;
  min-width: 256px;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

#wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#wrap > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#top {
  position: absolute;
  top: 50px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

#logo {
  display: none;
  text-align: center;
}

#logo img {
  max-height: 80px;
  width: auto;
  display: block;
  margin-bottom: 40px;
}

#main {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
  margin-top: 80px;
}

#From_WorkApp {
  width: 100%;
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  display: flex;
  justify-content: center;
}

#app ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(107px, 107px));
  gap: 12px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0);
  justify-items: center;
  align-content: start;
  max-width: 100%;
}

#app ul:hover {
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* Webkit scrollbar styling */
#app ul::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

#app ul::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

#app ul::-webkit-scrollbar-thumb {
  background: #888; /* 使用灰色滚动条 */
  border-radius: 3px;
  transition: all 0.3s ease;
  min-height: 20px;
}

#app ul::-webkit-scrollbar-thumb:hover {
  background: #666; /* 悬停时更深的颜色 */
}

/* 默认隐藏滚动条，滚动时短暂显示 */
#app ul::-webkit-scrollbar-thumb:window-inactive {
  background: transparent;
}

/* 针对不同系统的优化 */
#app ul {
  -ms-overflow-style: none;  /* 针对IE和Edge */
  scrollbar-width: thin;      /* 针对Firefox */
  overflow-y: overlay; /* 使用overlay模式避免占用空间 */
}

/* 触屏设备上隐藏滚动条 */
@media (hover: none) and (pointer: coarse) {
  #app ul {
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  #app ul::-webkit-scrollbar {
    display: none;
  }
}

#app ul li {
  margin: 8px 0 12px 0;
  width: 95px;
  height: 115px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#app ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

#app ul li a:hover {
  transform: scale(1.03);
}

#app .app-link .app-icon {
  width: 70px;
  height: 70px;
  display: block;
  clip-path: url(#apple-squircle);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

#app .app-link:hover .app-icon {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  transform: translateY(-5px);
}

#app .app-name {
  display: block;
  height: 32px;
  text-shadow: 0 0 10px #111;
  line-height: 16px;
  word-break: break-word;
  overflow: visible;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 400;
}

#footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 5px #111;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-weight: 300; /* 细体字 */
}

#copyright {
  margin: 0;
  padding: 0;
}

/* 信息按钮样式 */
.info-btn {
  width: 12px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 8px; /* 相应调整字体大小 */
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.info-icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* 弹窗遮罩层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 弹窗内容 */
.modal-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-header h3 {
  margin: 0;
  color: white;
  font-size: 20px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
}

.info-value {
  color: white;
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  flex: 1;
  margin-left: 15px;
}

/* 向下滚动指示器 */
#scroll-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-indicator.show {
  opacity: 1;
}

.flat-v-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -8px; /* 更紧密重叠 */
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flat-v-container:hover {
  transform: translateY(-1px);
}

.flat-v-top {
  animation: flat-top-bounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.flat-v-bottom {
  animation: flat-bottom-bounce 1.6s ease-in-out infinite 0.15s;
  filter: drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.12));
  transition: all 0.3s ease;
}

.flat-v-container:hover .flat-v-top {
  stroke: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0.8px 1.5px rgba(0, 0, 0, 0.15));
  animation-play-state: paused;
}

.flat-v-container:hover .flat-v-bottom {
  stroke: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0.8px 1.5px rgba(0, 0, 0, 0.18));
  animation-play-state: paused;
}

.flat-v-container:active {
  animation: flat-click-pulse 0.3s ease forwards;
}

@keyframes flat-top-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes flat-bottom-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

@keyframes flat-click-pulse {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes smooth-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

/* 响应式设计 - 最大化应用显示数量 */
/* 超宽屏 - 8列布局 */
@media (min-width: 1600px) {
  #app ul {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }

  #app ul li {
    width: 95px;
    height: 115px;
  }

  #app .app-link .app-icon {
    width: 70px;
    height: 70px;
  }
}

/* 很宽屏 - 7列布局 */
@media (max-width: 1599px) and (min-width: 1400px) {
  #app ul {
    grid-template-columns: repeat(7, 1fr);
    gap: 13px;
  }

  #app ul li {
    width: 100px;
    height: 120px;
  }

  #app .app-link .app-icon {
    width: 75px;
    height: 75px;
  }
}

/* 较宽屏 - 6列布局 */
@media (max-width: 1399px) and (min-width: 1200px) {
  #app ul {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }

  #app ul li {
    width: 110px;
    height: 130px;
  }

  #app .app-link .app-icon {
    width: 82px;
    height: 82px;
  }
}

/* 中等屏 - 5列布局 */
@media (max-width: 1199px) and (min-width: 992px) {
  #app ul {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  #app ul li {
    width: 125px;
    height: 140px;
  }

  #app .app-link .app-icon {
    width: 92px;
    height: 92px;
  }
}

/* 较小屏 - 4列布局 */
@media (max-width: 991px) and (min-width: 768px) {
  #app ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  #app ul li {
    width: 145px;
    height: 155px;
  }

  #app .app-link .app-icon {
    width: 108px;
    height: 108px;
  }
}

/* 小屏 - 3列布局 */
@media (max-width: 767px) and (min-width: 576px) {
  #app ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  #app ul li {
    width: 165px;
    height: 170px;
    margin: 12px 0 18px 0;
  }

  #app .app-link .app-icon {
    width: 122px;
    height: 122px;
  }
}

/* 超小屏 - 2列布局 */
@media (max-width: 575px) {
  #app ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #app ul li {
    width: 180px;
    height: 180px;
    margin: 15px 0 20px 0;
  }

  #app .app-link .app-icon {
    width: 135px;
    height: 135px;
  }
}

/* 原有的768px断点保持兼容 */
@media (max-width: 768px) {
  #app ul {
    max-height: calc(100vh - 250px);
  }

  #logo img {
    max-height: 70px;
    width: auto;
  }
}

/* 完全隐藏滚动条，但仍保持滚动功能 */
#app ul::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

#app ul {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
