/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Logo样式 */
.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    color: #e0e0e0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.logo span {
    color: #ff5252;
}

/* 导航栏样式 */
.main-nav {
    background-color: #1a237e;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #3949ab;
}

/* 首页样式 */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.slideshow {
    height: 100%;
    position: relative;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
}

.slideshow img.active {
    opacity: 1;
}

.slideshow-controls {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.slideshow-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.slideshow-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

.hero h1 {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 内容区域通用样式 */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a237e;
    font-size: 2rem;
}

/* 简介区域样式 */
.intro-text {
    flex: 1;
}

.highlight {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.number {
    font-size: 2rem;
    font-weight: bold;
    color: #1a237e;
}

.label {
    color: #666;
    margin-top: 0.5rem;
}

/* 新闻区域样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* 热门案件样式 */
.case-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-info {
    padding: 1.5rem;
}

.case-info h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.case-info p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #3949ab;
}

/* 角色预览样式 */
.character-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.character-slide {
    text-align: center;
    transition: transform 0.3s;
}

.character-slide:hover {
    transform: translateY(-5px);
}

.character-slide img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.character-slide h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.character-slide p {
    color: #666;
    font-size: 0.9rem;
}

.view-all {
    display: block;
    text-align: center;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
    margin-top: 2rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: #3949ab;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .character-slider {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .slideshow-controls {
        bottom: 8rem;
    }

    .hero h1 {
        font-size: 2rem;
        width: 90%;
        text-align: center;
    }
} 

/* 人物介绍页面样式 */
.character-filter {
    margin-bottom: 2rem;
    text-align: center;
}

#searchCharacter {
    width: 300px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

#searchCharacter:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.2);
    outline: none;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag i {
    font-size: 0.9rem;
}

.tag:hover,
.tag.active {
    background: #1a237e;
    color: white;
}

.character-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.character-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s;
}

.character-item:hover {
    transform: translateY(-5px);
}

.character-basic {
    width: 300px;
    padding: 1.5rem;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.character-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.character-avatar img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.character-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.character-tags .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    backdrop-filter: blur(4px);
}

.character-info {
    flex: 1;
}

.character-info h3 {
    color: #1a237e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #666;
}

.info-item i {
    width: 20px;
    color: #1a237e;
}

.character-detail {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.detail-section h4 {
    color: #1a237e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: #1a237e;
}

.detail-section p {
    color: #666;
    line-height: 1.6;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-section li i {
    color: #1a237e;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .character-item {
        flex-direction: column;
    }

    .character-basic {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .character-avatar img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #searchCharacter {
        width: 100%;
    }

    .filter-tags {
        flex-direction: column;
        align-items: stretch;
    }

    .tag {
        justify-content: center;
    }

    .character-avatar img {
        height: 250px;
    }

    .detail-section {
        padding: 1rem;
    }
}

/* 案件页面样式 */
.case-filter {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    color: #666;
    font-weight: bold;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a237e;
    color: white;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-number {
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-rating {
    color: #ffd700;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-tags .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(26, 35, 126, 0.9);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-content {
    display: flex;
    flex-direction: column;
}

.case-image {
    position: relative;
}

.case-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.case-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-title h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.expand-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.expand-btn.active {
    transform: rotate(180deg);
}

.case-details {
    padding: 1.5rem;
    display: none;
}

.case-details.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.detail-section h4 {
    color: #1a237e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.detail-section h4 i {
    color: #1a237e;
}

.detail-section p {
    color: #666;
    line-height: 1.6;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-section li i {
    color: #1a237e;
    width: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .case-filter {
        flex-direction: column;
        padding: 1rem;
    }

    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .case-header {
        flex-direction: column;
        gap: 1rem;
    }

    .case-tags {
        justify-content: center;
    }

    .case-image img {
        height: 200px;
    }

    .case-title h3 {
        font-size: 1.2rem;
    }

    .case-details.active {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-details.active {
    animation: slideDown 0.3s ease-out;
}

/* 图集页面样式 */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    color: #1a237e;
    margin: 0;
}

.gallery-stats {
    color: #666;
}

.gallery-stats strong {
    color: #1a237e;
}

.gallery-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    color: #666;
    font-weight: bold;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #1a237e;
    color: white;
}

.filter-btn .count {
    font-size: 0.9em;
    opacity: 0.8;
}

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #666;
}

.view-mode {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mode-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mode-btn:hover {
    background: #e0e0e0;
}

.mode-btn.active {
    background: #1a237e;
    color: white;
}

.gallery-container {
    position: relative;
    min-height: 400px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.loading-overlay i {
    color: #1a237e;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-grid.masonry {
    column-count: 3;
    column-gap: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.item-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.item-wrapper:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    padding-top: 75%;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a237e;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.item-wrapper:hover .item-overlay {
    transform: translateY(0);
}

.overlay-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.overlay-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-tags .tag {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a237e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.item-wrapper:hover .zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.zoom-btn:hover {
    background: white;
    transform: scale(1.1) !important;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.gallery-pagination button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.gallery-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gallery-pagination button:not(:disabled):hover {
    background: #e0e0e0;
}

.page-info {
    color: #666;
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    color: white;
}

.lightbox-controls {
    display: flex;
    gap: 1rem;
}

.lightbox-controls button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.lightbox-content .prev,
.lightbox-content .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-content .prev {
    left: 2rem;
}

.lightbox-content .next {
    right: 2rem;
}

.lightbox-content .prev:hover,
.lightbox-content .next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content .image-container {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-footer {
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.image-info {
    flex: 1;
}

.image-info .description {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.image-counter {
    padding-left: 2rem;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery-grid.masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 1rem;
    }

    .gallery-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .gallery-controls {
        padding: 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .view-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-grid.masonry {
        column-count: 1;
    }

    .lightbox-content .prev {
        left: 1rem;
    }

    .lightbox-content .next {
        right: 1rem;
    }

    .lightbox-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .image-counter {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .sort-group,
    .view-mode {
        width: 100%;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .case-filter,
    .gallery-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .network-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .lightbox .prev,
    .lightbox .next {
        display: none;
    }
} 