/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #3f51b5;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 主内容样式 */
main {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 20px;
    color: #3f51b5;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    margin-bottom: 10px;
    color: #666;
    font-size: 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #3f51b5;
}

/* 数据类型样式 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.type-card {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #bbdefb;
}

.type-card h3 {
    color: #1976d2;
    margin-bottom: 5px;
    font-size: 16px;
}

/* 快速链接样式 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.link-card {
    background-color: #f3e5f5;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #6a1b9a;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e1bee7;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* 筛选表单样式 */
.filter-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label {
    font-weight: bold;
    color: #666;
    white-space: nowrap;
}

.form-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3f51b5;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover:not(.disabled) {
    background-color: #303f9f;
}

.btn.disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
}

.btn.active {
    background-color: #1976d2;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #666;
}

.data-table tr:hover {
    background-color: #fafafa;
}

.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.type-sms {
    background-color: #2196f3;
}

.type-location {
    background-color: #4caf50;
}

.type-contact {
    background-color: #ff9800;
}

.type-photo {
    background-color: #9c27b0;
}

.data-content {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* 分页样式 */
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* 照片网格样式 */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-card {
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-thumbnail {
    height: 200px;
    overflow: hidden;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    padding: 15px;
}

.photo-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.photo-info strong {
    color: #333;
}

.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #1976d2;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid,
    .types-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th, .data-table td {
        padding: 8px;
    }
}