/* 标题 */
.page-header {
    margin-left: 150px;
}
/* 左侧时间轴 */
.vertical-timeline {
    width: 100px;
    background-color: var(--bg-primary);
    position: fixed;
    left: 0;
    top: 140px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 50;
    overflow: visible;
}
.timeline-ascii {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 60px;
    transform: translateY(-15px);
    pointer-events: none;
    z-index: 5;
}
.year-label {
    position: absolute;
    height: 30px;
    display: flex;
    align-items: center;
}
.year-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    width: 30px;
    text-align: right;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
}
.line-horizontal {
    width: 15px;
    height: 2px;
    background-color: var(--text-secondary);
    margin-right: 5px;
}
/* 时间轴竖线 */
.timeline-vertical-line {
    position: absolute;
    left: 66px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}
/* 时间点标记容器 */
.time-markers-container {
    position: absolute;
    left: 66px;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 10;
    pointer-events: none;
}
/* 时间点标记 */
.time-marker {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -4px);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}
.time-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}
.time-marker.has-work .time-dot {
    background-color: var(--accent-color);
    box-shadow: 0 0 4px rgba(255, 240, 0, 0.6);
}
.time-marker.active .time-dot {
    background-color: var(--accent-color);
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(255, 240, 0, 0.8);
}
/* 游标 */
.timeline-cursor {
    position: absolute;
    left: 50px;
    transform: translate(-50%, -12px);
    z-index: 20;
    cursor: grab;
    transition: top 0.3s ease;
    pointer-events: auto;
}
.timeline-cursor:active {
    cursor: grabbing;
}
.cursor-arrow {
    position: relative;
    width: 24px;
    height: 24px;
}
.arrow-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
}
.arrow-head {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--accent-color);
    transform: translateY(-50%);
}
.cursor-date {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(36, 36, 36, 0.95);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    text-align: center;
}
/* 右侧图片墙 */
.gallery-main {
    flex: 1;
    margin-left: 180px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
}
/* 图片容器 */
.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
/* 图片项 */
.image-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 240, 0, 0.15);
    border-color: var(--accent-color);
}
.image-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.pdf-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.pdf-fallback-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}
.pdf-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--text-muted);
}
.pdf-icon {
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.8;
}
.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.image-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.image-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}
.image-dates {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.image-dates i {
    color: var(--accent-color);
    font-size: 0.8rem;
}
/* PDF查看按钮 */
.pdf-view-btn {
    background-color: var(--accent-color);
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
}
.pdf-view-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 240, 0, 0.4);
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}
.empty-state p {
    color: var(--text-secondary);
}
/* PDF预览模态框 */
.pdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.pdf-modal-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.pdf-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
}
.pdf-modal-close {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.pdf-modal-close:hover {
    background: rgba(255, 240, 0, 0.2);
    color: var(--accent-color);
}
.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}
#pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border: none;
}
.pdf-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}
.pdf-info {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
}
.pdf-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pdf-info i {
    color: var(--accent-color);
}
/* 响应式设计 */
@media (max-width: 992px) {
    .page-header {
        margin-left: 0;
    }
    .vertical-timeline {
        display: none;
    }
    .gallery-main {
        margin-left: 30px;
    }
}
@media (max-width: 576px) {
    .images-container {
        grid-template-columns: 1fr;
    }
    .pdf-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}