/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #1a1a2e; /* 后备背景色 */
}

/* 背景层通用设置 */
.background,
.background2,
.yinghua {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* 让背景不影响点击 */
}

.background {
    background-image: url("https://yileila.top/index/img/background.png");
    z-index: -4;
}

.background2 {
    background-image: url("https://yileila.top/index/img/background2.png");
    z-index: -5;
}

.yinghua {
    background-image: url("https://yileila.top/index/img/yinghua.png");
    z-index: -1;
}

/* 卡片容器（居中，自适应宽度） */
.bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    z-index: 0;
}

.profileCard {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    /* 移除黑色背景和模糊效果 */
    background-color: transparent;
    backdrop-filter: none;
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


/* 头像区域 */
.logo1 {
    text-align: center;
    margin-top: -3rem;
    margin-bottom: 1rem;
}

.logo2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: cover;
}

.logo2:hover {
    transform: rotate(360deg);
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

/* 名字 */
.name {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: white;
    font-weight: 500;
    text-shadow: 0 0 12px white;
    margin-bottom: 1rem;
    transition: text-shadow 0.3s ease;
}

.name:hover {
    text-shadow: 0 0 25px white;
}

/* 口号框 */
.slogan {
    width: 90%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 0.8rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slogan:hover {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.slogan2 {
    color: white;
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.4;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 按钮区域 */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.button1 {
    flex: 1 1 180px;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.button1:hover {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px white;
    transform: translateY(-2px);
}

/* 页脚（不再绝对定位） */
.footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 立绘图片（响应式定位，鼠标跟随偏移用 transform） */
.lihui {
    position: fixed;
    bottom: 0;
    left: 5%;
    width: min(500px, 30%);
    max-width: 380px;
    height: auto;
    z-index: -2;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.3));
    transition: transform 0.05s linear;
}

/* 响应式断点 */
@media (max-width: 768px) {
    .profileCard {
        width: 95%;
        padding: 1rem;
    }

    .logo2 {
        width: 120px;
        height: 120px;
    }

    .logo1 {
        margin-top: -2rem;
    }

    .button1 {
        flex-basis: 140px;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    /* 平板及以下立绘缩小且不遮挡文字 */
    .lihui {
        width: min(400px, 35%);
        left: 2%;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .profileCard {
        padding: 0.8rem;
    }

    .logo2 {
        width: 100px;
        height: 100px;
    }

    .slogan {
        width: 95%;
        padding: 0.6rem;
    }

    .buttons {
        gap: 0.8rem;
    }

    .button1 {
        flex-basis: 100%;
        min-width: unset;
    }

    /* 手机上隐藏立绘，避免占用空间（若想保留可改为更小） */
    .lihui {
        display: none;
    }

    .footer {
        font-size: 0.7rem;
    }
}