/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 禁止用户选择文本 */
    user-select: none;
    /* 禁止触摸事件的缩放行为 */
    touch-action: manipulation;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('AAA03998.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 添加背景动画效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 25vh;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

#current-date {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0.95;
}

#current-time {
    font-size: 6rem;
    font-weight: bold;
    text-shadow: 0 6px 12px rgba(0,0,0,0.4);
    letter-spacing: 3px;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
    min-width: 500px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 备案号样式 */
.beian {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.beian:hover {
    opacity: 1;
}

.beian a {
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.time-container {
    margin: 1rem 0 1rem 0;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



.countdown-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.15);
    animation: fadeInUp 1s ease-out 0.5s both;
    width: 80%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
  
  .countdown-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
  .countdown-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      width: 100%;
  }
  
  .countdown-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(255,255,255,0.2);
      border-radius: 10px;
      padding: 0.8rem 0.5rem;
      width: 100%;
      box-sizing: border-box;
  }
  
  .countdown-item div {
      font-size: 2.2rem;
      font-weight: bold;
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
      width: 100%;
      max-width: 60px;
      text-align: center;
      box-sizing: border-box;
  }
  
  .countdown-item span {
      margin-top: 0.5rem;
      font-size: 1rem;
      opacity: 0.9;
  }
  
  .countdown-dates {
      display: flex;
      justify-content: space-around;
      font-size: 1rem;
      opacity: 0.9;
  }
  


/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    #current-date {
        font-size: 1.2rem;
    }
    
    #current-time {
        font-size: 4rem;
    }
    
    .countdown-container h3 {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .countdown-item div {
        font-size: 1.8rem;
    }
    
    .countdown-item span {
        font-size: 0.9rem;
    }
    
    .countdown-dates {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 15vh;
    }
}

@media (max-width: 480px) {
    #current-date {
        font-size: 1rem;
    }
    
    #current-time {
        font-size: 3rem;
    }
    
    .countdown-container {
        padding: 1.5rem;
    }
    
    .countdown-container h3 {
        font-size: 1.3rem;
        white-space: nowrap;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
    
    .countdown-item div {
        font-size: 1.5rem;
    }
    
    .countdown-item span {
        font-size: 0.8rem;
    }
}