/* ========================================
   意中婚恋 - 管理后台样式
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* ===== CSS Variables ===== */
:root {
    --primary: #E54D42;
    --primary-light: #FF6B6B;
    --primary-dark: #C0392B;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --purple: #9B59B6;
    --cyan: #1ABC9C;
    --bg-dark: #001529;
    --bg-sidebar: #001529;
    --sidebar-active: #E54D42;
    --border: #e8e8e8;
    --text: #333;
    --text-light: #999;
    --text-white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
}

/* ===== Login Page ===== */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    width: 900px;
    min-height: 520px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-left {
    width: 420px;
    background: linear-gradient(135deg, #E54D42 0%, #C0392B 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand { text-align: center; color: #fff; }

.brand .logo {
    width: 200px;
    height: 200px;
    background: transparent;  /* 去掉背景色 */
    border-radius: 0;         /* 去掉圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: none;    /* 去掉模糊效果 */
    overflow: hidden;
}

.brand .logo img {
    width: 120%;
    height: 120%;
    object-fit: contain;
    padding: 0;
    box-sizing: border-box;
}

.brand h1 { font-size: 28px; margin-bottom: 8px; }
.brand .subtitle { font-size: 14px; opacity: 0.9; margin-bottom: 24px; }
.brand .desc { font-size: 13px; opacity: 0.7; margin-bottom: 32px; }

.features { text-align: left; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    opacity: 0.9;
}

.feature-icon { font-size: 18px; }

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form { width: 100%; max-width: 320px; }
.login-form h2 { font-size: 24px; color: #333; margin-bottom: 8px; }
.login-tip { color: #999; font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-row {
    display: flex;
    flex-direction: row;
    gap: 0;
}
.form-row .form-group {
    margin-bottom: 16px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(229,77,66,0.1);
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
}

.input-icon { font-size: 16px; opacity: 0.4; }

.toggle-pwd {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.4;
    user-select: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.forgot { color: var(--primary); text-decoration: none; }

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229,77,66,0.4);
}

.login-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 32px;
}

/* ===== Dashboard Layout ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    font-size: 24px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-brand small {
    display: block;
    font-size: 11px;
    opacity: 0.6;
    font-weight: 400;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.menu-group {
    margin-bottom: 4px;
}

.menu-group-title {
    padding: 8px 20px 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    gap: 10px;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.menu-item.active {
    color: #fff;
    background: rgba(229,77,66,0.15);
    border-left-color: var(--primary);
}

.menu-item .menu-icon { font-size: 16px; width: 20px; text-align: center; }
.menu-item .menu-label { flex: 1; white-space: nowrap; }

.menu-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.menu-sub {
    display: none;
    background: rgba(0,0,0,0.15);
}

.menu-sub.show { display: block; }

.menu-sub .menu-item {
    padding-left: 52px;
    font-size: 13px;
}

.sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
}

.sidebar-user .user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sidebar-user .user-info {
    flex: 1;
    white-space: nowrap;
}

.sidebar-user .user-name { font-size: 13px; }
.sidebar-user .user-role { font-size: 11px; opacity: 0.6; }

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Top Header ===== */
.top-header {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: #333; font-weight: 500; }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-icon:hover { background: #f5f5f5; }

.header-icon .dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.header-user:hover { background: #f5f5f5; }

.header-user .avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.header-user .name { font-size: 14px; }

/* ===== Page Content ===== */
.page-content {
    flex: 1;
    padding: 24px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card .stat-icon.blue { background: rgba(52,152,219,0.1); }
.stat-card .stat-icon.red { background: rgba(229,77,66,0.1); }
.stat-card .stat-icon.green { background: rgba(39,174,96,0.1); }
.stat-card .stat-icon.orange { background: rgba(243,156,18,0.1); }
.stat-card .stat-icon.pink { background: rgba(232,67,147,0.1); }
.stat-card .stat-icon.purple { background: rgba(155,89,182,0.1); }
.stat-card .stat-icon.purple { background: rgba(155,89,182,0.1); }

.stat-info h3 { font-size: 24px; font-weight: 700; color: #333; }
.stat-info p { font-size: 13px; color: #999; margin-top: 4px; }
.stat-info .trend { font-size: 12px; margin-top: 4px; }
.stat-info .trend.up { color: var(--success); }
.stat-info .trend.down { color: var(--danger); }

/* ===== Chart Containers ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-card h4 { font-size: 16px; font-weight: 600; }

.chart-tabs {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 2px;
}

.chart-tab {
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.chart-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Simple CSS Charts */
.line-chart {
    height: 240px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.line-chart .bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.line-chart .bar {
    width: 100%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    transition: height 0.6s ease;
    min-height: 8px;
}

.line-chart .bar.secondary {
    background: linear-gradient(180deg, #3498DB, #5DADE2);
}

.line-chart .bar-label {
    font-size: 11px;
    color: #999;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.chart-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.chart-legend .legend-primary::before { background: var(--primary); }
.chart-legend .legend-secondary::before { background: #3498DB; }

/* Donut Chart */
.donut-chart-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.donut-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        #E54D42 0deg 108deg,
        #3498DB 108deg 198deg,
        #27AE60 198deg 270deg,
        #F39C12 270deg 324deg,
        #9B59B6 324deg 360deg
    );
    position: relative;
}

.donut-chart::after {
    content: '3,256';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.donut-legend { flex: 1; }

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.donut-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.donut-legend-item .label { color: #666; display: flex; align-items: center; }
.donut-legend-item .value { font-weight: 600; color: #333; }
.donut-legend-item .percent { color: #999; font-size: 12px; margin-left: 4px; }

/* ===== Data Tables ===== */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}

.table-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-card .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.table-card h4 { font-size: 16px; font-weight: 600; }

.btn-sm {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: #fff;
    color: #666;
    transition: all 0.2s;
}

.btn-sm:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-sm.primary:hover { background: var(--primary-dark); }

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 12px 20px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

table tr:hover td { background: #fafafa; }

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 8px;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active { background: rgba(39,174,96,0.1); color: #27AE60; }
.status-badge.pending { background: rgba(243,156,18,0.1); color: #F39C12; }
.status-badge.inactive { background: rgba(149,165,166,0.1); color: #95A5A6; }
.status-badge.vip { background: rgba(229,77,66,0.1); color: #E54D42; }
.status-badge.matchmaker { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.status-badge.member { background: rgba(219,39,119,0.1); color: #db2777; }
.status-badge.warn { background: rgba(217,119,6,0.1); color: #d97706; }

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions a {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.table-actions a:hover { text-decoration: underline; }
.table-actions a.danger { color: var(--danger); }

/* ===== Activity List ===== */
.activity-list { padding: 0; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    cursor: pointer;
}

.activity-item:hover { background: #fafafa; }
.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.red { background: var(--danger); }
.activity-dot.blue { background: var(--info); }
.activity-dot.green { background: var(--success); }
.activity-dot.orange { background: var(--warning); }

.activity-text { flex: 1; font-size: 13px; }
.activity-text strong { color: #333; }
.activity-text .highlight { color: var(--primary); }

.activity-time { font-size: 12px; color: #999; white-space: nowrap; }

/* ===== Pagination ===== */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

.table-footer .total { font-size: 13px; color: #999; }

.pagination {
    display: flex;
    gap: 4px;
}

.pagination .page {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.pagination .page:hover { background: #f5f5f5; }
.pagination .page.active { background: var(--primary); color: #fff; }

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus { border-color: var(--primary); }

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #fff;
    cursor: pointer;
}

.filter-btn-group {
    display: flex;
    gap: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
}

.filter-btn-tab {
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: #fff;
    color: #666;
    transition: all 0.2s;
    border-right: 1px solid #d9d9d9;
}

.filter-btn-tab:last-child { border-right: none; }
.filter-btn-tab.active { background: var(--primary); color: #fff; }
.filter-btn-tab:hover:not(.active) { background: #f5f5f5; }

/* ===== Common Utilities ===== */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }

.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 4px;
}

.tag.verified { background: rgba(39,174,96,0.1); color: #27AE60; }
.tag.unverified { background: rgba(149,165,166,0.1); color: #95A5A6; }

/* ===== RBAC 角色权限管理 ===== */
.rbac-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.rbac-tab {
    padding: 8px 18px;
    border: 1px solid #d9d9d9;
    border-radius: 6px 6px 0 0;
    background: #fafafa;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: none;
    margin-bottom: -1px;
}

.rbac-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.rbac-tab.active {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
    border-bottom: 1px solid #fff;
    font-weight: 600;
}

.rbac-panel {
    animation: fadeIn 0.2s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .charts-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #bfbfbf; }

/* ===== Quick Stats Mini Cards ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 20px;
}

.quick-stat {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
}

.quick-stat .qs-value { font-size: 20px; font-weight: 700; color: #333; }
.quick-stat .qs-label { font-size: 12px; color: #999; margin-top: 4px; }
.quick-stat .qs-change { font-size: 11px; margin-top: 2px; }
.quick-stat .qs-change.up { color: var(--success); }
.quick-stat .qs-change.down { color: var(--danger); }

/* ===== Order Table ===== */
.order-amount { font-weight: 600; color: #333; }
.order-type { color: #666; }
.order-time { color: #999; font-size: 12px; }

/* ===== Toast Animation ===== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== Modal 弹窗样式 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

/* 手动匹配弹窗使用 modal-content 类 */
.modal-content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f5f5f5;
    color: var(--text);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* 查看详情样式 */
.detail-row {
    display: flex;
    padding: 8px 0;
}

.detail-label {
    width: 80px;
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
}

.detail-value {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    word-break: break-all;
}

.detail-label {
    width: 100px;
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-badge.active {
    background: #e8f5e9;
    color: var(--success);
}

.status-badge.pending {
    background: #fff3e0;
    color: var(--warning);
}

.status-badge.vip {
    background: #fce4ec;
    color: #e91e63;
}

.status-badge.inactive {
    background: #f5f5f5;
    color: var(--text-light);
}

.status-badge.matchmaker {
    background: #e8f0fe;
    color: #8b5cf6;
}

.status-badge.member {
    background: #fff0f4;
    color: #db2777;
}

.status-badge.warn {
    background: #fef3c7;
    color: #d97706;
}

/* ===== 会员详情Tab样式 ===== */
.member-tab {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    user-select: none;
}

.member-tab:hover {
    color: #e8294c;
    background: rgba(232, 41, 76, 0.03);
}

.member-tab.active {
    color: #e8294c;
    border-bottom-color: #e8294c;
    font-weight: 600;
}

.member-tab-content {
    padding: 0;
    animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 详情行样式 */
.detail-row {
    display: flex;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    width: 80px;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 13px;
    color: #333;
}

/* ===== 退出登录按钮 ===== */
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 8px 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, .06);
}
