#app {
    position: relative;
}
html, body {
    margin: 0;  
    padding: 0;  
}
body {
    background-color: black;
}

.bg {
    position: fixed;
    background-size: cover;
    transition: all .2s;
}

.bg img {
    filter: brightness(80%);
    width: 100vw;
    height: 100vh; 
    object-fit: cover;
}

.bg::after{
  content: "";
  position: absolute;
  inset: 0;                      /* 覆盖整个 .bg 容器 */
  pointer-events: none;          /* 不阻断图片或页面交互 */
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0) 38%,           /* 中心透明，38% 为起始点（可调）*/
    rgba(0,0,0,0.40) 100%        /* 边缘暗度：0.65（可调为 0.4~0.85） */
  );
  mix-blend-mode: multiply;      /* 关键：与下面的图片混合，产生自然暗角 */
  opacity: 1;                    /* 可以用来做淡入/淡出动画 */
  transition: opacity .25s ease; /* 更平滑的开关效果（配合 JS 切 class） */
  z-index: 2;                    /* 确保覆盖在图片之上 */
}



main {
    position: relative;
    height: 100vh;

}



.timecontainer {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
}

.time {
    font-size: 115px;       /* 超大字体 */
    font-weight: 600;       /* 粗体，类似 Semibold/Bold */
    color: rgba(255, 255, 255, 0.85); /* 透明白色：白色 + 65% 不透明度 */
    letter-spacing: -5px;   /*稍微紧凑的字间距，更像 iOS */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    
    /* 防止时间变化时宽度跳动 */
    font-variant-numeric: tabular-nums;
}


#searchbox {
    background-color: rgba(0, 0, 0, 0.25);
}

#searchbox:hover {
    background-color: rgba(15, 15, 15, 0.6);
}

.search {
    position: absolute;
    top: 270px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    width: 420px;
    height: 43px;
    border-radius: 30px;
    color: #fff;
    background-color: rgba(255, 255, 255, .25);
    box-shadow: rgb(0 0 0 / 20%) 0 0 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: color .25s, background-color .25s, box-shadow .25s, left .25s, opacity .25s, top .25s, width .25s;
}

.search:hover {
    box-shadow: rgb(0 0 0 / 30%) 0 0 10px;
    width: 530px;
}

input {
    outline: 0;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0 ;
    color: inherit;
    background-color: transparent;
    font-size: 14px;
    font-family: "Microsoft Yahei Light", "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif;
    text-align: center;
}



/* 诗句------------------------------------------------------------------------------------ */
#poem {
    width: 530px;
    padding: 15px 50px;
    margin: 0px;
    position: absolute;
    left: 50%;
    bottom: 125px;
    transform: translateX(-50%);
    border-radius: 15px;
    color: rgba(255, 255, 255, 9);
    font-size: small;
    text-align: center;
    cursor: default;
    transition: .5s;
    overflow: hidden;
}


.poem{
    display: none;
}


#poem .poemBg {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    backdrop-filter: blur(30px);
    transition: 1s;
}

#poem span {
    transition: .25s;
    text-shadow: 0 0 20px rgb(0 0 0 / 80%);
}

#poem p {
    opacity: 0;
    transition: .25s;
    margin-top: 8px;
}

#poem button {
    opacity: 0;
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 0 10px;
    border: none;
    border-radius: 10px;
    background-color: transparent;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: .25s;
}

#poem i {
    font-size: 22px;
}

/* 诗歌hover部分 */
#poem:hover span {
    text-shadow: 0 0 20px transparent;
}

#poem:hover .poemBg,
#poem:hover p,
#poem:hover button {
    opacity: 1;
}

#poem:hover button:hover {
    background-color: rgba(255, 255, 255, .05);
    color: #70C000;
}

