/**
 * exhibition.css - 国展信息页面样式
 */

/* ==========================================
   🎨 国展信息页面样式
   ========================================== */
#view-exhibition {
    padding: 0;
    overflow-y: auto;
    background: var(--bg-color);
}

.exhibition-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.exhibition-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 35px 25px;
    background: linear-gradient(145deg, #1a2e28 0%, #0d1117 100%);
    border-radius: 16px;
    border: 1px solid rgba(16, 163, 127, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exhibition-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.exhibition-subtitle {
    color: #888;
    font-size: 1rem;
    margin: 0 0 15px 0;
}

.exhibition-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.exhibition-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}

/* 🔍 搜索栏 */
.exhibition-search-bar {
    max-width: 500px;
    margin: 0 auto 25px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #2b2c2f;
    border: 1px solid #444;
    border-radius: 25px;
    padding: 0 15px;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.search-icon {
    font-size: 1rem;
    margin-right: 10px;
    opacity: 0.6;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ececf1;
    font-size: 0.95rem;
    padding: 12px 0;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #666;
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-result-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #888;
}

.search-result-hint strong {
    color: var(--accent-color);
}

/* 搜索高亮 */
.search-highlight {
    background: rgba(16, 163, 127, 0.3);
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 分类 Tab */
.exhibition-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ex-tab {
    padding: 12px 28px;
    border: 1px solid #444;
    background: #2b2c2f;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #888;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.ex-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ex-tab.active {
    background: linear-gradient(135deg, #10a37f, #0d8a6a);
    color: #fff;
    border-color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 163, 127, 0.4);
}

/* 内容区 */
.exhibition-content {
    min-height: 300px;
}

.exhibition-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: #888;
    gap: 15px;
}

.exhibition-empty {
    text-align: center;
    padding: 80px 0;
    color: #666;
    font-size: 1rem;
}

/* 列表容器 */
.exhibition-list {
    display: block;
}

/* 卡片样式 */
.exhibition-card {
    background: #2b2c2f;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #3a3b3e;
    overflow: hidden;
}

.exhibition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 14px 14px 0 0;
}

.exhibition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: #555;
}

/* 征稿卡片 - 暗红色主题 */
.exhibition-card.call-for-entry::before {
    background: linear-gradient(90deg, #a3423a, #8b3832);
}
.exhibition-card.call-for-entry {
    border-left: 3px solid #a3423a;
}

/* 初评卡片 - 暗琥珀色主题 */
.exhibition-card.preliminary::before {
    background: linear-gradient(90deg, #b8912a, #9a7a24);
}
.exhibition-card.preliminary {
    border-left: 3px solid #b8912a;
}

/* 复评卡片 - 暗绿色主题 */
.exhibition-card.review::before {
    background: linear-gradient(90deg, #3d8b4f, #327a42);
}
.exhibition-card.review {
    border-left: 3px solid #3d8b4f;
}

/* 徽章 */
.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.call-for-entry .card-badge {
    background: linear-gradient(135deg, #a3423a, #8b3832);
    color: #f0d0ce;
    box-shadow: 0 2px 8px rgba(163, 66, 58, 0.3);
}

.preliminary .card-badge {
    background: linear-gradient(135deg, #b8912a, #9a7a24);
    color: #f5ecd3;
    box-shadow: 0 2px 8px rgba(184, 145, 42, 0.3);
}

.review .card-badge {
    background: linear-gradient(135deg, #3d8b4f, #327a42);
    color: #d0f0d8;
    box-shadow: 0 2px 8px rgba(61, 139, 79, 0.3);
}

/* 卡片标题 */
.card-title {
    font-size: 1rem;
    color: #ececf1;
    margin: 0 0 14px 0;
    padding-right: 70px;
    line-height: 1.5;
    font-weight: 600;
}

/* 卡片信息 */
.card-info {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 16px;
}

.card-info .deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-info .deadline.urgent {
    color: #c87a74;
    font-weight: 700;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 查看详情链接 */
.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.card-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* 征稿分类区块 */
.exhibition-section {
    margin-bottom: 35px;
}

.exhibition-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    color: #ececf1;
    margin: 0 0 18px 0;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
}

/* 延期分类样式 - 暗紫色 */
.exhibition-section.delayed .section-title {
    background: linear-gradient(135deg, rgba(124, 58, 180, 0.2), rgba(124, 58, 180, 0.1));
    border-left: 3px solid #7c3ab4;
    color: #a878c8;
}

/* 即将截稿分类样式 - 暗红色 */
.exhibition-section.urgent-section .section-title {
    background: linear-gradient(135deg, rgba(163, 66, 58, 0.2), rgba(163, 66, 58, 0.1));
    border-left: 3px solid #a3423a;
    color: #c87a74;
}

/* 其他征稿分类样式 - 暗绿色 */
.exhibition-section.normal .section-title {
    background: linear-gradient(135deg, rgba(61, 139, 79, 0.2), rgba(61, 139, 79, 0.1));
    border-left: 3px solid #3d8b4f;
    color: #5aa86c;
}

/* 卡片网格 */
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 延期卡片特殊样式 - 暗紫色 */
.exhibition-card.delayed-card {
    border-left-color: #7c3ab4;
}

.exhibition-card.delayed-card::before {
    background: linear-gradient(90deg, #7c3ab4, #6a2f9a);
}

.exhibition-card.delayed-card .card-badge {
    background: linear-gradient(135deg, #7c3ab4, #6a2f9a);
    color: #e0d0f0;
    box-shadow: 0 2px 8px rgba(124, 58, 180, 0.3);
}

/* 紧急卡片特殊样式（7天内）- 暗红色 */
.exhibition-card.urgent-card {
    border-color: rgba(163, 66, 58, 0.5);
    box-shadow: 0 4px 15px rgba(163, 66, 58, 0.15);
}

.exhibition-card.urgent-card:hover {
    box-shadow: 0 12px 30px rgba(163, 66, 58, 0.25);
}

/* 响应式 */
@media (max-width: 768px) {
    .exhibition-container {
        padding: 15px;
    }
    
    .exhibition-header {
        padding: 25px 15px;
    }
    
    .exhibition-header h2 {
        font-size: 1.5rem;
    }
    
    .exhibition-tabs {
        gap: 8px;
    }
    
    .ex-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .exhibition-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1rem;
    }
}
