/**
 * 会员中心 - 清新原生态风格
 * 原生态摄影网站会员中心 — 自然、清新、绿色基调
 */

/* ============================================
   1. 全局布局 - 清新浅色背景
   ============================================ */
.mc-body {
    background: #f5f7f2;
    color: #2c3e2d;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.mc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   2. 顶部导航栏 - 清新绿色
   ============================================ */
.mc-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(58, 125, 68, 0.1);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(44, 62, 45, 0.04);
}

.mc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2c3e2d;
    font-size: 18px;
    font-weight: 600;
}

.mc-navbar-brand img {
    height: 32px;
    width: auto;
}

.mc-navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mc-navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(58, 125, 68, 0.12);
}

.mc-navbar-name {
    color: #5a6e5c;
    font-size: 14px;
}

.mc-navbar-link {
    color: #5a6e5c;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.mc-navbar-link:hover {
    color: #3a7d44;
    background: rgba(58, 125, 68, 0.06);
}

/* ============================================
   3. 主体两栏布局
   ============================================ */
.mc-main {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

.mc-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.mc-content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   4. 侧边栏 - 用户卡片
   ============================================ */
.mc-user-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(58, 125, 68, 0.08);
    box-shadow: 0 2px 12px rgba(44, 62, 45, 0.05);
}

.mc-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(58, 125, 68, 0.1);
    margin-bottom: 12px;
}

.mc-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e2d;
    margin: 0 0 4px;
}

.mc-user-bio {
    font-size: 13px;
    color: #8a9a8c;
    margin: 0 0 16px;
    line-height: 1.4;
}

.mc-user-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(58, 125, 68, 0.06);
}

.mc-stat {
    text-align: center;
}

.mc-stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #3a7d44;
}

.mc-stat-label {
    font-size: 11px;
    color: #8a9a8c;
    letter-spacing: 0.5px;
}

/* ============================================
   5. 侧边栏 - 导航菜单
   ============================================ */
.mc-nav {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin-top: 16px;
    border: 1px solid rgba(58, 125, 68, 0.08);
    box-shadow: 0 2px 12px rgba(44, 62, 45, 0.05);
}

.mc-nav-group {
    padding: 8px 0 4px;
}

.mc-nav-title {
    font-size: 11px;
    color: #8a9a8c;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 4px;
    margin: 0;
    font-weight: 600;
}

.mc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #5a6e5c;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.mc-nav-item:hover {
    background: rgba(58, 125, 68, 0.04);
    color: #3a7d44;
}

.mc-nav-item.active {
    background: rgba(58, 125, 68, 0.08);
    color: #3a7d44;
    font-weight: 500;
}

.mc-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.mc-nav-item .mc-badge {
    margin-left: auto;
    background: #d94f4f;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mc-nav-divider {
    height: 1px;
    background: rgba(58, 125, 68, 0.06);
    margin: 4px 12px;
}

/* ============================================
   5.5 内容区 - 欢迎横幅
   ============================================ */
.mc-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    margin-bottom: 24px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(120deg, #2f6b3a 0%, #3a7d44 45%, #57a05f 100%);
    box-shadow: 0 8px 28px rgba(58, 125, 68, 0.28);
}

.mc-welcome::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.mc-welcome::after {
    content: '';
    position: absolute;
    right: 90px;
    bottom: -90px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.mc-welcome-body {
    position: relative;
    z-index: 1;
}

.mc-welcome-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.mc-welcome-wave {
    display: inline-block;
    animation: mc-wave 1.8s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes mc-wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(16deg); }
    20%, 40% { transform: rotate(-8deg); }
}

.mc-welcome-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.mc-welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mc-welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #2f6b3a;
    background: #fff;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mc-welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    color: #2f6b3a;
}

.mc-welcome-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.mc-welcome-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.mc-welcome-decor {
    position: relative;
    z-index: 1;
    font-size: 88px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

/* ============================================
   6. 内容区 - 统计卡片行
   ============================================ */
.mc-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mc-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(58, 125, 68, 0.08);
    box-shadow: 0 2px 12px rgba(44, 62, 45, 0.05);
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.mc-stat-card:hover {
    border-color: rgba(58, 125, 68, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 62, 45, 0.08);
    color: inherit;
}

.mc-stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.mc-stat-card-icon.blue { background: linear-gradient(135deg, rgba(58,125,68,.16), rgba(58,125,68,.06)); color: #3a7d44; }
.mc-stat-card-icon.red { background: linear-gradient(135deg, rgba(217,79,79,.14), rgba(217,79,79,.05)); color: #d94f4f; }
.mc-stat-card-icon.gold { background: linear-gradient(135deg, rgba(200,149,46,.16), rgba(200,149,46,.05)); color: #c8952e; }
.mc-stat-card-icon.green { background: linear-gradient(135deg, rgba(58,125,68,.16), rgba(58,125,68,.06)); color: #3a7d44; }

.mc-stat-card-num {
    font-size: 30px;
    font-weight: 800;
    color: #2c3e2d;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.mc-stat-card-label {
    font-size: 13px;
    color: #8a9a8c;
}

/* ============================================
   7. 内容区 - 快速操作
   ============================================ */
.mc-section {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(58, 125, 68, 0.08);
    box-shadow: 0 2px 12px rgba(44, 62, 45, 0.05);
}

.mc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e2d;
    margin: 0;
}

.mc-section-more {
    font-size: 13px;
    color: #3a7d44;
    text-decoration: none;
}

.mc-section-more:hover {
    text-decoration: underline;
}

/* 快速操作按钮 */
.mc-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mc-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 10px;
    background: rgba(58, 125, 68, 0.03);
    border: 1px solid rgba(58, 125, 68, 0.06);
    color: #5a6e5c;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.mc-action-btn:hover {
    background: rgba(58, 125, 68, 0.06);
    border-color: rgba(58, 125, 68, 0.15);
    color: #3a7d44;
}

.mc-action-btn i {
    font-size: 22px;
}

/* ============================================
   8. 作品网格
   ============================================ */
.mc-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mc-work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eef2e8;
}

.mc-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mc-work-item:hover img {
    transform: scale(1.05);
}

.mc-work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(44, 62, 45, 0.6));
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.mc-work-item:hover .mc-work-overlay {
    opacity: 1;
}

.mc-work-likes {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mc-work-likes i {
    color: #d94f4f;
}

.mc-empty-state {
    text-align: center;
    padding: 56px 24px;
    color: #8a9a8c;
    background: rgba(58, 125, 68, 0.02);
    border: 1px dashed rgba(58, 125, 68, 0.18);
    border-radius: 12px;
}

.mc-empty-state i {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
    color: rgba(58, 125, 68, 0.25);
}

.mc-empty-state p {
    font-size: 14px;
    margin: 8px 0 0;
}

/* ============================================
   9. 页脚
   ============================================ */
.mc-footer {
    text-align: center;
    padding: 24px;
    color: #8a9a8c;
    font-size: 12px;
    border-top: 1px solid rgba(58, 125, 68, 0.06);
    margin-top: 40px;
}

.mc-footer a {
    color: #5a6e5c;
    text-decoration: none;
}

/* ============================================
   10. 响应式
   ============================================ */
@media (max-width: 1024px) {
    .mc-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mc-works-grid { grid-template-columns: repeat(3, 1fr); }
    .mc-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .mc-welcome-decor { font-size: 64px; }
}

@media (max-width: 768px) {
    .mc-main { flex-direction: column; }
    .mc-sidebar { width: 100%; }
    .mc-stats-row { grid-template-columns: repeat(2, 1fr); }
    .mc-works-grid { grid-template-columns: repeat(2, 1fr); }
    .mc-welcome { flex-direction: column; align-items: flex-start; padding: 24px; }
    .mc-welcome-decor { display: none; }
    .mc-welcome-title { font-size: 20px; }
}
