/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0066cc;
}

/* 主内容区样式 */
main {
    padding: 40px 0;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.article-item:hover {
    background-color: #f9f9f9;
}

.article-item h3 {
    margin-bottom: 10px;
}

.article-item h3 a {
    text-decoration: none;
    color: #0066cc;
}

.article-item .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.article-item .abstract {
    margin-bottom: 15px;
    color: #555;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    margin-bottom: 30px;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 10px 20px;
    border: none;
    background-color: #0066cc;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    margin-right: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* 登录/注册页面样式 */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-container h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* 后台管理样式 */
.admin-sidebar {
    width: 200px;
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #dee2e6;
    height: 100vh;
    position: fixed;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar ul li {
    margin-bottom: 10px;
}

.admin-sidebar ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.admin-sidebar ul li a:hover {
    background-color: #e9ecef;
    color: #0066cc;
}

.admin-content {
    margin-left: 220px;
    padding: 30px;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft {
    background-color: #e9ecef;
    color: #6c757d;
}

.status-submitted {
    background-color: #fff3cd;
    color: #856404;
}

.status-reviewing {
    background-color: #cce7ff;
    color: #004085;
}

.status-accepted {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-published {
    background-color: #d1ecf1;
    color: #0c5460;
}
/* ============ 新增组件样式 ============ */

/* 管理后台头部 */
.admin-header {
    background-color: #343a40;
    color: #fff;
}

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-grid .card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-num {
    font-size: 30px;
    font-weight: bold;
    color: #007bff;
    margin: 8px 0 12px;
}

/* 数据表格 */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.data-table thead tr {
    border-bottom: 2px solid #ddd;
}

.data-table tr:hover {
    background-color: #fafafa;
}

/* 通知列表 */
.notification-list {
    list-style: none;
    margin-top: 16px;
}

.notification-list li {
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}

.notification-list li.unread {
    background-color: #eef5ff;
    border-color: #cce0ff;
}

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-time {
    font-size: 12px;
    color: #888;
}

.notification-body {
    margin: 8px 0;
    color: #444;
    line-height: 1.7;
}

.notification-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.alert-error {
    background-color: #fdecea;
    color: #a4262c;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

/* 编辑意见框 */
.note-box {
    margin-top: 6px;
    padding: 10px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    font-size: 13px;
}

/* 按钮补充 */
.btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* 复选框行 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
}

/* 详情折叠 */
details summary {
    cursor: pointer;
    color: #0066cc;
    font-size: 13px;
}

/* 侧边栏高亮 */
.admin-sidebar ul li a.active {
    background-color: #0066cc;
    color: #fff;
}

/* 审稿指派状态 */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-accepted {
    background-color: #cce7ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-declined {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-revised {
    background-color: #fff3cd;
    color: #856404;
}

/* 移动端适配表格 */
@media (max-width: 768px) {
    .admin-content {
        margin-left: 0;
        padding: 16px;
    }
    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    .admin-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .admin-sidebar ul li {
        margin-bottom: 0;
    }
}

/* 导航点击区域优化 */
nav ul li a {
    padding: 8px 10px;
    border-radius: 6px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #eef4fb;
}

.footer-column ul li a {
    padding: 2px 0;
    display: inline-block;
}
