/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
}

/* 容器样式 */
.container {
    width: 100%;
    text-align: center;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 40%;
    max-width: 600px; /* 最大宽度，防止内容过于宽 */
}

/* 图片样式 */
.border-img img {
    max-width: 100%;
    height: auto;
    border: 10px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: 0.1s;
}

.border-img img:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.btn-blue, .btn-music {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 20px;
    font-size: 16px;
    border-radius: 5px;
    outline: none;
    color: #fff;
    transition: 0.3s;
}

.btn-blue {
    background-color: #007bff;
    border: 2px solid #007bff;
}

.btn-blue:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.btn-music {
    background-color: #DB7093;
    border: 2px solid #DB7093;
    margin-top: 10px;
}

.btn-music:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* 定义外部容器 */
.module-container {
    position: relative;
    width: 80%; /* 可以根据需要调整宽度 */
    max-width: 1200px; /* 最大宽度，防止在大屏幕上过于宽 */
    margin: 0 auto; /* 水平居中 */
    padding: 20px;
    box-sizing: border-box;
}

/* 背景样式 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('../img/bg.jpg') no-repeat fixed;
    background-size: cover;
    z-index: -1;
}

/* 其他样式 */
.bg-user {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    transition: 0.3s;
}

.circle > img {
    border: 0px solid #fff;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    margin-top: -50px;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.circle > img:hover {
    animation: rotation 3s linear infinite;
}

.user-title {
    position: relative;
    display: inline;
    float: right;
    margin-top: -65px;
    margin-right: 100px;
    color: #000;
    font-size: 15px;
    font-weight: 500;
}

.user-qq {
    display: inline;
    float: right;
    margin-top: -30px;
    margin-right: 90px;
    font-size: 15px;
    font-weight: 300;
}

.top {
    margin-top: -10px;
    margin-left: -10px;
    margin-right: -10px;
}

.top > img {
    width: 100%;
    height: 200px;
    border: 0px solid #fff;
    border-radius: 15px;
}

.idcard {
    float: right;
    margin-top: -30px;
    margin-right: 45px;
}

.idcard > img {
    width: 40px;
    height: 13px;
}

.zan {
    position: relative;
    display: inline;
    float: right;
    margin-top: -75px;
    margin-right: -30px;
    transition: 0.5s;
}

.zan:hover {
    transform: scale(1.05) rotate(10deg);
}

.zan > img {
    height: 40%;
    width: 50%;
}

.sign-text, .sign-img {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 10px;
    cursor: default;
    transition: 0.3s;
}

.sign-text:hover, .sign-img:hover {
    color: #007bff;
    transform: scale(1.05);
}

/* 媒体查询，处理不同屏幕尺寸 */
@media (max-width: 768px) {
    .module-container {
        width: 90%;
    }

    .container {
        max-width: 400px;
    }

    .bg-user {
        padding: 15px;
    }

    .top > img {
        height: 150px;
    }

    .user-title, .user-qq {
        font-size: 14px;
    }

    .sign-text, .sign-img {
        font-size: 0.8rem;
    }

    .btn-blue, .btn-music {
        font-size: 14px;
        padding: 8px 15px;
    }
}
