/* 管理后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 14px;
}
a { color: #3498db; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部导航 */
.navbar {
    background: #2c3e50;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.navbar .brand { font-size: 16px; font-weight: 600; color: #fff; }
.navbar .user { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.navbar .user a { color: #bdc3c7; }
.navbar .user a:hover { color: #fff; text-decoration: none; }

/* 容器 */
.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }

/* 卡片 */
.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 24px;
    margin-bottom: 16px;
}
.card h2 { font-size: 18px; margin-bottom: 16px; color: #2c3e50; }
.card h3 { font-size: 16px; margin-bottom: 12px; color: #34495e; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn:hover { background: #2980b9; text-decoration: none; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #229954; }
.btn-warning { background: #f39c12; }
.btn-warning:hover { background: #d68910; }
.btn-default { background: #95a5a6; }
.btn-default:hover { background: #7f8c8d; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #34495e;
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=number],
.form-group input[type=datetime-local],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group .help { color: #95a5a6; font-size: 12px; margin-top: 4px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
table th, table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}
table th { background: #fafbfc; font-weight: 600; color: #34495e; font-size: 13px; }
table tr:hover { background: #fafbfc; }
table td.actions { white-space: nowrap; }

/* 提示 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* 标签徽章 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #ecf0f1;
    color: #34495e;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* 分页 */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #34495e;
    font-size: 13px;
}
.pagination a:hover { background: #ecf0f1; text-decoration: none; }
.pagination .active { background: #3498db; color: #fff; border-color: #3498db; }
.pagination .disabled { color: #bdc3c7; cursor: not-allowed; }

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.toolbar .search { display: flex; gap: 8px; }
.toolbar .search input { width: 240px; }

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}
.empty .icon { font-size: 48px; margin-bottom: 16px; }

/* 链接复制 */
.url-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}
.url-box code { flex: 1; word-break: break-all; }
