/* PingFang SC 字体引入 */
@font-face {
    font-family: 'PingFang SC';
    src: url('fonts/PingFangSC-Regular.woff2') format('woff2'),
         url('fonts/PingFangSC-Regular.woff') format('woff'),
         url('fonts/PingFangSC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingFang SC';
    src: url('fonts/PingFangSC-Medium.woff2') format('woff2'),
         url('fonts/PingFangSC-Medium.woff') format('woff'),
         url('fonts/PingFangSC-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingFang SC';
    src: url('fonts/PingFangSC-Semibold.woff2') format('woff2'),
         url('fonts/PingFangSC-Semibold.woff') format('woff'),
         url('fonts/PingFangSC-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC';
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.profile-header {
    position: relative;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: -1;
    border-radius: 30px;
    overflow: hidden;
}

.profile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 30px; /* 调整头像位置，使其盖住背景板一半 */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    /* font-weight: 600; */
    margin-bottom: 5px;
    margin-top: 35px; /* 调整标题位置 */

    color: black; /* 修改为更鲜明的白色 */
    font-family: '等线';
    /* 加上bankuang */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 增强文字阴影 */
}

.profile-subtitle {
    font-size: 17px;
    color: #c4c4c6;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); */
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: space-around;
    background-color: white;
    border-radius: 50px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 30px;
    width: 33.33%;
}

.nav-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-btn.active {
    background-color: #f0f0f0;
    color: #333;
    font-weight: 500;
}

/* 内容区域样式 */
main {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 功能卡片样式 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 功能卡片图标样式 */
.steam-icon {
    background-image: url('https://1813587405.v.123pan.cn/1813587405/21573597'); /* 完工效果图 */
}

.tools-icon {
    background-image: url('https://1813587405.v.123pan.cn/1813587405/21573596'); /* 选购水槽事项 */
}

.game-mod-icon {
    background-image: url('https://1813587405.v.123pan.cn/1813587405/21660084'); /* 小红书 */
}

.apple-icon {
    background-image: url(''); /* 选购水槽事项 */
}



/* 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #4a90e2;
    width: 30px;
    text-align: center;
}

.qr-code {
    margin-top: 20px;
    text-align: center;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code p {
    margin-top: 10px;
    color: #666;
}

/* 动态内容样式 */
.moments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moment-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.moment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.moment-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.moment-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.moment-info span {
    font-size: 12px;
    color: #999;
}

.moment-content {
    margin-bottom: 15px;
}

.moment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.moment-images img {
    width: calc(50% - 5px);
    border-radius: 8px;
    object-fit: cover;
}

.moment-actions {
    display: flex;
    gap: 15px;
}

.moment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.moment-actions button i {
    margin-right: 5px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-bg {
        height: 220px;
    }
    
    .profile-avatar {
        width: 150px;
        height: 150px;
    }
    
    .profile-name {
        margin-top: 60px;
    }
    
    .moment-images img {
        width: calc(33.33% - 5px);
    }
}

@media (max-width: 480px) {
    .nav-btn {
        padding: 8px 10px;
    }
    
    .nav-btn i {
        font-size: 18px;
    }
    
    .nav-btn span {
        font-size: 12px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-subtitle {
        font-size: 14px;
    }
}