/**
 * sea-profile.css - 岛民海景房个人主页2.0样式
 * 配合mobile-beautify.css使用，提供个人主页专属样式
 */

/* ========== 隐藏重复的头像元素 ========== */
/* 隐藏页面顶部的 touxiang 区域（已在profile-card-v2中显示） */
.touxiang,
.touxiang .bTmg,
.touxiang .b2Tmg {
    display: none !important;
}

/* 隐藏 user_header 中的重复头像（已在profile-card-v2中显示） */
.user_header .user_avatar {
    display: none !important;
}

/* ========== 重新排版 - 统一容器 ========== */
.sea_M {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

/* ========== 用户头部区域（用户名+奶油值+编辑按钮） ========== */
.user_header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(252, 135, 155, 0.1);
    border: 1px solid rgba(252, 221, 224, 0.5);
    margin: 0 20px;
}

.user_header .user_info {
    flex: 1;
    padding: 0;
}

.user_header .user_info h1 {
    font-size: 32px;
    color: #c2185b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user_header .user_data {
    display: flex;
    gap: 30px;
}

.user_header .data_item {
    text-align: center;
}

.user_header .data_item .num {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
    display: block;
}

.user_header .data_item .label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.user_header .user_actions {
    margin-left: 20px;
}

.user_header .user_actions .btn {
    background: linear-gradient(135deg, #ff8aa7 0%, #e91e63 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.user_header .user_actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* ========== 个人资料卡 V2（头像+详细信息） ========== */
.profile-card-v2 {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin: 0 20px;
    box-shadow: 0 4px 20px rgba(252, 135, 155, 0.15);
    border: 1px solid rgba(252, 221, 224, 0.5);
}

.profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-wrapper.bili-avatar {
    width: 110px;
    height: 110px;
    border-color: #ff8aa7;
    z-index: 2;
}

.avatar-wrapper.local-avatar {
    width: 70px;
    height: 70px;
    margin-top: -35px;
    margin-left: 60px;
    border-color: #fcdde0;
    z-index: 1;
}

.info-section {
    flex: 1;
}

.info-section .username {
    display: none; /* 已在user_header中显示 */
}

.info-section .signature {
    font-size: 16px;
    color: #6a5a67;
    font-style: italic;
    margin: 0 0 15px;
    line-height: 1.6;
    padding: 12px 16px;
    background: #f9f5f6;
    border-radius: 12px;
    border-left: 3px solid #ff8aa7;
}

/* 标签区域 */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tags .tag {
    background: linear-gradient(135deg, #fdecef 0%, #fcdde0 100%);
    color: #c2185b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.meta-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 135, 155, 0.3);
}

.meta-tags .tag.accompany-tag {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
    color: #e91e63;
    border: 1px solid #ffc1d6;
    font-weight: 600;
}

.meta-tags .tag.accompany-tag:hover {
    background: linear-gradient(135deg, #ffe4ec 0%, #ffd1e1 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.bio-text {
    font-size: 13px;
    color: #6a5a67;
    line-height: 1.6;
    background: #f9f5f6;
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid #ff8aa7;
}

/* ========== 数据仪表盘 ========== */
.stats-dashboard {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin: 0 20px 20px;
    box-shadow: 0 4px 20px rgba(252, 135, 155, 0.15);
    border: 1px solid rgba(252, 221, 224, 0.5);
}

.stats-dashboard h2 {
    font-size: 18px;
    color: #2b2430;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #fff5f7 0%, #fdecef 100%);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(252, 135, 155, 0.25);
}

.stat-card.highlight {
    background: linear-gradient(135deg, #ff8aa7 0%, #e94f73 100%);
    color: #fff;
}

.stat-card.highlight .stat-label {
    color: rgba(255,255,255,0.9);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #c2185b;
    margin-bottom: 4px;
}

.stat-card.highlight .stat-num {
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #6a5a67;
}

.chart-container {
    background: #f9f5f6;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.chart-container h3 {
    font-size: 14px;
    color: #6a5a67;
    margin: 0 0 16px;
    text-align: center;
}

/* ========== 心情动态 ========== */
.moments-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    margin: 0 20px 20px;
    box-shadow: 0 4px 20px rgba(252, 135, 155, 0.15);
    border: 1px solid rgba(252, 221, 224, 0.5);
}

.moments-section h2 {
    font-size: 18px;
    color: #2b2430;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moment-composer {
    background: #f9f5f6;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.moment-composer textarea {
    width: 100%;
    min-height: 80px;
    border: 2px solid #fcdde0;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    background: #fff;
    transition: border-color 0.2s;
}

.moment-composer textarea:focus {
    outline: none;
    border-color: #ff8aa7;
}

.composer-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.btn-mood, .btn-publish {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mood {
    background: #fff;
    border: 2px solid #fcdde0;
    color: #6a5a67;
}

.btn-mood:hover {
    border-color: #ff8aa7;
    color: #ff8aa7;
}

.btn-publish {
    background: linear-gradient(135deg, #ff8aa7 0%, #e94f73 100%);
    color: #fff;
    font-weight: 600;
}

.btn-publish:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 79, 115, 0.3);
}

.mood-picker {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #fcdde0;
}

.mood-picker span {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.mood-picker span:hover {
    transform: scale(1.3);
    background: #f9f5f6;
}

.moments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.moment-item {
    background: #f9f5f6;
    border-radius: 16px;
    padding: 16px;
    border-left: 4px solid #ff8aa7;
    transition: transform 0.2s;
}

.moment-item:hover {
    transform: translateX(4px);
}

.moment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.moment-header .mood {
    font-size: 20px;
}

.moment-header .time {
    font-size: 12px;
    color: #a599a0;
}

.moment-content {
    font-size: 14px;
    color: #2b2430;
    line-height: 1.6;
    margin-bottom: 12px;
}

.moment-actions {
    display: flex;
    gap: 16px;
}

.moment-actions .likes {
    font-size: 13px;
    color: #e94f73;
    cursor: pointer;
}

.no-moments {
    text-align: center;
    padding: 40px;
    color: #a599a0;
    font-style: italic;
}

.view-all-moments {
    text-align: center;
    margin-top: 16px;
}

.view-all-moments a {
    color: #ff8aa7;
    text-decoration: none;
    font-weight: 500;
}

/* ========== 响应式适配 ========== */
@media screen and (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-section {
        flex-direction: row;
        gap: 0;
    }
    
    .avatar-wrapper.local-avatar {
        margin-left: -20px;
        margin-top: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meta-tags {
        justify-content: center;
    }
    
    .bio-text {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .profile-card-v2,
    .stats-dashboard,
    .moments-section {
        padding: 16px;
        margin: 0 8px 16px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px 8px;
    }
    
    .stat-num {
        font-size: 20px;
    }
}
