/* ===== 全局消除滚动条（核心保留）===== */
html, body {
    padding: 0;
    margin: 0;
    overflow: hidden !important;
    height: 100% !important;
}

/* ===== 原有固定样式（完全保留）===== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

header {
    background-color: black;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

header ul {
    position: absolute;
    right: 5vw;
    top: 0;
    line-height: 80px;
    list-style: none;
}

h1 {
    color: white;
    position: absolute;
    left: 50px;
    top: 2px;
    width: 400px;
    height: 80px;
    line-height: 60px;
    background-image: url(../images/logo1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -9999px;
}

header li {
    display: inline;
    margin-right: 4vw;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* 底部按钮（对齐首页样式） */
footer a {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    border: 3px solid #ACACAC;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.5);
    text-align: center;
    z-index: 1000;
}

/* ===== 👇 核心修改：仅机器人右移 + 感谢语下移 ===== */
.about-page {
    padding: 80px 20px 20px;
    min-height: 100vh !important;
    background-image: url("../images/sanheguzhen2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative !important;
}

.about-container {
    width: 100%;
    max-width: 1000px !important;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 标题+副标题：保持不变（你没要求调整） */
.about-title {
    font-size: 32px;
    color: #d94848;
    text-align: center;
    margin-top: 10px !important;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.about-subtitle {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.about-content-row {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    justify-content: flex-start;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    width: 70% !important;
    align-content: start;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 25px 28px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #d94848;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.member-role {
    font-size: 15px;
    color: #d94848;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 6px;
}

.member-task {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.member-email {
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: auto;
}

.member-email i {
    color: #d94848;
    margin-right: 5px;
}

/* 🔥 1. 机器人仅右移：大小/上下位置不变，仅修改right值 */
.about-avatar-wrap {
    position: absolute !important;
    right: -140px !important; /* 从50px→120px，仅右移，其他不变 */
    top: 32% !important;           /* 保持原垂直位置 */
    transform: translateY(-50%) !important; /* 保持原垂直居中 */
    width: 500px !important;       /* 保持原大小 */
    height: 700px !important;      /* 保持原大小 */
    z-index: 2 !important;
}

.about-avatar-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

/* 🔥 2. 感谢语下移：增加margin-top，和卡片拉开间距 */
.thanks-message {
    text-align: center;
    margin-top: 60px !important; /* 从0px→20px，下移并拉开间距 */
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.thanks-message p {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

.thanks-message p:first-child {
    font-weight: 600;
    color: #d94848;
}

/* 移动端适配（保持兼容） */
@media (max-width: 768px) {
    .about-container {
        padding: 25px 20px;
        max-width: 90%;
    }
    .about-title {
        font-size: 28px;
        margin-top: 8px;
    }
    .team-grid {
        grid-template-rows: repeat(4, auto);
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    .about-content-row {
        flex-direction: column;
    }
    .about-avatar-wrap {
        position: relative !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 400px !important;
        margin: 20px auto;
    }
    .thanks-message {
        margin-top: 15px;
        padding: 18px 15px;
    }
}

/* ===== 介绍按钮样式 ===== */
#profile-intro-btn {
    display: block;
    margin: 40px auto 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: 'Microsoft YaHei', sans-serif;
    white-space: nowrap;
    width: fit-content;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

#profile-intro-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.6);
    background: linear-gradient(135deg, #5a9ef2, #3a4e60);
    animation: none;
}

#profile-intro-btn:active {
    transform: scale(0.98);
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

/* 确保在 about-container 中居中 */
.about-container #profile-intro-btn {
    margin-left: auto;
    margin-right: auto;
}

/* 固定位置按钮样式（备用方案） */
#profile-intro-btn[style*="fixed"] {
    position: fixed;
    bottom: 120px;
    right: 120px;
    z-index: 99999;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #profile-intro-btn {
        margin: 30px auto 20px;
        padding: 12px 30px;
        font-size: 16px;
    }
    
    #profile-intro-btn[style*="fixed"] {
        bottom: 80px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}