* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    min-height: 200%;
}

body {
    display: block;
    padding: 20px;
    /* 可在此处修改背景图片URL */
    --bj-url: url('../img/main_img/小混沌.png');
    background-image: var(--bj-url);
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    font-family: 'ZCOOL KuaiLe', cursive;
    min-height: 200vh;
}

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

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    z-index: 100;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-icon {
    font-size: 18px;
}

.page-title {
    font-size: 42px;
    color: #73b9ef;
    text-shadow: 2px 2px 0px #fff;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    color: #4a4a4a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-tag {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #4a4a4a;
    font-size: 14px;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    transition: 0.3s;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: rgba(115, 185, 239, 0.5);
    color: #2a5a8a;
    border-color: rgba(115, 185, 239, 0.6);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(115, 185, 239, 0.8), rgba(255, 183, 197, 0.8));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: rgba(115, 185, 239, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(115, 185, 239, 0.5);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    transition: 0.3s ease;
}

.timeline-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(115, 185, 239, 0.2);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-date {
    font-size: 12px;
    color: #fff;
    background: rgba(115, 185, 239, 0.8);
    padding: 4px 12px;
    border-radius: 15px;
}

.timeline-tag {
    font-size: 11px;
    color: #4a4a4a;
    background: rgba(255, 183, 197, 0.6);
    padding: 3px 10px;
    border-radius: 10px;
}

.timeline-title {
    font-size: 20px;
    color: #4a4a4a;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.timeline-content ul {
    margin-left: 20px;
    margin-top: 8px;
}

.timeline-content li {
    margin-bottom: 5px;
}

.timeline-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-action {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'ZCOOL KuaiLe', cursive;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.timeline-action.share-btn {
    background: rgba(255, 183, 197, 0.7);
    color: white;
}

.timeline-action.share-btn:hover {
    background: #ff9eb5;
}

.timeline-action.version-btn {
    background: rgba(144, 238, 144, 0.7);
    color: #2d5a2d;
}

.timeline-action.version-btn:hover {
    background: #7ddc7d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 25px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 10001;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .exhibition-container {
        padding: 15px;
    }

    .page-title {
        font-size: 32px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-dot {
        left: -23px;
        width: 14px;
        height: 14px;
    }

    .timeline-card {
        padding: 15px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .filter-tag {
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
