/* ============================================================
   数据记录中心 - 全新现代化设计系统 v3.0
   卡片网格 | 消息流 | 活动流
   ============================================================ */

/* 禁用鼠标滑动选中文字 */
.records-content,
.modern-table-container,
.modern-audit-panel,
.modern-notify-panel,
.modern-behavior-panel {
    user-select: none;
}

/* ========== 现代化简约表格样式 ========== */

/* 内容区域容器 */
.records-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

/* 表格容器 */
.modern-table-container {
    width: 100%;
}

/* 表头 */
.modern-table-header {
    display: grid;
    align-items: center;
    padding: 14px 10px;
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* 表格行 */
.modern-table-row {
    display: grid;
    align-items: center;
    padding: 14px 10px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

/* 管理员审计日志 - 5列布局 */
.admin-logs-table .modern-table-header,
.admin-logs-table .modern-table-row {
    grid-template-columns: 1.2fr 1.2fr 3fr 1.2fr 1.2fr;
}

/* 消息统计中心 - 5列布局 */
.notification-stats-table .modern-table-header,
.notification-stats-table .modern-table-row {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr;
}

/* 用户行为分析 - 7列布局 */
.user-behavior-table .modern-table-header,
.user-behavior-table .modern-table-row {
    grid-template-columns: 1.2fr 1.2fr 2.5fr 2.5fr 1.2fr 1.2fr 1.2fr;
}

/* 统一列样式 - 表头和内容共用 */
.modern-table-header .table-col,
.modern-table-row .table-col {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

/* 内容行特有样式 */
.modern-table-row .table-col {
    font-size: 13px;
    color: #475569;
}

.modern-table-row .detail-text,
.modern-table-row .content-text,
.modern-table-row .target-text,
.modern-table-row .ip-text,
.modern-table-row .machine-text,
.modern-table-row .time-text,
.modern-table-row .title-text {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 表格行悬停效果 */
.modern-table-row:hover {
    background: #f8fafc;
}

.modern-table-row:last-child {
    border-bottom: none;
}

/* 表格列 - 使用flex比例分配 */
.table-col {
    padding-right: 16px;
    text-align: center;
}

.col-user {
    flex: 1.5 1 0;  /* flex-grow flex-shrink flex-basis */
    text-align: center;
}

.col-action {
    flex: 1.2 1 0;
    text-align: center;
}

.col-detail {
    flex: 3 1 0;
    text-align: center;
}

.col-content {
    flex: 2.5 1 0;
    text-align: center;
}

.col-target {
    flex: 2.5 1 0;
    text-align: center;
}

.col-title {
    flex: 2 1 0;
    text-align: center;
}

.col-type {
    flex: 1 1 0;
    text-align: center;
}

.col-ip {
    flex: 1.5 1 0;
    text-align: center;
}

.col-machine {
    flex: 2 1 0;
    text-align: center;
}

.col-status {
    flex: 0.8 1 0;
    text-align: center;
}

.col-time {
    flex: 1.8 1 0;
    text-align: center;
    padding-right: 0;
}

/* 用户单元格 */
.user-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.user-cell span {
    font-weight: 500;
    font-size: 13px;
    color: #1e293b;
}

/* 文本样式 */
.detail-text,
.content-text,
.target-text {
    font-size: 13px;
    color: #475569;
}

.title-text {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.ip-text {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* IP单元格样式 - 显示IP和归属地 */
.ip-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ip-cell .ip-text {
    font-size: 12px;
    color: #64748b;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.ip-cell .ip-location {
    font-size: 11px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    padding: 1px 6px;
    border-radius: 10px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.machine-text {
    font-size: 12px;
    color: #64748b;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.time-text {
    font-size: 12px;
    color: #94a3b8;
}

/* 空状态 */
.records-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.records-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.records-empty-text {
    font-size: 14px;
}


/* ========== 审计日志 - 卡片网格布局 ========== */

/* 集成式头部区域 */
.audit-header-integrated {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 10px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.audit-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.audit-header-title .records-header-info h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.audit-header-title .records-header-info p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
}

/* 筛选芯片容器 - 全部日志占两行布局 */
.audit-filter-chips {
    display: grid;
    grid-template-columns: 110px 1fr repeat(7, 130px);
    grid-template-rows: 50px 50px;
    gap: 10px;
    flex: 1;
}

/* 全部日志卡片占据第一列两行，110px×110px */
.audit-filter-chips .audit-chip:first-child {
    grid-row: 1 / 3;
    grid-column: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 110px;
    width: 110px;
    min-width: 110px;
    min-height: 110px;
}

.audit-filter-chips .audit-chip:first-child .chip-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.audit-filter-chips .audit-chip:first-child .chip-text-group {
    align-items: center;
}

.audit-filter-chips .audit-chip:first-child .chip-count {
    font-size: 14px;
}

/* 第1行卡片位置（第2-8个卡片） */
.audit-filter-chips .audit-chip:nth-child(2) { grid-column: 3; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(3) { grid-column: 4; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(4) { grid-column: 5; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(5) { grid-column: 6; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(6) { grid-column: 7; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(7) { grid-column: 8; grid-row: 1; }
.audit-filter-chips .audit-chip:nth-child(8) { grid-column: 9; grid-row: 1; }
/* 第2行卡片位置（第9-15个卡片） */
.audit-filter-chips .audit-chip:nth-child(9) { grid-column: 3; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(10) { grid-column: 4; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(11) { grid-column: 5; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(12) { grid-column: 6; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(13) { grid-column: 7; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(14) { grid-column: 8; grid-row: 2; }
.audit-filter-chips .audit-chip:nth-child(15) { grid-column: 9; grid-row: 2; }

/* 其他卡片统一样式 */
.audit-filter-chips .audit-chip:not(:first-child) {
    height: 50px;
    width: 130px;
    min-width: 130px;
    padding: 8px 12px;
}

/* 消息中心扁平化布局 - 使用高特异性选择器替代 !important */
html body .notify-flat-chips {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

html body .notify-flat-chips .audit-chip {
    height: 50px;
    padding: 8px 12px;
    gap: 10px;
    width: 130px;
    min-width: 130px;
    flex: none;
}

/* 全部消息卡片靠左，样式与其他卡片完全一致 */
html body .notify-flat-chips .audit-chip:first-child {
    margin-right: auto;
    flex-direction: row;
    min-height: auto;
    height: 50px;
    width: 130px;
    min-width: 130px;
    grid-row: auto;
    grid-column: auto;
}

html body .notify-flat-chips .audit-chip:first-child .chip-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

html body .notify-flat-chips .audit-chip:first-child .chip-text-group {
    align-items: flex-start;
}

html body .notify-flat-chips .audit-chip:first-child .chip-count {
    font-size: 15px;
}

/* 消息中心激活状态不缩放 */
html body .notify-flat-chips .audit-chip.chip-active {
    transform: translateY(-3px);
}

html body .notify-flat-chips .chip-text-group {
    align-items: flex-start;
}

html body .notify-flat-chips .chip-count {
    font-size: 15px;
}

html body .notify-flat-chips .chip-label {
    font-size: 12px;
}

.audit-chip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    min-width: 0;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
}

.audit-chip:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.audit-chip.chip-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 0 0 3px rgba(16, 185, 129, 0.15);
    transform: translateY(-3px) scale(1.02);
}

.audit-chip.chip-active::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.audit-chip.chip-active .chip-count,
.audit-chip.chip-active .chip-label {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.audit-chip.chip-active .chip-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* 消息中心图标缩小 */
html body .notify-flat-chips .audit-chip .chip-icon {
    width: 28px;
    height: 28px;
}

html body .notify-flat-chips .audit-chip .chip-icon .el-icon {
    font-size: 14px;
}

/* 数字+文字垂直容器 */
.audit-chip .chip-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.chip-count {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.chip-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.audit-header-actions {
    flex-shrink: 0;
}

/* ========== 用户行为分析 - 集成式头部 ========== */

.behavior-header-integrated {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 16px 10px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.behavior-filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

/* 统计卡片靠左，搜索区域靠右 */
.behavior-filter-controls .behavior-stat-card {
    margin-right: auto;
}

/* 搜索区域容器 */
.behavior-search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* 总操作记录卡片 */
.behavior-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.behavior-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.stat-card-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.stat-card-num {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-card-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.behavior-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 2px solid #e5e7eb;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .behavior-header-integrated {
        flex-wrap: wrap;
    }
    
    .behavior-filter-controls {
        order: 3;
        width: 100%;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
    }
    
    .behavior-header-right {
        margin-left: auto;
    }
    
    .audit-header-integrated {
        flex-wrap: wrap;
    }
    
    .audit-filter-chips {
        order: 3;
        width: 100%;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid #f1f5f9;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
    }
    
    .audit-filter-chips .audit-chip:first-child {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .audit-filter-chips {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .audit-chip {
        padding: 8px 6px;
        gap: 6px;
        height: 60px;
    }
    
    .audit-filter-chips .audit-chip:first-child {
        min-height: 128px;
    }
    
    .audit-filter-chips .audit-chip:first-child .chip-icon {
        width: 36px;
        height: 36px;
    }
    
    .audit-filter-chips .audit-chip:first-child .chip-count {
        font-size: 18px;
    }
    
    .chip-icon {
        width: 24px;
        height: 24px;
    }
    
    .chip-count {
        font-size: 14px;
    }
    
    .chip-label {
        display: none;
    }
}

/* 筛选卡片网格（备用） */
.audit-filter-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.audit-filter-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-filter-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.audit-filter-card.card-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
}

.audit-filter-card.card-active .filter-card-content .filter-card-count,
.audit-filter-card.card-active .filter-card-content .filter-card-label {
    color: white;
}

.audit-filter-card.card-active .filter-card-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.filter-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-bg-slate { background: linear-gradient(135deg, #64748b, #475569); }
.icon-bg-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.icon-bg-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.icon-bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-bg-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.icon-bg-purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.icon-bg-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.icon-bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.icon-bg-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.icon-bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.icon-bg-sky { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.icon-bg-lime { background: linear-gradient(135deg, #84cc16, #65a30d); }
.icon-bg-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.icon-bg-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.filter-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-card-count {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.filter-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.filter-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

@media (max-width: 1200px) {
    .audit-filter-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .audit-filter-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-card-count {
        font-size: 24px;
    }
}

.modern-audit-panel {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* Hero横幅 */
.audit-hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 60px -12px rgba(102, 126, 234, 0.5);
    position: relative;
    overflow: hidden;
}

.audit-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="smallGrid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23smallGrid)"/></svg>');
    opacity: 0.3;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-icon-container {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.icon-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.icon-bg-circle.circle-1 {
    width: 60px;
    height: 60px;
    animation: pulse1 3s ease-in-out infinite;
}

.icon-bg-circle.circle-2 {
    width: 80px;
    height: 80px;
    animation: pulse2 3s ease-in-out infinite 0.5s;
}

@keyframes pulse1 {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

@keyframes pulse2 {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0; }
}

.hero-icon {
    color: white;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.hero-text p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* 筛选控制栏 */
.audit-filter-bar {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-tags-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
    position: relative;
}

.filter-tag:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-tag.tag-active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-tag .tag-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

/* 日志卡片网格 */
.audit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.audit-log-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    animation: cardSlideIn 0.5s ease-out backwards;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audit-log-card:hover {
    border-color: #667eea;
    box-shadow: 0 12px 32px -8px rgba(102, 126, 234, 0.3);
    transform: translateY(-4px);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.action-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-badge.badge-blue { background: #dbeafe; color: #1e40af; }
.action-badge.badge-green { background: #d1fae5; color: #065f46; }
.action-badge.badge-red { background: #fee2e2; color: #991b1b; }
.action-badge.badge-orange { background: #fed7aa; color: #9a3412; }
.action-badge.badge-purple { background: #e9d5ff; color: #6b21a8; }
.action-badge.badge-cyan { background: #cffafe; color: #155e75; }
.action-badge.badge-gray { background: #f1f5f9; color: #475569; }
.action-badge.badge-default { background: #f3f4f6; color: #6b7280; }

.card-content-area {
    margin-bottom: 14px;
}

.content-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Consolas', monospace;
}

/* 分页器 */
.audit-pagination-zone {
    display: flex;
    justify-content: center;
}


/* ========== 消息统计 - 消息流布局 ========== */

.modern-notify-panel {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* Hero横幅 */
.notify-hero-banner {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 60px -12px rgba(6, 182, 212, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.deco-blob.blob-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.deco-blob.blob-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.deco-blob.blob-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.pulse-bell {
    color: white;
    animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50%, 100% { transform: rotate(0deg); }
}

.hero-text-block h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.hero-text-block p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-action {
    position: relative;
    z-index: 1;
}

/* 消息类型卡片 */
.notify-type-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.type-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.6s ease-out backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.type-card:hover {
    border-color: #06b6d4;
    transform: translateY(-6px);
    box-shadow: 0 16px 48px -8px rgba(6, 182, 212, 0.3);
}

.type-card.card-selected {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-color: #06b6d4;
    box-shadow: 0 20px 60px -12px rgba(6, 182, 212, 0.5);
    transform: translateY(-8px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.card-body {
    margin-bottom: 12px;
}

.card-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.card-footer {
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.card-desc {
    font-size: 12px;
    color: #94a3b8;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    transform: translateX(-100%);
}

.type-card:hover .card-shimmer {
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

/* 消息列表区域 */
.notify-list-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.message-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s;
    animation: messageSlideIn 0.4s ease-out backwards;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-item:hover {
    background: white;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.message-left {
    flex-shrink: 0;
}

.type-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.type-icon-box.icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.type-icon-box.icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.type-icon-box.icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.type-icon-box.icon-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.type-icon-box.icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.type-icon-box.icon-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.type-icon-box.icon-default { background: linear-gradient(135deg, #64748b, #475569); }

.message-content {
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.read-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.read-status.status-unread {
    color: #10b981;
}

.read-status.status-read {
    color: #94a3b8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.message-body {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.content-footer {
    display: flex;
    gap: 16px;
}

.time-stamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* 分页 - 样式继承自 admin-components.css 公共组件 */


/* ========== 用户行为 - 活动流布局 ========== */

.modern-behavior-panel {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* Hero横幅 */
.behavior-hero-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(139, 92, 246, 0.5);
}

.hero-background {
    position: absolute;
    inset: 0;
}

.bg-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-icon-group {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.rotating-icon {
    color: white;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-text-group h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.hero-text-group p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-text {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* 筛选面板 */
.behavior-filter-panel {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item-wide {
    grid-column: span 2;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

/* 活动流网格 */
.activity-stream-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.activity-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    animation: activitySlideIn 0.4s ease-out backwards;
}

@keyframes activitySlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-icon-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-circle.circle-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.icon-circle.circle-green { background: linear-gradient(135deg, #10b981, #059669); }
.icon-circle.circle-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-circle.circle-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.icon-circle.circle-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-circle.circle-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.icon-circle.circle-gray { background: linear-gradient(135deg, #64748b, #475569); }

.icon-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, #cbd5e1 0%, transparent 100%);
    margin: 8px 0;
}

.activity-content-column {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.activity-content-column:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-label {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.time-label {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Consolas', monospace;
}

.activity-body {
    margin-bottom: 12px;
}

.activity-body .target-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px 0;
    text-align: left;
}

.activity-body .detail-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Consolas', monospace;
}

/* 分页器 */
.behavior-pagination-zone {
    display: flex;
    justify-content: center;
}


/* ========== 响应式设计 ========== */

@media (max-width: 1400px) {
    .notify-type-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .audit-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 1024px) {
    .audit-hero-banner,
    .notify-hero-banner,
    .behavior-hero-banner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .notify-type-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .behavior-filter-panel {
        grid-template-columns: 1fr;
    }
    
    .filter-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .audit-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .notify-type-cards {
        grid-template-columns: 1fr;
    }
    
    .activity-card {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
    }
}
