/* 字体 */
@font-face{
    font-family: "SourceHanSansSC-Medium-2";
    font-weight: 1 999;
    src: url("../font/SourceHanSansSC-Medium-2.otf");
}

@font-face{
    font-family: "Microsoft Yahei UI";
    font-weight: 1 999;
    src: url("../font/Microsoft Yahei UI.ttf");
}

/* 主体 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 避免滚动条出现 */
}

/* 背景容器 */
.background {
    position: relative; /* 子元素定位基准 */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom left, #ff99e5, #ffffff);
    overflow: hidden;
}

/* 背景视频 */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* 最底层 */
}

/* 信息板 */
.info {
    position: relative; 
    width: 1200px;
    height: 675px;
    border-radius: 8px;
    box-shadow: 0 8px 8px 8px rgba(0,0,0,0.1), 0 6px 20px 0 rgba(0,0,0,0.1);
    z-index: 1; /* 在视频上 */
    display: flex; /* 用 flex 布局 */
    overflow: hidden;
}

/* 左右渐变覆盖层 */
.info .left-box,
.info .right-box {
    height: 100%;
    top: 0;
    position: relative;
    z-index: 2; /* 遮盖视频 */
}

/* 覆盖层渐变 */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 遮盖视频 */
    background: linear-gradient(to right, rgba(255, 189, 238, 0.555), rgba(255, 193, 193, 0.541)); /* 左粉右白透明 */
}


/* 倒计时内容 */
.info .time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5; /* 在左右框上方 */
    width: 100%;
}

.info .time .title {
    font-family: "SourceHanSansSC-Medium-2";
    color: white;
    letter-spacing: 2px;
    font-size: 24px;
}

.info .time .time-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 1000px;
    height: 300px;
    margin-bottom: 48px;
}

.info .time .time-box div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 20%;
    height: 80%;
}

/* --- 这里是修改的部分 --- */
.info .time .time-box div p {
    font-family: "Microsoft Yahei UI", bold;
    font-size: 128px;
    margin: 0;

    /* 新增/修改的属性 */
    color:  rgb(255, 255, 255); /* 1. 将字体颜色设置为透明 */
    -webkit-text-stroke: 3px rgba(255, 139, 139, 0.192); /* 2. 添加描边，宽度为3px，颜色为50%透明度的黑色 */
    text-stroke: 3px rgb(255, 255, 255); /* 标准写法，为了更好的兼容性 */
}
/* --- 修改结束 --- */

.info .time .time-box div span {
    color: rgb(255, 255, 255);
    font-size: 32px;
    letter-spacing: 8px;
    opacity: 0.8;
}

.info .time .sub-title {
    font-family: "Microsoft Yahei UI";
    color: rgb(255, 255, 255);
    font-size: 25px;
    letter-spacing: 4px;
    margin: 0;

    /* 新增/修改的属性 */
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.151); /* 2. 添加描边，宽度为3px，颜色为50%透明度的黑色 */
    text-stroke: 3px rgba(255, 255, 255, 0.212); /* 标准写法，为了更好的兼容性 */

}

.info .time .sub-title.tips {
    margin: 16px;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    user-select: none;
}
.lang-switch span {
    padding: 0 5px;
}
.lang-switch span:hover {
    text-decoration: underline;
}


/* 音乐按钮样式 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.music-control img {
    width: 50px;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(255, 137, 137, 0.226);
    padding: 5px;
    transition: transform 0.2s;
}

.music-control img:hover {
    transform: scale(1.1);
}
