
:root {
    --primary-color: #1a365d;      
    --primary-light: #2d4a8a;      
    --primary-dark: #0d1b36;       
    --secondary-color: #b8860b;   
    --accent-color: #8b7355;      
    --light-color: #f8f9fa;       
    --dark-color: #212529;         
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-bg: linear-gradient(135deg, #1a365d 0%, #0d1b36 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Georgia', serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: #fff;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.relative { position: relative; }

.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 54, 93, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gray-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--gray-light);
}

.toolbar-items {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.toolbar-item {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    color: var(--gray);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    gap: 0.3rem;
}

.toolbar-item:hover,
.toolbar-item.active {
    color: var(--primary-color);
}

.toolbar-icon {
    font-size: 1.5rem;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.mobile-nav {
    list-style: none;
    margin-top: 2rem;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid var(--gray-light);
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

.timeline-section {
    padding: 3rem 0;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-light);
    transform: translateX(-50%);
}

.timeline-container {
    position: relative;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2%;
}

.timeline-date {
    position: absolute;
    top: 3px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(77% + 20px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(77% + 20px);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.grid-section {
    padding: 3rem 0;
    background: var(--light-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.grid-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.grid-item:hover .grid-image img {
    transform: scale(1.05);
}

.grid-content {
    padding: 1.5rem;
}

.grid-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.grid-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.grid-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.categories-section {
    padding: 3rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.current-exhibitions {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.exhibition-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.exhibition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.recent-article {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.recent-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-bottom {
    /* padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); */
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* margin-bottom: 1.5rem; */
    flex-wrap: wrap;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.breadcrumb {
    padding: 1.5rem 0;
    background-color: var(--light-color);
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .active {
    color: var(--dark-color);
    font-weight: 600;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--gray);
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 2rem 0;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border-top: 3px solid var(--primary-color);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-light);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    padding: 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.category-count {
    background-color: var(--light-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--gray);
}

.sidebar-articles {
    display: grid;
    gap: 1.2rem;
}

.sidebar-article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.2rem;
    align-items: start;
}

.sidebar-article img {
    aspect-ratio: 4/3;
    border-radius: 4px;
    object-fit: cover;
}

.sidebar-article-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.sidebar-article-content time {
    font-size: 0.8rem;
    color: var(--gray);
}

.pagination {
    margin-top: 3rem;
}

.pagination .pagination-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-item {
    list-style: none;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover,
.page-link.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 0 1.5rem;
    font-size: 0.9rem;
}

.comment-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-weight: 300;
}

.page-body {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    line-height: 1.8;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.article-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 300;
}

.article-content h3 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.8rem;
    font-weight: 400;
}

.article-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin: 2rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    max-width: 45%;
}

.nav-previous:hover,
.nav-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 300;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .timeline-section::before {
        left: 39px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-item::before {
        left: 24px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .timeline-date {
        position: static;
        margin-bottom: 0.5rem;
        text-align: left !important;
    }

    .logo {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .toolbar-icon {
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-toolbar {
        display: block;
    }

    .toolbar-item {
        display: block;
        padding: 0;
    }
    
    .header-container {
        padding: 0.6rem 0;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .page-body {
        padding: 2rem;
    }
    
    .exhibition-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        margin-bottom: 0;
        padding: .5rem 0;
    }

    .timeline-section {
        padding-top: 1rem;
    }

    .grid-section {
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}