/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --e-global-color-40c2dc5: #0c1475;
    --e-global-color-a416dcc: #372cad;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #d9d9d9;
}

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

/* Header Styles */
.main-header {
    background: linear-gradient(180deg, var(--e-global-color-40c2dc5) 0%, var(--e-global-color-a416dcc) 72%);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo {
    width: 200px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.main-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
}

/* Categories Section */
.categories-section {
    padding: 30px 0;
    background: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-md);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: #6b7280;
}

/* Featured Section */
.featured-section {
    padding: 60px 0;
}

.exhibit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.exhibit-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.exhibit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.exhibit-card a {
    text-decoration: none;
    color: inherit;
}

.exhibit-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
}

.exhibit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.exhibit-card:hover .exhibit-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: #9ca3af;
}

.exhibit-info {
    padding: 20px;
}

.exhibit-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.exhibit-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.exhibit-subtitle {
    color: #6b7280;
    font-size: 14px;
}

/* Category Page Layouts */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.exhibits-section {
    padding: 20px 0;
    min-height: 400px;
}

/* Student Layout */
.student-exhibit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.student-exhibit-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s;
}

.student-exhibit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.student-exhibit-card a {
    text-decoration: none;
    color: inherit;
}

.student-exhibit-card .exhibit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.student-exhibit-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.student-exhibit-card .subtitle {
    opacity: 0.9;
    font-size: 14px;
}

.student-exhibit-card .exhibit-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9fafb;
}

.student-exhibit-card .exhibit-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.student-exhibit-card .exhibit-content {
    padding: 20px;
}

/* Zhongjian Layout */
.zhongjian-exhibit-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.zhongjian-exhibit-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s;
}

.zhongjian-exhibit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.zhongjian-exhibit-item a {
    text-decoration: none;
    color: inherit;
}

.zhongjian-exhibit-item .exhibit-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zhongjian-exhibit-item {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s;
}

.zhongjian-exhibit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.zhongjian-exhibit-item a {
    text-decoration: none;
    color: inherit;
}

.exhibit-row {
    display: flex;
    gap: 20px;
}

.exhibit-thumbnail {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    overflow: hidden;
    flex-shrink: 0;
}

.exhibit-thumbnail img {
    width: auto;
    height: auto;
    max-width: 100%;
    /* max-height: 100%; */
    object-fit: contain;
}

.exhibit-details {
    padding: 20px;
    flex: 1;
}

.exhibit-details h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.exhibit-details .subtitle {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.exhibit-details .description {
    color: #6b7280;
    margin-bottom: 15px;
}

.view-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* MIC Layout */
.mic-exhibit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.mic-exhibit-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 250px;
}

.mic-exhibit-tile a {
    text-decoration: none;
    color: inherit;
}

.tile-inner {
    width: 100%;
    height: 100%;
}

.tile-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.tile-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Exhibit Detail Page */
.exhibit-detail {
    padding: 10px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #6b7280;
}

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

.exhibit-article {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.exhibit-header {
    margin-bottom: 30px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.exhibit-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.exhibit-video,
.exhibit-featured-image {
    margin-bottom: 30px;
}

.exhibit-video-section {
    margin-bottom: 40px;
}

.video-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.exhibit-featured-image img {
    width: 100%;
    border-radius: 8px;
}

/* Desktop specific styles for featured image */
@media (min-width: 768px) {
    .exhibit-featured-image img {
        max-width: 500px;
        display: block;
        margin: 0 auto;
    }
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.5);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ccc;
    text-decoration: none;
}

/* Share Bar Styles */
.share-bar {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}


.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-copy {
    background: #6b7280;
}

.share-copy:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

.share-wechat {
    background: #07c160;
}

.share-wechat:hover {
    background: #06a652;
    transform: translateY(-2px);
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* WeChat Modal Styles */
.wechat-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 300px;
}

.wechat-modal-content h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.wechat-modal-content p {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

.wechat-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.wechat-close:hover {
    color: #000;
}

#wechatQRCode {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 8px;
    }
    
    .share-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .share-btn span {
        display: none; /* Hide text labels on mobile */
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .share-bar {
        padding: 15px;
    }
    
    .share-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

.content-section {
    margin-bottom: 40px;
}

/* Student Group Filters */
.student-group-filters {
    margin: 20px 0 20px 0;
    text-align: center;
}

.filter-tabs {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    background: white;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.filter-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 20px 0;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.page-btn.prev {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-btn.next {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.page-number:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.page-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transform: scale(1.15);
}

.page-number.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Mobile responsive for filters and pagination */
@media (max-width: 768px) {
    .student-group-filters {
        margin: 10px 0 20px 0;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 25px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
        margin: 40px 10px 20px 10px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .page-numbers {
        gap: 6px;
    }
    
    .page-number {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .page-number.active {
        transform: scale(1.1);
    }
    
    .page-number.active::after {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
}

.content-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}

.other-fields {
    display: grid;
    gap: 15px;
}

.field-item,
.info-item {
    padding: 15px;
    background: var(--light-color);
    border-radius: 6px;
    margin-bottom: 10px;
}

.student-info {
    display: grid;
    gap: 10px;
}

.exhibit-actions {
    margin-top: 40px;
    text-align: center;
}

.related-exhibits {
    margin-top: 60px;
}

.related-exhibits h2 {
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

/* No Data */
.no-exhibits {
    text-align: center;
    padding: 60px 20px;
}

.no-exhibits p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .exhibit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .student-exhibit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .zhongjian-exhibit-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .exhibit-row {
        flex-direction: column;
    }
    
    .exhibit-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .mic-exhibit-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .exhibit-title {
        font-size: 28px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .student-exhibit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zhongjian-exhibit-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mic-exhibit-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .exhibit-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .container {
        padding: 0 15px;
    }
    
    .main-header h1 {
        font-size: 20px;
    }
    
    .main-nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .exhibit-article {
        padding: 20px;
    }
}