/* 
 * 现代化主题样式 - 莫兰迪配色方案
 * 适用于阅卷系统所有页面
 * 配色理念：低饱和度、优雅沉稳、不失活力
 */

/* ==================== 全局样式 - 莫兰迪配色 ==================== */
:root {
    /* 莫兰迪主色系 - 雾霾蓝/灰紫色 */
    --primary-color: #8B9DC3;      /* 雾霾蓝 */
    --secondary-color: #9B8EA8;    /* 灰紫色 */
    --accent-color: #C5A6AB;       /* 豆沙粉 */
    
    /* 功能色 - 莫兰迪化 */
    --success-color: #88ACA5;      /* 雾绿 */
    --warning-color: #D4A574;      /* 驼色 */
    --danger-color: #C78C8C;       /* 砖红 */
    --info-color: #8BA7BF;         /* 烟蓝 */
    
    /* 中性色 */
    --dark-color: #4A5568;         /* 深灰蓝 */
    --light-color: #F5F5F0;        /* 米白 */
    --bg-overlay: #E8E6E1;         /* 浅灰米 */
    
    /* 文字色 */
    --text-primary: #3D4451;       /* 深灰 */
    --text-secondary: #6B7280;     /* 中灰 */
    --text-light: #9CA3AF;         /* 浅灰 */
    
    /* 其他 */
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #D4CFC9 0%, #B8AFA8 50%, #A69B94 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== 登录页面样式 ==================== */
.modern-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 背景动画粒子 - 柔和版 */
.modern-login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
    z-index: 0;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.modern-login-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.modern-login-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modern-login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.modern-form-group {
    margin-bottom: 20px;
    position: relative;
}

.modern-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.modern-input-wrapper {
    position: relative;
}

.modern-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.modern-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #D9D5D0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background: #FAFAF8;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 157, 195, 0.1);
    background: #fff;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.modern-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.modern-checkbox label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.modern-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.25);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 157, 195, 0.35);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

/* ==================== 主菜单页面样式 ==================== */
.modern-main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modern-main-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modern-main-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-overlay);
}

.modern-main-header h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modern-user-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.modern-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.modern-menu-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.modern-menu-item:hover::before {
    left: 100%;
}

.modern-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 157, 195, 0.3);
}

.modern-menu-item-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.modern-menu-item-text {
    font-size: 16px;
    font-weight: 600;
}

/* 不同颜色的菜单项 - 莫兰迪色系 */
.modern-menu-item.color-blue {
    background: linear-gradient(135deg, #8BA7BF 0%, #7A92A8 100%);
}

.modern-menu-item.color-green {
    background: linear-gradient(135deg, #88ACA5 0%, #739A93 100%);
}

.modern-menu-item.color-orange {
    background: linear-gradient(135deg, #D4A574 0%, #C0936A 100%);
}

.modern-menu-item.color-purple {
    background: linear-gradient(135deg, #C5A6AB 0%, #B4939A 100%);
}

/* ==================== 头部导航样式 ==================== */
.modern-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-overlay);
}

.modern-header-user {
    color: var(--text-secondary);
    font-size: 14px;
}

.modern-header-nav {
    display: flex;
    gap: 10px;
}

.modern-header-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-color);
    color: var(--text-primary);
}

.modern-header-btn:hover {
    background: var(--bg-overlay);
    transform: translateY(-1px);
}

/* ==================== 显示模式选择器现代化 ==================== */
.display-mode-selector {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.display-mode-selector label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 10px;
}

.display-mode-selector .mode-btn {
    background: white;
    border: 2px solid var(--bg-overlay);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-primary);
}

.display-mode-selector .mode-btn:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.display-mode-selector .mode-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.2);
}

/* ==================== 图片卡片现代化 ==================== */
.cc {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--bg-overlay);
}

.cc:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.ccc img {
    transition: var(--transition);
}

.cc:hover .ccc img {
    transform: scale(1.02);
}

/* ==================== 按钮现代化 - 莫兰迪色系 ==================== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B9DC3, #9B8EA8);
    box-shadow: 0 4px 15px rgba(139, 157, 195, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 157, 195, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #88ACA5, #739A93);
    box-shadow: 0 4px 15px rgba(136, 172, 165, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 172, 165, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #D4A574, #C0936A);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #8BA7BF, #7A92A8);
    box-shadow: 0 4px 15px rgba(139, 167, 191, 0.2);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 167, 191, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #C78C8C, #B47979);
    box-shadow: 0 4px 15px rgba(199, 140, 140, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 140, 140, 0.3);
}

/* ==================== 响应式设计 ==================== */
@media screen and (max-width: 768px) {
    .modern-login-box,
    .modern-main-box {
        padding: 30px 20px;
    }
    
    .modern-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== 加载动画 ==================== */
.modern-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 提示信息样式 - 莫兰迪色系 ==================== */
.modern-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-alert-success {
    background: #D8E5E3;
    color: #3D5550;
    border: 1px solid #C0D4D1;
}

.modern-alert-warning {
    background: #F2E8DC;
    color: #6B5E4E;
    border: 1px solid #E3D5C5;
}

.modern-alert-danger {
    background: #E8D8D8;
    color: #6B4D4D;
    border: 1px solid #D9C5C5;
}

/* ==================== 面板样式现代化 ==================== */
.panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--bg-overlay);
}

.panel-heading {
    background: linear-gradient(135deg, #8B9DC3, #9B8EA8);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}

/* ==================== 统计图表优化 - 莫兰迪色系 ==================== */
.stats-container {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--bg-overlay);
}

.progress-bar {
    transition: width 0.8s ease;
}

/* 5档评分色系 - 莫兰迪化 */
.grade-a-color { background: linear-gradient(90deg, #C78C8C, #D4A09F); }  /* 砖红 */
.grade-b-color { background: linear-gradient(90deg, #D4A574, #E0B68A); }  /* 驼色 */
.grade-c-color { background: linear-gradient(90deg, #88ACA5, #9EBFB8); }  /* 雾绿 */
.grade-d-color { background: linear-gradient(90deg, #8BA7BF, #A0B8CC); }  /* 烟蓝 */
.grade-e-color { background: linear-gradient(90deg, #9CA3AF, #B0B7C3); }  /* 灰色 */

/* 10档评分色系 - 莫兰迪化 */
.level-1 { background: linear-gradient(90deg, #C78C8C, #D09999); }
.level-2 { background: linear-gradient(90deg, #D4A574, #DCB386); }
.level-3 { background: linear-gradient(90deg, #D9B88E, #E0C59F); }
.level-4 { background: linear-gradient(90deg, #B4A89D, #C2B6AC); }
.level-5 { background: linear-gradient(90deg, #A4A098, #B2ADA5); }
.level-6 { background: linear-gradient(90deg, #95A39C, #A3B0AA); }
.level-7 { background: linear-gradient(90deg, #88ACA5, #96B8B2); }
.level-8 { background: linear-gradient(90deg, #8BA7BF, #99B4CB); }
.level-9 { background: linear-gradient(90deg, #8B9DC3, #99A9CD); }
.level-10 { background: linear-gradient(90deg, #9B8EA8, #A99BB4); }
