/* 奶娃后台样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f5f7;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* 顶栏 */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { font-size: 18px; font-weight: 600; }
.topbar-right a { margin-left: 10px; }
.user-info {
    font-size: 13px;
    color: #666;
    margin-right: 6px;
}
.role-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: #fff4e6;
    color: #fa8c16;
    border-radius: 4px;
    font-size: 11px;
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 24px auto;
    padding: 0 20px;
}
h3 { margin-bottom: 16px; font-size: 16px; }

/* 分类筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.filter-item {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.filter-item:hover { border-color: #07c160; color: #07c160; }
.filter-item.active { background: #07c160; border-color: #07c160; color: #fff; }
.filter-count {
    margin-left: 6px;
    padding: 1px 7px;
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 12px;
}
.filter-item.active .filter-count { background: rgba(255,255,255,0.3); }

/* 分类标签 */
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* 分页 */
.pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pagination .btn { min-width: 36px; text-align: center; }
.page-ellipsis { color: #999; padding: 0 4px; }
.page-info { color: #999; font-size: 13px; margin-left: 10px; }

/* 表格 */
.table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.table th, .table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
}
.table th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
    font-size: 13px;
}
.table .empty { text-align: center; color: #999; padding: 40px; }
.url-cell { color: #888; font-size: 12px; word-break: break-all; max-width: 260px; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; display: block; }

/* 表单卡片 */
.form-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 560px;
}
.form-row {
    margin-bottom: 18px;
}
.form-row > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #07c160;
}
.form-row input[type="file"] {
    font-size: 13px;
}
.hint { font-size: 12px; color: #aaa; margin: 8px 0 4px; }
.radio-line { margin-right: 18px; font-size: 14px; }
.radio-line input { margin-right: 4px; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.2s;
}
.btn:hover { border-color: #07c160; color: #07c160; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-primary { background: #07c160; border-color: #07c160; color: #fff; }
.btn-primary:hover { background: #06ad55; color: #fff; }
.btn-danger { color: #ff4d4f; border-color: #ffa39e; }
.btn-danger:hover { background: #fff1f0; border-color: #ff4d4f; color: #ff4d4f; }
.btn-block { display: block; width: 100%; text-align: center; }

/* 提示 */
.alert {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #fff1f0; border: 1px solid #ffa39e; color: #ff4d4f; }
.alert-success { background: #f0faf5; border: 1px solid #b7eb8f; color: #07c160; }

/* 登录页 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f4f5f7;
}
.login-box {
    background: #fff;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 340px;
}
.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 20px;
}
.login-box .form-row label { font-size: 13px; color: #666; }
