/* 现代化学术期刊UI样式 */

/* 基础颜色变量 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* 现代化卡片组件 */
.modern-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 现代化按钮 */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.modern-btn-primary {
    background: var(--primary-color);
    color: white;
}

.modern-btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    text-decoration: none;
}

.modern-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.modern-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 现代化标签 */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modern-badge-success {
    background: #dcfce7;
    color: #166534;
}

.modern-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.modern-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* 现代化网格布局 */
.modern-grid {
    display: grid;
    gap: 1.5rem;
}

.modern-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.modern-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 现代化文本样式 */
.modern-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.modern-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.modern-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modern-text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 现代化分隔线 */
.modern-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-medium), transparent);
    margin: 2rem 0;
}

/* 现代化容器 */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 现代化导航 */
.modern-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* 现代化侧边栏 */
.modern-sidebar {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* 现代化搜索框 */
.modern-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.modern-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.modern-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.modern-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .modern-container {
        padding: 0 1rem;
    }
    
    .modern-grid-2,
    .modern-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* 现代化加载状态 */
.modern-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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