/* admin/public/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 毛玻璃效果容器 */
.admin-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    min-height: 100vh;
    margin: 20px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .admin-container {
        margin: 10px;
        border-radius: 15px;
    }
}

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

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* 管理后台布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* 侧边栏 */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.logo {
    padding: 2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: logoShine 3s infinite;
}

@keyframes logoShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover,
.nav-item.router-link-exact-active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #fff;
    transform: translateX(8px);
    box-shadow: -5px 0 15px rgba(255, 255, 255, 0.2);
}

.nav-item.router-link-exact-active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
}

.nav-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 4rem;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.header h2 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.header-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 0.9rem;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.content-wrapper {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    position: relative;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-buttons {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .status-actions {
        justify-content: center;
    }
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 仪表板样式 */
.dashboard {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashboard > * {
    position: relative;
    z-index: 1;
}



.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color-light), var(--card-color));
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover::after {
    opacity: 1;
}

.dashboard-card.users {
    --card-color: #667eea;
    --card-color-light: #764ba2;
}

.dashboard-card.properties {
    --card-color: #667eea;
    --card-color-light: #764ba2;
}

.dashboard-card.needs {
    --card-color: #667eea;
    --card-color-light: #764ba2;
}

.dashboard-card.services {
    --card-color: #667eea;
    --card-color-light: #764ba2;
}

.dashboard-card.activities {
    --card-color: #ef4444;
    --card-color-light: #f87171;
}

.dashboard-card.system {
    --card-color: #6b7280;
    --card-color-light: #9ca3af;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.dashboard-card-icon {
    font-size: 3rem;
    opacity: 0.8;
    background: linear-gradient(135deg, var(--card-color), var(--card-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.dashboard-card-title {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    position: relative;
}

.dashboard-card-value::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color), var(--card-color-light));
    border-radius: 2px;
}

.dashboard-card-trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.dashboard-card-trend.positive {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dashboard-card-trend.negative {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 动画效果 */
.dashboard-card {
    animation: cardFloat 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 脉冲动画 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

.dashboard-card.updating {
    animation: pulseGlow 1s ease-in-out;
}

/* 内容区域样式 */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.dashboard-charts,
.dashboard-recent {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-charts::before,
.dashboard-recent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.dashboard-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.dashboard-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

/* 概览网格 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.overview-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.overview-item:hover::before {
    transform: scaleX(1);
}

.overview-item:hover {
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.overview-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.overview-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 活动列表 */
.recent-activities {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.recent-activities::-webkit-scrollbar {
    width: 6px;
}

.recent-activities::-webkit-scrollbar-track {
    background: transparent;
}

.recent-activities::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--activity-color, #667eea);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.activity-item:hover::before {
    transform: scaleY(1);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-content {
    flex: 1;
    margin-left: 1rem;
}

.activity-action {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.activity-details {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--activity-color, #667eea), var(--activity-color-light, #764ba2));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.activity-icon.user {
    --activity-color: #10b981;
    --activity-color-light: #34d399;
}

.activity-icon.property {
    --activity-color: #f59e0b;
    --activity-color-light: #fbbf24;
}

.activity-icon.need {
    --activity-color: #3b82f6;
    --activity-color-light: #60a5fa;
}

.activity-icon.service {
    --activity-color: #8b5cf6;
    --activity-color-light: #a78bfa;
}

.activity-item:hover .activity-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 通知提示 */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    font-weight: 500;
    max-width: 300px;
    word-wrap: break-word;
}

.notification-success {
    background: #4CAF50;
}

.notification-error {
    background: #F44336;
}

.notification-warning {
    background: #FF9800;
}

.notification-info {
    background: #2196F3;
}

.notification-loading {
    background: #607D8B;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 悬停效果增强 */
.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.quick-action:hover .quick-action-title {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .header h2 {
        font-size: 1.2rem;
    }
    
    .dashboard-card-value {
        font-size: 1.8rem;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-charts {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.dashboard-recent {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-activities {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f8f9fa;
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
}

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

.activity-content {
    flex: 1;
}

.activity-action {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.activity-details {
    font-size: 0.8rem;
    color: #666;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.activity-icon.user {
    background: #E3F2FD;
    color: #2196F3;
}

.activity-icon.property {
    background: #FFF3E0;
    color: #FF9800;
}

.activity-icon.need {
    background: #E8F5E8;
    color: #4CAF50;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.quick-action {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    color: #1f2937;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.quick-action:hover::before {
    left: 100%;
}

.quick-action:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.quick-action:hover .quick-action-title {
    transform: translateY(-2px);
}

.quick-action-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    line-height: 1.4;
}

/* 通知样式 */
.notification-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    color: #1f2937;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    font-weight: 600;
    max-width: 350px;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notification-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.notification-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.notification-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.notification-loading {
    border-left: 4px solid #6b7280;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.dashboard-overview {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.overview-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.overview-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.overview-label {
    font-size: 0.8rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .admin-container {
        margin: 5px;
        border-radius: 15px;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-radius: 15px 15px 0 0;
    }
    
    .main-content {
        border-radius: 0 0 15px 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        border-radius: 0;
    }
    
    .content-wrapper {
        padding: 0.5rem;
    }
    
    .dashboard {
        margin: 0.5rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .header h2 {
        font-size: 1.5rem;
    }
    
    .header h2 {
        font-size: 1.4rem;
    }
    
    .dashboard-card {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-card-value {
        font-size: 2.5rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-action {
        padding: 1.5rem 1rem;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .overview-item {
        padding: 1.5rem 1rem;
    }
    
    .overview-value {
        font-size: 1.5rem;
    }
    
    .dashboard-charts,
    .dashboard-recent {
        padding: 2rem 1.5rem;
    }
    
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .dashboard-card {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-card-value {
        font-size: 2rem;
    }
    
    .dashboard-card-icon {
        font-size: 2rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 房源详情模态框样式 - 模仿小程序页面格式 */
.property-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.property-detail-container {
    width: 375px;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.detail-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.detail-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    background: #f5f5f5;
}

/* 图片轮播 */
.image-section {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f9fa;
}

.image-swiper {
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 价格和标题 */
.price-title-section {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
}

.price-unit {
    font-size: 0.9rem;
    color: #666;
}

/* 房源信息 */
.property-info-section {
    background: white;
    margin: 1rem 0;
    padding: 0;
}

.property-info {
    padding: 1.5rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.info-item .label {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
    width: 100px;
}

.info-item .value {
    font-size: 0.9rem;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* 房源特色 */
.features-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.features-item .label {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
    width: 100px;
}

.features-item .value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    margin-left: 1rem;
    justify-content: flex-end;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* 地址 */
.address-section {
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.location-icon {
    font-size: 1rem;
    color: #999;
    flex-shrink: 0;
}

.address {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* 详细描述 */
.description-section {
    background: white;
    margin: 1rem 0;
    padding: 0;
}

.description-title {
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.description-content {
    padding: 1rem 1.5rem 1.5rem;
}

.description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 审核信息 */
.audit-section {
    background: white;
    margin: 1rem 0;
    padding: 0;
}

.audit-title {
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.audit-content {
    padding: 1rem 1.5rem 1.5rem;
}

.audit-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.audit-item .label {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
    width: 100px;
}

.audit-item .value {
    font-size: 0.9rem;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #999;
    font-size: 1rem;
}

/* 状态样式 - 统一管理后台和详情弹窗 */
.status-pending {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-active {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-inactive {
    color: #95a5a6;
    background: rgba(149, 165, 166, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-unknown {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 响应式调整 */
@media (max-width: 480px) {
    .property-detail-overlay {
        padding-top: 2vh;
    }
    
    .property-detail-container {
        width: 90vw;
        max-width: 375px;
        max-height: 90vh;
    }
}

/* 滚动条样式 */
.detail-content::-webkit-scrollbar {
    width: 4px;
}

.detail-content::-webkit-scrollbar-track {
    background: transparent;
}

.detail-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}