/* =============== 全局样式 =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0f1f, #141b2d, #0a1020);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    transition: background-image 1s ease-in-out;
}



/* =============== 主内容容器模块 =============== */
/* 在主CSS文件中尽早定义元素的初始状态 */
.index-container, #clock, .index-go-btn, .control-buttons {
    opacity: 0;
    transform: translateY(20px);
}

.index-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    z-index: 10;
    padding-bottom: 15vh;
}

.index-container {
    text-align: center;
    max-width: 500px;
    padding: 25px 40px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    
    background: transparent;
    backdrop-filter: none; /* 去掉毛玻璃效果 */
    border: none; /* 如果需要去掉边框 */
    box-shadow: none; /* 如果需要去掉阴影 */

    opacity: 0;
    transform: translateY(20px);
    animation: fadeInContent 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* =============== 动画模块 =============== */
/* 修改style.css中的动画定义 */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards !important; /* 确保覆盖其他样式 */
}

/* 添加初始可见状态 */
.index-container, 
#clock, 
.index-go-btn, 
.control-buttons {
  opacity: 1; /* 覆盖初始隐藏状态 */
  transform: translateY(0);
}

/* =============== 页脚模块 =============== */
/* style.css - 固定页脚 */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  border-top: 1px solid rgba(92, 92, 180, 0.3);
  background: rgba(10, 10, 30, 0.3);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer a {
  color: #a29bfe;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #00cec9;
  text-decoration: underline;
}