* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 在CSS中添加bg-container的基本样式 */
#bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    filter: brightness(0.4);
    z-index: -1;
    transition: background-image 1.5s ease;
    background-position: center center;
    background-repeat: no-repeat;
}

.main-container {
    max-width: 1200px;
    width: 95%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 30px;
    position: relative;
    z-index: 1;
    gap: 40px;
}

/* 左侧区域 */
.left-column {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: all 0.4s ease;
    justify-content: center;
    margin: 0 auto;
}

/* 头像和名字区域 - 水平排列 */
.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

/* 修改关键样式部分 */
.avatar {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    border: 4px solid rgba(96, 165, 250, 0.4);
    overflow: hidden;
    /* 确保图片不会溢出 */
    position: relative;
    margin-right: 30px;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 60px rgba(96, 165, 250, 0.6);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 关键属性：保持比例填充容器 */
    object-position: center center;
    /* 确保图片居中显示 */
    display: block;
    /* 消除图片默认间隙 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 双重居中保障 */
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 3px 15px rgba(96, 165, 250, 0.4);
    margin-bottom: 8px;
    white-space: nowrap;
}

.title {
    font-size: 1.2rem;
    color: #cbd5e1;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* 社交图标区域 */
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    width: 100%;
    max-width: 360px;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.7rem;
    border: 2px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.bilibili:hover {
    color: #00a1d6;
    transform: translateY(-8px) scale(1.1);
}

.telegram:hover {
    color: #2aabee;
    transform: translateY(-8px) scale(1.1);
}

.steam:hover {
    color: #171a21;
    transform: translateY(-8px) scale(1.1);
}

.twitter:hover {
    color: #1da1f2;
    transform: translateY(-8px) scale(1.1);
}

.github:hover {
    color: #f0f6fc;
    transform: translateY(-8px) scale(1.1);
}

.email:hover {
    color: #ea4335;
    transform: translateY(-8px) scale(1.1);
}

/* 主容器居中调整 */
.main-container {
    justify-content: center;
    /* 新增 */
    align-items: center;
    /* 修改 */
    margin: 0 auto;
}

/* 右侧区域 */
.right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 简介区域 */
.description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 40px;
    padding: 35px 45px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    width: 100%;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.description:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #93c5fd, #60a5fa, #3b82f6);
    animation: borderGradient 5s infinite linear;
}

.description:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(96, 165, 250, 0.5);
}

/* 功能按钮区域 */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    margin: 20px auto 50px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 25px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(96, 165, 250, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 110px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    border-color: rgba(96, 165, 250, 0.4);
}

.nav-icon {
    font-size: 2.5rem;
    margin-right: 18px;
    transition: all 0.3s ease;
    width: 50px;
    text-align: center;
    color: #60a5fa;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2);
    color: #93c5fd;
}

.nav-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #e2e8f0;
}

.footer {
    text-align: center;
    font-size: 1rem;
    color: #93c5fd;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    width: 100%;
    max-width: 800px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 页脚链接样式 */
.footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 5px;
}

.footer a:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

/* 右上角控制按钮 */
.top-right-controls {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
}

.control-btn {
    background: rgba(15, 23, 42, 0.7);
    color: #93c5fd;
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.control-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.refresh-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* 背景查看模式样式 */
body.bg-view-mode .main-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body.bg-view-mode #bg-container {
    filter: brightness(1);
    transition: filter 0.5s ease;
}

/* 移动端菜单 - 电脑端隐藏 */
.mobile-menu-btn {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(15, 23, 42, 0.7);
    color: #93c5fd;
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 20;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mobile-menu-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #60a5fa;
    transform: scale(1.1);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    padding: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #cbd5e1;
    width: 100%;
    max-width: 400px;
    height: 90px;
    padding: 0 30px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(96, 165, 250, 0.2);
    margin: 15px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mobile-nav-item:hover {
    background: rgba(96, 165, 250, 0.15);
    transform: translateX(10px);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* 响应式设计 */
@media (max-width: 1000px) {
    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 20px;
    }

    .left-column {
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .avatar {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .name {
        font-size: 2.3rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1.1rem;
        padding: 25px;
        margin-bottom: 30px;
    }

    .social-icons {
        justify-content: center;
    }

    .buttons-grid {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        /* 移动端显示菜单按钮 */
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .description {
        padding: 20px;
        font-size: 1rem;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .mobile-nav-item {
        height: 80px;
        padding: 0 25px;
        max-width: 350px;
    }

    .nav-icon {
        font-size: 2rem;
    }

    .nav-text {
        font-size: 1.1rem;
    }

    .footer {
        font-size: 0.9rem;
    }
}