/* 双选会页面专用样式 */

/* 页面头部 */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 筛选区域 */
.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
}

/* 平铺筛选项样式 */
.list-header {
    width: 100%;
}

.list-header .filter-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.list-header .filter-group:last-child {
    margin-bottom: 0;
}

.list-header .filter-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

.list-header .filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.list-header .filter-option {
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.list-header .filter-option:hover {
    background: #e6f7ff;
    color: #1890ff;
}

.list-header .filter-option.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

.btn-search {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-search:hover {
    background: #0056b3;
}

/* 双选会列表 */
.fairs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fair-item {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fair-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.fair-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fair-date .day {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.fair-date .month-year {
    margin-top: 10px;
}

.fair-date .month {
    font-size: 1.1em;
    font-weight: bold;
}

.fair-date .year {
    font-size: 0.9em;
    opacity: 0.9;
}

.fair-content {
    flex: 1;
    padding: 20px;
}

.fair-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.fair-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
    flex: 1;
}

.fair-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 15px;
}

.status-0 { /* 已取消 */
    background: #dc3545;
    color: white;
}

.status-1 { /* 未开始 */
    background: #ffc107;
    color: #212529;
}

.status-2 { /* 进行中 */
    background: #28a745;
    color: white;
}

.status-3 { /* 已结束 */
    background: #6c757d;
    color: white;
}

.fair-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95em;
}

.meta-item i {
    color: #007bff;
    width: 16px;
}

.fair-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.fair-description p {
    margin: 0;
}

.fair-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-disabled {
    background: #6c757d;
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1em;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 双选会详情页面样式 */
.fair-detail-header {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.fair-detail-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fair-detail-date .day {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}

.fair-detail-date .month-year {
    margin-top: 15px;
}

.fair-detail-date .month {
    font-size: 1.2em;
    font-weight: bold;
}

.fair-detail-date .year {
    font-size: 1em;
    opacity: 0.9;
}

.fair-detail-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fair-detail-content h1 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #333;
}

.fair-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    max-width: fit-content;
}

.fair-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .fair-detail-body {
        grid-template-columns: 1fr;
    }
    
    .fair-detail-header {
        flex-direction: column;
    }
    
    .fair-date {
        min-width: auto;
        padding: 15px;
    }
}

.fair-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.fair-basic-info, .fair-description, .fair-companies {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.fair-basic-info h2, .fair-description h2, .fair-companies h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item label {
    font-weight: bold;
    color: #555;
    min-width: 100px;
    flex-shrink: 0;
}

.info-item span {
    color: #666;
    flex: 1;
    word-break: break-word;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.action-panel {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.action-item {
    margin-bottom: 25px;
}

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

.action-item h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.action-desc {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0 0 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-info p {
    margin: 8px 0;
    color: #555;
}

.related-fairs h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.related-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .fair-item {
        flex-direction: column;
    }
    
    .fair-date {
        min-width: auto;
        padding: 15px;
    }
    
    .fair-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fair-actions {
        flex-direction: column;
    }
}