* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #f7f8fa;
    min-height: 100vh;
    color: #1f2329;
    line-height: 1.6;
}

/* 登录页面样式 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 520px;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    padding: 48px 56px;
    border: 1px solid #e5e6eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.login-box h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 32px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}

.tab-buttons {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e6eb;
}

.tab-btn {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-secondary {
    background: #f5f5f5;
    border-color: #ddd;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #e0f2ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* 主页面布局 */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e6eb;
    padding: 18px 0;
    margin-bottom: 24px;
}

.header-content {
    width: min(92vw, 1600px);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #666;
}

.container {
    width: min(92vw, 1600px);
    margin: 0 auto;
    padding: 0 32px 48px;
}

/* 导航菜单 */
.nav-menu {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    background: #fff;
    color: #4b5563;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #e5e6eb;
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 内容卡片 */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #e5e6eb;
}

.card-title {
    font-size: 18px;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

table th,
table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
}

table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

table tr:hover {
    background: #f5f7fb;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-published {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 14px;
}

.action-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: min(420px, 92vw);
    padding: 28px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    border: 1px solid #e5e6eb;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 18px;
    color: #111827;
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #111827;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #e5e6eb;
    border-radius: 999px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
}

.pagination a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-box {
        padding: 32px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    table {
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

