* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background: #f5f7fa;
    color: #333;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
}

.nav-menu a.active {
    color: #3498db;
}

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

/* 按钮通用样式 */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #2980b9;
}

button.del-btn {
    background: #e74c3c;
}

button.del-btn:hover {
    background: #c0392b;
}

button.active {
    background: #2980b9;
}

/* 登录页 */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-item input:focus {
    border-color: #3498db;
    outline: none;
}

.tips {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* 表单卡片 */
.form-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 表格卡片 */
.table-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.table-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

table th {
    background: #f5f7fa;
    color: #2c3e50;
}

.url {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 首页文章列表 */
.main-content h2 {
    margin: 20px 0;
    color: #2c3e50;
}

.article-list {
    display: grid;
    gap: 15px;
}

.article-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.article-card p {
    color: #666;
    margin-bottom: 5px;
}

.stats {
    font-size: 14px;
    color: #999;
}

.empty {
    text-align: center;
    padding: 50px;
    color: #999;
}

/* 加载中 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-card, .table-card {
        padding: 15px;
    }
}