/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* 颜色变量 */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --accent-color: #EC4899;
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --gray-50: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
}

/* 通用工具类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-28 {
    padding-top: 7rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-gray-400 {
    color: #94a3b8;
}

.text-gray-500 {
    color: #64748b;
}

.text-gray-600 {
    color: #475569;
}

.text-gray-700 {
    color: #334155;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.md\:flex-row {
    flex-direction: row;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f8fafc;
}

.bg-gray-200 {
    background-color: #e2e8f0;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.overflow-hidden {
    overflow: hidden;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* 时间线选择器 */
.timeline-selector {
    display: flex;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.timeline-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #e2e8f0;
    color: #334155;
    border: none;
    font-weight: 500;
}

.timeline-tab:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.timeline-tab:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.timeline-tab:hover {
    background-color: #cbd5e1;
}

.timeline-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 时间线样式 */
.timeline-section {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-container {
    overflow: hidden;

    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.timeline-track {
    display: flex;
    transition: transform 0.5s ease-out;
    padding: 1rem;
    background-color: white;
    gap: 0.5em;
    justify-content: space-between;
}

.timeline-item {
    min-width: 280px;

    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .timeline-item {
        min-width: 350px;
    }
}

/*.timeline-item:hover {*/
/*    transform: scale(1.05);*/
/*}*/

.timeline-item.opacity-100 {
    opacity: 1;
}

.timeline-item.scale-105 {


    box-shadow: 0 0 3px 1px #16b777;
}

.timeline-item-content {
    background-color: white;

    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-item-image {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.timeline-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-item-image img:hover {
    transform: scale(1.1);
}

.timeline-item-date {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #004883;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

.timeline-item-body {
    padding: 1rem;
    flex-grow: 1;
}

.timeline-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-item-description {
    color: #475569;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.button-group {
    display: flex;
    background-color: #e2e8f0;
    padding: 1em;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.btns {
    padding: 0.5rem 1rem;
    background-color: #2f363c;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-weight: 500;
}

.btns:hover {
    background-color: var(--backcolor);
}

.event-counter {
    background-color: #e2e8f0;
    padding: 1em;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #334155;
}

/* 事件详情 */
.event-detail {
    background-color: white;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: opacity 0.3s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.event-image-containers{
    display: grid;
    justify-items: center;
    align-items: center;
}
.event-image-container {
    position: relative;
    background-color: #e2e8f0;
    overflow: hidden;
    display: grid;
    justify-items: center;
}

.event-image {
   cursor: pointer;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.event-image:hover {
    transform: scale(1.05);
}

.event-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
}

.event-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.event-content {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .event-content {
        padding: 2rem;
    }
}

.event-date {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #64748b;
}

.event-date i {
    margin-right: 0.5rem;
}

.event-description {
    color: #1e293b;
    line-height: 1.6;
}

/* 图片画廊 */
.event-gallery {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .event-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.gallery-item {
    position: relative;

    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 1px 0px 6px 3px #afc0dbb5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    background-color: rgba(0,0,0,0.2);
}

.gallery-icon {
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-text {
    margin-bottom: 1rem;
    color: #94a3b8;
}

@media (min-width: 768px) {
    .footer-text {
        margin-bottom: 0;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}