@font-face {
    font-family: 'DouyinSans';
    src: url('../font/DouyinSansBold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    background: url('../image/day/bj.jpeg') center/cover fixed;
    font-family: 'DouyinSans', sans-serif;
    position: relative; 
    transition: background-image 0.5s ease; 
}

/* 日间和夜间的文字颜色 */
body.day-mode {
    color: #fff; /* 日间文字颜色为黑色 */
}
body.night-mode {
    color: #000; /* 夜间文字颜色为白色 */
}

.container {
    flex: 1; /* 占据剩余空间 */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.content-box {
    background: rgb(255 255 255 / 0%);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(3px); /* 设置毛玻璃模糊效果 */
    border: 1px solid rgba(255,255,255,20%);
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0);
    width: 80%; /* 宽度为屏幕的 80% */
    max-width: 600px; /* 最大宽度不超过 600px */
    box-sizing: border-box; /* 确保 padding 和 border 包含在宽度内 */
}

/* 底部信息样式 */
.footer {
    width: 100%; /* 宽度占满整个页面 */
    padding: 10px 0; /* 上下内边距 */
    background-color: rgba(255, 255, 255, 0%); /* 背景颜色，可以根据需要调整透明度 */
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3; /* 行间距 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0); /* 增加文字阴影提升可读性 */
    backdrop-filter: blur(0px); /* 轻微背景模糊 */
}

.footer a {
    color: inherit; /* 继承 body 的文字颜色 */
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer a:hover {
    opacity: 0.8;
}

/* 图标容器样式 */
.icon-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* 图标之间的间距 */
    margin-top: 20px; /* 与上方内容的间距 */
    margin-bottom:20px;/* 与下方内容的间距 */
}

.icon-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.icon-links a:hover {
    transform: scale(1.5); /* 鼠标悬停时放大 */
}

/* 保留原有样式 */
.avatar {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    background: url('../favicon.ico') center/cover;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    display: block; /* 确保元素以块级显示 */
    /* margin: 0 auto; /* 水平居中 */
    transition: transform 0.6s ease-in-out; /* 新增旋转过渡效果 */
}

.avatar:hover {
    transform: rotate(360deg);
}

.title-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* 新增垂直居中 */
    transform: translateY(5%);
}

h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .content-box {
        width: 90%; /* 在小屏幕上宽度为 90% */
        max-width: 90%; /* 在小屏幕上最大宽度为 90% */
        padding: 1.5rem 2rem; /* 调整内边距 */
    }
}

/* 隔开文字上下间距 */
.spacing {
    margin-top: 10px; /* 上间距 */
    margin-bottom: 10px; /* 下间距 */
}