/* =========================================================
   个人中心与用户空间专属样式 (融合全站统一白底架构)
   ========================================================= */

:root {
    --space-text-muted: #666;
    --space-text-sub: #444;
    --space-text-desc: #555;
    --space-text-light: #999;
    --space-bg-card: #2c2c2c; /* 调整为更柔和的深灰色黑块 */
    --space-bg-white: #ffffff;
}

/* 1. 顶部渐变资料大卡片 */
.head-container {
    min-height: 120px;
    padding: 24px 20px;
    margin-top: 0px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    /* 去除深重阴影，换成极轻微的弥散阴影以适应白底 */
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.15); 
}
@media screen and (max-width: 500px) {
    .head-container { padding: 20px 15px; }
}

/* 头像：高级微圆角 */
.head-container .avatar {
    border-radius: 16px !important; 
    width: 90px; /* 白底环境下稍微收敛一点尺寸更精致 */
    height: 90px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

.head-container .word {
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}
.head-container .username {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}
.head-container .word p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}
.head-container.profile-bg-active .word,
.head-container.profile-bg-active .username,
.head-container.profile-bg-active .word p {
    color: #fff !important;
}
.head-container.profile-bg-active .role-tag {
    color: #fff !important;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
}

/* 2. 极简选项卡菜单 (扁平化去阴影) */
.selector {
    display: block !important;
    padding: 0px 20px;
    background-color: #fff;
    border-radius: 8px;
    color: var(--space-text-sub);
    margin-bottom: 20px;
    border: 1px solid #eaeaea; /* 用扁平边框替代阴影嵌套 */
}
@media screen and (max-width: 500px) {
    .selector { padding: 0px 15px; }
}
.selector .select-item {
    display: inline-block;
    padding: 12px 0;
    margin-right: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: var(--space-text-muted);
    transition: all 0.2s ease;
}
.selector .select-item:hover {
    color: #34a853;
    border-bottom-color: rgba(52, 168, 83, 0.3);
}
.selector .router-link-active, 
.selector .select-item.active {
    color: #34a853 !important;
    border-bottom-color: #34a853 !important;
    font-weight: 600;
}

/* 3. 数据统计黑块排版 */
.card-block {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 0 0 20px 0;
    flex-wrap: wrap;
}
@media screen and (max-width: 500px) {
    .card-block { gap: 8px; padding: 0 0 15px 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .card-block::-webkit-scrollbar { display: none; }
}
.card-item {
    flex: 1;
    min-width: 140px;
    height: 130px; /* 稍微压缩高度使其更修长紧凑 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: var(--space-bg-card);
    color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    /* 白底上的黑块需要一点微弱阴影托底 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: #1a1a1a;
}
@media screen and (max-width: 500px) {
    .card-item { height: 95px; min-width: calc(25% - 6px); flex: 0 0 calc(25% - 6px); padding: 8px 4px; margin: 0; border-radius: 8px;}
}
.card-item .name { font-weight: 400; font-size: 13px; margin-bottom: 8px; opacity: 0.8; }
.card-item .value { font-weight: 600; font-size: 22px; margin-top: 4px; font-family: Arial, sans-serif; }
@media screen and (max-width: 500px) {
    .card-item .name { font-size: 11px; margin-bottom: 4px; }
    .card-item .value { font-size: 16px; }
}

/* 4. 底部信息承载容器 (扁平化去阴影) */
.readme {
    background-color: var(--space-bg-white);
    padding: 20px 25px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #eaeaea; /* 统一用浅边框 */
    color: var(--space-text-sub);
    line-height: 1.8;
}
@media screen and (max-width: 500px) {
    .readme { padding: 15px 20px; }
}
.readme p { margin: 0; font-size: 14px; color: var(--space-text-desc); }