/* OpenMenu 管理后台样式 - 移动端优先 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f6fa;
    -webkit-tap-highlight-color: transparent;
}

button, input, select { font-family: inherit; }

/* ============ 登录页 ============ */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo-img {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.login-logo h1 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.login-logo p {
    font-size: 12px;
    color: #999;
}

.login-form .form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-item input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-item input:focus {
    border-color: #667eea;
}

.error-msg {
    background: #fff2f0;
    color: #ff4d4f;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    border: 1px solid #ffccc7;
}

.btn-primary {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ 通用页面布局 ============ */
.app-header {
    height: 48px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    gap: 8px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    flex-shrink: 0;
}

.header-logo {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
}

.app-header h1 {
    flex: 1;
    text-align: center;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
}

.logout-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* ============ 用户头像下拉菜单 ============ */
.user-menu {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    display: none;
    z-index: 200;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.user-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.user-dropdown-role {
    font-size: 12px;
    color: #999;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: #f5f6ff;
    color: #667eea;
}

.user-dropdown-item.danger {
    color: #666;
}

.user-dropdown-item.danger:hover {
    background: #fff5f5;
    color: #ff4d4f;
}

.layout {
    display: flex;
    min-height: calc(100vh - 48px);
}

.sidebar {
    position: fixed;
    top: 48px;
    left: -240px;
    width: 240px;
    height: calc(100vh - 48px);
    background: #fff;
    border-right: 1px solid #eee;
    transition: left 0.25s;
    z-index: 90;
    display: flex;
    flex-direction: column;
}

.sidebar.open { left: 0; box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1); }

.sidebar nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-item.active {
    color: #667eea;
    background: #f5f6ff;
    border-left-color: #667eea;
    font-weight: 500;
}

.admin-info {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.admin-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.admin-role {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.main-content {
    flex: 1;
    padding: 12px;
    overflow-x: hidden;
}

/* ============ 搜索栏 ============ */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-bar input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.search-bar input:focus { border-color: #667eea; }

.search-bar select {
    height: 38px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    outline: none;
}

/* ============ 用户卡片 ============ */
.user-list, .business-list, .admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card, .business-detail-card, .admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.user-header, .admin-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    object-fit: cover;
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

.user-info, .admin-detail { flex: 1; min-width: 0; }

.user-name, .admin-title {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.user-meta, .admin-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.admin-sub { font-size: 12px; color: #999; margin-bottom: 4px; }

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.role-user { background: #e6f7ff; color: #1890ff; }
.role-business { background: #fff7e6; color: #fa8c16; }

.status { padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.status-1 { background: #f6ffed; color: #52c41a; }
.status-0 { background: #fff2f0; color: #ff4d4f; }

.user-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

/* ============ 商家卡片 ============ */
.business-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.section-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.business-card {
    padding: 8px 10px;
    background: #f9f9fc;
    border-radius: 6px;
    margin-bottom: 6px;
}

.biz-name {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.biz-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.biz-renew-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.biz-renew-btn:active {
    opacity: 0.7;
}

.audit-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.audit-0 { background: #fff7e6; color: #fa8c16; }
.audit-1 { background: #f6ffed; color: #52c41a; }
.audit-2 { background: #fff2f0; color: #ff4d4f; }

.expire-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #f0f0f0;
    color: #666;
}

.expire-tag.expired { background: #fff2f0; color: #ff4d4f; }

.business-detail-card .biz-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.biz-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.biz-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

.biz-title-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.biz-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.biz-info {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.biz-desc {
    color: #999;
    word-break: break-all;
}

.text-danger { color: #ff4d4f; }

.biz-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.btn-success, .btn-danger, .btn-default {
    flex: 1;
    height: 36px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-success { background: #52c41a; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-default { background: #f0f0f0; color: #666; }

.btn-success:disabled {
    background: #d9d9d9;
    color: #fff;
    cursor: not-allowed;
}

.audit-duration-row {
    width: 100%;
    margin-bottom: 8px;
}

.audit-btn-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.duration-select {
    width: 100%;
    height: 36px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    padding: 0 8px;
    background: #fff;
}

/* ============ 自定义弹窗 ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.25s ease;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.modal-icon.type-success { background: #52c41a; }
.modal-icon.type-warning { background: #faad14; }
.modal-icon.type-danger { background: #ff4d4f; }
.modal-icon.type-info { background: #1890ff; }

.modal-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modal-message {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.modal-extra {
    margin-bottom: 16px;
}

.modal-extra select {
    width: 100%;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    padding: 0 10px;
    background: #fff;
}

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

.modal-btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:active { opacity: 0.7; }

.modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-confirm {
    background: #1890ff;
    color: #fff;
}

.modal-btn-confirm.btn-success { background: #52c41a; }
.modal-btn-confirm.btn-danger { background: #ff4d4f; }

.modal-overlay.hide-cancel .modal-btn-cancel { display: none; }
.modal-overlay.hide-confirm .modal-btn-confirm { display: none; }

/* ============ Toast ============ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    max-width: 80%;
    text-align: center;
    line-height: 1.5;
}

.toast.show {
    opacity: 1;
}

/* ============ 仪表盘 ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.card-blue .stat-icon { background: #e6f0ff; }
.card-blue .stat-value { color: #2f7dff; }
.card-green .stat-icon { background: #e6f8ed; }
.card-green .stat-value { color: #23a55a; }
.card-orange .stat-icon { background: #fff3e6; }
.card-orange .stat-value { color: #f5a524; }
.card-purple .stat-icon { background: #f0e6ff; }
.card-purple .stat-value { color: #8b5cf6; }
.card-pink .stat-icon { background: #ffe6f0; }
.card-pink .stat-value { color: #ec4899; }
.card-red .stat-icon { background: #ffe6e6; }
.card-red .stat-value { color: #ef4444; }
.card-yellow .stat-icon { background: #fff9e6; }
.card-yellow .stat-value { color: #eab308; }
.card-teal .stat-icon { background: #e0f7f5; }
.card-teal .stat-value { color: #14b8a6; }
.card-indigo .stat-icon { background: #eef2ff; }
.card-indigo .stat-value { color: #6366f1; }

/* ============ 店铺管理 ============ */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input[type="text"] {
    flex: 1;
    min-width: 140px;
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.filter-bar select {
    height: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

.filter-bar .btn-search {
    height: 38px;
    padding: 0 16px;
    background: #2f7dff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-bar .btn-search:active {
    background: #1a66e6;
}

.biz-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.biz-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.biz-tag.status-active { background: #e6f8ed; color: #23a55a; }
.biz-tag.status-closed { background: #f3f4f6; color: #999; }
.biz-tag.audit-0 { background: #fff9e6; color: #eab308; }
.biz-tag.audit-1 { background: #e6f8ed; color: #23a55a; }
.biz-tag.audit-2 { background: #ffe6e6; color: #ef4444; }
.biz-tag.biz-tag-expired { background: #ffe6e6; color: #ef4444; }

.expired { color: #ef4444; }

.biz-info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.biz-info-label {
    color: #999;
    flex-shrink: 0;
    min-width: 70px;
}

.btn-action {
    height: 36px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 0 16px;
    background: #f0f0f0;
    color: #666;
}

.btn-action:active {
    opacity: 0.85;
}

.btn-action-primary {
    background: #2f7dff;
    color: #fff;
}

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

.batch-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.selected-count {
    font-size: 13px;
    color: #999;
}

.business-detail-card.selected {
    border: 2px solid #2f7dff;
    background: #f0f7ff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.btn-small {
    flex: none;
    width: auto;
    padding: 0 12px;
    height: 30px;
    font-size: 12px;
}

/* ============ Tabs ============ */
.tabs {
    display: flex;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 4px;
    gap: 4px;
}

.tab {
    flex: 1;
    height: 34px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab.active {
    background: #667eea;
    color: #fff;
    font-weight: 500;
}

/* ============ 操作栏 ============ */
.action-bar {
    margin-bottom: 12px;
}

.action-bar .btn-primary {
    width: auto;
    padding: 0 16px;
    height: 36px;
    font-size: 13px;
}

.admin-card .admin-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: flex-end;
}

.super-tag {
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============ 弹窗 ============ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 16px;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

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

.modal-actions button {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.modal-actions .btn-primary { width: auto; }

/* ============ 提示 ============ */
.loading-tip, .empty-tip {
    text-align: center;
    color: #999;
    padding: 32px 0;
    font-size: 13px;
}

/* ============ 桌面端适配 ============ */
@media (min-width: 768px) {
    .main-content { padding: 20px; max-width: 800px; margin: 0 auto; }

    .menu-toggle { display: none; }

    .sidebar {
        position: static;
        width: 220px;
        height: auto;
        box-shadow: none;
    }

    .app-header h1 { text-align: left; padding-left: 12px; }
}

/* ============ 表单弹窗样式 ============ */
.modal-box.form-modal {
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-input {
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus { border-color: #667eea; }

textarea.modal-input {
    height: auto;
    padding: 8px 10px;
    resize: vertical;
    min-height: 60px;
}

.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group label .required {
    color: #ff4d4f;
    margin-left: 2px;
}

/* ============ 图片上传 ============ */
.image-upload-area {
    width: 80px;
    height: 80px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #fafafa;
    transition: border-color 0.2s;
}

.image-upload-area:hover { border-color: #667eea; }

.image-upload-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-area .upload-placeholder {
    font-size: 24px;
    color: #ccc;
}

.image-upload-area .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============ 按钮行 ============ */
.btn-row {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    margin-top: 10px;
}

.btn-row .btn-action {
    flex: 1;
    height: 34px;
    font-size: 12px;
}

/* ============ 用户搜索结果列表 ============ */
.user-search-result {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-top: 8px;
}

.user-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s;
}

.user-search-item:last-child { border-bottom: none; }
.user-search-item:hover { background: #f5f6ff; }

.user-search-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-search-item .search-name {
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
}

.user-search-item .search-phone {
    font-size: 11px;
    color: #999;
}

.user-search-item .search-role {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ============ 管理员列表 ============ */
.admin-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.admin-list-item:last-child { border-bottom: none; }

.admin-list-item .admin-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-list-item .admin-name-sm {
    font-size: 13px;
    color: #333;
    flex: 1;
}

.admin-list-item .admin-role-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.admin-role-tag.owner { background: #fff7e6; color: #fa8c16; }
.admin-role-tag.admin { background: #e6f7ff; color: #1890ff; }
