/* 个人中心样式 */

/* 主容器 */
.main-container {
    width: 1500px;
    max-width: 1500px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00823C;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 个人中心主体布局 */
.user-center-container {
    display: flex;
    gap: 30px;
    min-height: 600px;
}

/* 左侧边栏 */
.user-sidebar {
    width: 260px;
    height: fit-content;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 用户头像和昵称 */
.user-profiles {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, rgba(0,130,60,0.08) 0%, rgba(0,130,60,0) 100%);
}

.avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.user-avatars {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.avatar-container:hover .avatar-edit {
    opacity: 1;
}

.username {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-top: 12px;
}

/* 左侧菜单 */
.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.menu-item {
    padding: 4px 0;
    margin: 0 10px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.menu-item a i {
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: #888;
}

.menu-item:hover a {
    background-color: #f5f5f5;
    color: #00823C;
}

.menu-item:hover a i {
    color: #00823C;
}

.menu-item.active a {
    background-color: #f0f7f4;
    color: #00823C;
    font-weight: 500;
    border-left: 3px solid #00823C;
}

.menu-item.active a i {
    color: #00823C;
}

/* 右侧内容区 */
.user-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.content-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, #f9f9f9, #fff);
}

.content-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

/* 用户信息概览 */
.user-info-overview {
    padding: 25px;
}

/* 用户基本信息卡片 */
.user-basic-info {
    display: flex;
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 25px;
}

.avatar-section {
    margin-right: 40px;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 认证公司样式 */
.certified-company {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: #555;
    background-color: #f0f7ff;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e1efff;
    box-shadow: 0 2px 5px rgba(24, 144, 255, 0.1);
    font-weight: 500;
}

.verified-badge {
    margin-right: 6px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 2px rgba(24, 144, 255, 0.5));
}

.verified-icon {
    color: #1890ff;
    font-size: 18px;
    margin-right: 6px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 2px rgba(24, 144, 255, 0.5));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.edit-avatar-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-avatar-btn:hover {
    background-color: #f0f0f0;
    color: #00823C;
    border-color: #00823C;
}

.info-section {
    flex: 1;
}

.info-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 60px;
    font-size: 14px;
    color: #666;
    margin-right: 20px;
}

.info-value {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.edit-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn:hover {
    background-color: #eee;
    color: #00823C;
}

/* 用户数据概览卡片 */
.user-data-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.data-card {
    flex: 1;
    min-width: calc(25% - 15px);
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.data-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.data-card:hover::after {
    opacity: 1;
}

.data-card:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(0,130,60,0.1), rgba(0,130,60,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #00823C;
    font-size: 24px;
}

.data-content {
    flex: 1;
}

.data-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.data-label {
    font-size: 14px;
    color: #666;
}

.data-card .arrow-icon {
    opacity: 0;
    margin-left: 5px;
    font-size: 16px;
    color: #999;
    transition: opacity 0.3s, transform 0.3s;
}

.data-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(3px);
}

/* 会员等级卡片 */
.member-level-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.member-level-header {
    background: linear-gradient(to right, #FDB84E, #F6A623);
    padding: 15px 25px;
    color: #fff;
}

.member-level-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.member-level-content {
    padding: 25px;
}

.member-badge {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.member-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-image: linear-gradient(135deg, #FDB84E 0%, #F6A623 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 2px 6px rgba(246, 166, 35, 0.3);
}

.member-tag::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100px) rotate(20deg); }
    20% { transform: translateX(100px) rotate(20deg); }
    100% { transform: translateX(100px) rotate(20deg); }
}

.member-icon {
    width: 18px;
    height: 18px;
    background-image: url('../images/member-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    filter: brightness(0) invert(1);
}

.member-benefits {
    font-size: 14px;
    color: #666;
}

.member-progress {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #FDB84E, #F6A623);
    border-radius: 4px;
    transition: width 1s;
    box-shadow: 0 1px 3px rgba(246, 166, 35, 0.2);
}

.level-markers {
    display: flex;
    justify-content: space-between;
}

.level-mark {
    font-size: 12px;
    color: #999;
    position: relative;
}

.level-mark.active {
    color: #F6A623;
    font-weight: 500;
}

.level-mark::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 5px;
}

.level-mark.active::before {
    background-color: #F6A623;
    box-shadow: 0 0 4px rgba(246, 166, 35, 0.5);
}

.upgrade-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.view-benefits {
    color: #00823C;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.view-benefits:hover {
    color: #006e33;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .user-center-container {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .user-profile {
        padding: 15px;
    }

    .user-basic-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar-section {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .info-group {
        justify-content: center;
    }

    .user-data-overview {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
    }

    .content-header {
        padding: 15px;
    }

    .content-header h2 {
        font-size: 18px;
    }

    .user-info-overview {
        padding: 15px;
    }

    .user-basic-info {
        padding: 15px;
    }

    .level-markers {
        font-size: 10px;
    }

    .upgrade-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
} 