/* 响应式容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 卡片式布局 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 导航栏样式优化 */
.navbar {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* 当前页面导航项高亮 */
.nav-item .nav-link.active {
    position: relative;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 5px;
}

.nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #4A90E2;
    border-radius: 2px;
}

/* 下拉菜单中的活动项 */
.dropdown-item.active {
    background-color: #4A90E2 !important;
    color: white !important;
}

/* 管理员入口按钮样式 */
.admin-entry-btn {
    background-color: #4A90E2;
    color: white !important;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.admin-entry-btn:hover {
    background-color: #357ABD;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 按钮样式优化 */
.btn-primary {
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 轮播图按钮样式 */
.nav-btn {
    margin: 0 5px;
}

.nav-btn i {
    margin-right: 4px;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary {
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: scale(1.05);
}

/* 表单元素样式 */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 页面内容区域 */
.content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}

/* 提示消息样式 */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* 背景渐变 */
.body-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-box, .form-control {
    width: 100%;
    padding: 10px 40px 10px 15px; /* 为图标留出空间 */
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box:focus, .form-control:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-box:hover, .form-control:hover {
    border-color: #4A90E2;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #4A90E2;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon-btn:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

/* 失物信息卡片样式 */
.lost-item-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.lost-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.lost-item-image {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.lost-item-content {
    padding: 20px;
}

.lost-item-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.lost-item-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.lost-item-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.empty-state-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

/* 统计卡片样式 */
.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 5px;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
}

/* 通用边距和填充 */
.mt-4, .my-4 {
    margin-top: 2rem !important;
}

.mb-4, .my-4 {
    margin-bottom: 2rem !important;
}

.pt-4, .py-4 {
    padding-top: 2rem !important;
}

.pb-4, .py-4 {
    padding-bottom: 2rem !important;
}

/* 热门搜索标签 */
.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hot-tag {
    background-color: #f0f7ff;
    color: #4A90E2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hot-tag:hover {
    background-color: #4A90E2;
    color: white;
}

/* 确保与badge类不冲突 */
.hot-tag.badge {
    background-color: #f0f7ff !important;
    color: #4A90E2 !important;
}

.hot-tag.badge:hover {
    background-color: #4A90E2 !important;
    color: white !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .btn-lg {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .hot-search-tags {
        justify-content: center;
    }
}