/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

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

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 表单样式 */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* 表格样式 */
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 图片和视频样式 */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

video.card-img-top {
    height: auto;
}

/* 列表组样式 */
.list-group-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* 标签页样式 */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

/* 徽章样式 */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 0.25rem;
}

/* 上传表单样式 */
input[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 聚会详情页样式 */
.gathering-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/gathering-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.gathering-info {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 媒体文件样式 */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.media-item img, .media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.media-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* 参与者列表样式 */
.participant-list {
    max-height: 300px;
    overflow-y: auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .gathering-header {
        padding: 1.5rem 0;
    }
    
    .gathering-info {
        padding: 1rem;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .media-item img, .media-item video {
        height: 120px;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: 80px;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* 强制浅色模式，禁用深色模式自动适配 */
html {
    color-scheme: light only;
}

body {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.card, .gathering-info {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.table {
    color: #212529 !important;
    background-color: #ffffff !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05) !important;
} 