/* 脑图页面样式 */

/* 日期选择控件 */
.news-date-selector {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s;
}

.news-date-selector:hover {
    background: #fafafa;
}

.news-date-selector img {
    width: 20px;
    height: 20px;
}

.news-date-selector .current-date {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

/* 脑图轮播区域 - Swiper */
.mindmap-carousel {
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
}

.mindmap-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.mindmap-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 0;
}

.mindmap-carousel .swiper-slide .mindmap-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.2s;
    user-select: none;
    -webkit-user-drag: none;
    margin: auto;
}

.mindmap-carousel .swiper-slide .mindmap-image:hover {
    opacity: 0.9;
}

/* 小圆点指示器 - Swiper Pagination */
.swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative !important;
    bottom: auto !important;
}

.swiper-pagination .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.swiper-pagination .dot.active {
    background: #1E4733;
    width: 10px;
    height: 10px;
}

.mindmap-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin: 24px 0 16px;
    padding: 0 20px;
    line-height: 1.4;
}

.mindmap-tips {
    padding: 0 20px;
    margin-bottom: 0;
}

.mindmap-tips .tip-line {
    font-size: 18px;
    color: #666;
    line-height: 2;
    text-align: left;
}

.mindmap-content {
    font-size: 18px;
    line-height: 2;
    color: #333333;
    padding: 0 20px;
    margin-bottom: 0px;
    white-space: pre-wrap;
}

/* 日期选择器弹窗 */
.date-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: flex-end;
}

.date-picker-modal {
    background: white;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.date-picker-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-picker-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.date-picker-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.date-picker-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.date-picker-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
    color: var(--text-color);
}

.date-picker-item:hover {
    background: #f5f5f5;
}

.date-picker-item.active {
    background: #e8f5ff;
    color: var(--primary-color);
    font-weight: bold;
}

/* 图片预览弹窗 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
    z-index: 301;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#imagePreviewImg {
    max-width: 100%;
    max-height: calc(100% - 80px);
    object-fit: contain;
}

.image-preview-download {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 301;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-preview-download:hover {
    background: #86c2a5;
    transform: translateX(-50%) scale(1.05);
}

.image-preview-download:active {
    transform: translateX(-50%) scale(0.98);
}

.image-preview-download:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .news-date-selector {
        padding: 10px 16px;
    }
    
    .news-date-selector img {
        width: 18px;
        height: 18px;
    }
    
    .news-date-selector .current-date {
        font-size: 16px;
    }
    
    .mindmap-title {
        font-size: 20px;
        padding: 0 16px;
    }
    
    .mindmap-content {
        font-size: 18px;
        padding: 0 16px;
    }
}


/* 今日提示样式 */
.today-tip {
    padding: 60px 20px;
    text-align: center;
}

.today-tip-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.today-tip-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.today-tip-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}
