/**
 * Milano Eyes Fashion Reward System - Framework Navigation
 * 
 * 黑金风格导航框架样式
 * 
 * @package Milano_Eyes_Reward
 * @version 1.0.0
 */

/* 基础变量 */
:root {
    --mef-primary: #D4AF37; /* 金色 */
    --mef-primary-light: #E5C76B; /* 浅金色 */
    --mef-primary-dark: #A17C0A; /* 深金色 */
    --mef-background: #0A0A0A; /* 深黑色背景 */
    --mef-background-light: #1A1A1A; /* 稍浅黑色背景 */
    --mef-secondary: #C5A028; /* 深金色 */
    --mef-accent: #B8860B; /* 暗金色 */
    --mef-text: #FFFFFF; /* 白色文字 */
    --mef-text-secondary: #E0E0E0; /* 浅灰色文字 */
    --mef-text-muted: #999999; /* 灰色文字 */
    --mef-transition: all 0.3s ease; /* 过渡效果 */
    --mef-gold-gradient: linear-gradient(135deg, var(--mef-primary) 0%, var(--mef-primary-dark) 100%);
    --mef-gold-gradient-hover: linear-gradient(135deg, var(--mef-primary-light) 0%, var(--mef-primary) 100%);
}

/* 仪表盘容器 */
.mef-reward-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--mef-text);
    background: linear-gradient(145deg, rgba(12, 12, 12, 1) 0%, rgba(26, 26, 26, 1) 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin: 30px auto;
    max-width: 1200px;
}

/* 顶部金色装饰线 */
.mef-reward-dashboard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 1) 50%, rgba(212, 175, 55, 0) 100%);
    z-index: 5;
}

/* 顶部光晕效果 */
.mef-reward-dashboard::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.07) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    z-index: 1;
}

/* 仪表盘头部 */
.mef-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 10;
}

/* 标题和Logo */
.mef-logo h1 {
    color: var(--mef-text);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 15px;
}

.mef-logo h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: var(--mef-gold-gradient);
    border-radius: 2px;
}

/* 用户积分显示 */
.mef-user-points {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(20, 20, 20, 0.6);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mef-points-count {
    color: var(--mef-primary);
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mef-points-label {
    color: var(--mef-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* 主导航菜单 */
.mef-main-nav {
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.mef-main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.mef-main-nav ul::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.mef-main-nav li {
    margin: 0;
    position: relative;
}

.mef-main-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--mef-text-secondary);
    text-decoration: none;
    transition: var(--mef-transition);
    position: relative;
    font-weight: 500;
    font-size: 14px;
}

.mef-main-nav li a i {
    margin-right: 8px;
    font-size: 16px;
}

.mef-main-nav li a:hover {
    color: var(--mef-text);
}

/* 活动菜单项 */
.mef-main-nav li.active a {
    color: var(--mef-primary);
}

.mef-main-nav li.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--mef-gold-gradient);
    border-radius: 2px 2px 0 0;
}

/* 内容区域 */
.mef-content-area {
    padding: 30px;
    position: relative;
    z-index: 10;
    min-height: 400px;
}

/* 面板 */
.mef-panel {
    display: none;
}

.mef-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* 统计卡片区域 */
.mef-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mef-stat-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.6) 0%, rgba(30, 30, 30, 0.6) 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--mef-transition);
}

.mef-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mef-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.mef-stat-icon i {
    color: var(--mef-primary);
    font-size: 24px;
}

.mef-stat-content h3 {
    color: var(--mef-text);
    font-size: 24px;
    margin: 0 0 5px;
    font-weight: 600;
}

.mef-stat-content p {
    color: var(--mef-text-secondary);
    margin: 0;
    font-size: 14px;
}

/* 快捷操作区域 */
.mef-quick-actions {
    margin-bottom: 40px;
}

.mef-quick-actions h2 {
    color: var(--mef-text);
    font-size: 20px;
    margin: 0 0 20px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.mef-quick-actions h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: var(--mef-gold-gradient);
    border-radius: 2px;
}

.mef-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mef-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--mef-gold-gradient);
    color: #000 !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--mef-transition);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 5px rgba(212, 175, 55, 0.2);
}

.mef-action-button i {
    margin-right: 8px;
}

.mef-action-button:hover {
    background: var(--mef-gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), 0 0 10px rgba(212, 175, 55, 0.3);
}

.mef-action-button-secondary {
    background: transparent;
    color: var(--mef-primary) !important;
    border: 1px solid var(--mef-primary);
    box-shadow: none;
}

.mef-action-button-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
.mef-dashboard-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    position: relative;
    z-index: 10;
}

.mef-dashboard-footer p {
    color: var(--mef-text-muted);
    font-size: 12px;
    margin: 0;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mef-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .mef-user-points {
        margin-top: 15px;
        align-self: stretch;
        align-items: flex-start;
    }
    
    .mef-main-nav {
        padding: 0 10px;
    }
    
    .mef-main-nav li a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .mef-content-area {
        padding: 20px;
    }
    
    .mef-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .mef-action-buttons {
        flex-direction: column;
    }
    
    .mef-action-button {
        width: 100%;
    }
}
