/* 静态作品页面样式 */

/* 筛选区域 */
.filter-section {
    padding-top: 40px;
}

/* 系列网格 */
.series-grid-section {
    padding: 60px 40px;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 系列卡片 */
.series-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-gray);
}

.series-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/* 卡片 HUD 角标 - hover 时显示 */
.series-cover::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.series-card:hover .series-cover::before {
    opacity: 1;
}

.series-cover::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--magenta);
    border-left: 2px solid var(--magenta);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.series-card:hover .series-cover::after {
    opacity: 1;
}

.series-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, rgba(0, 255, 208, 0.1), rgba(255, 0, 160, 0.1));
}

.series-card:hover .series-cover img {
    transform: scale(1.05);
}

.series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.series-card:hover .series-overlay {
    opacity: 1;
}

.series-count {
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    color: var(--black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.series-info {
    padding: 15px;
}

.series-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--white);
}

.series-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.series-card:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 208, 0.15);
}

/* 外部链接卡片 */
.series-card.external-link {
    text-decoration: none;
    display: block;
}

.series-card.external-link .series-count {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

/* 系列展开面板 */
.series-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.series-panel.active {
    display: block;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.panel-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px 60px 40px;
    z-index: 2001;
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2002;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: var(--magenta);
    border-color: var(--magenta);
}

.panel-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.panel-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* 画廊网格 */
.panel-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item .gallery-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 图片说明标签 - 影视飓风风格 */
.gallery-label {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    background: var(--dark-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-label .label-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-label .label-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(0, 255, 208, 0.1);
    border-radius: 4px;
    color: var(--cyan);
    font-size: 11px;
}

/* 大图查看器 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--magenta);
    border-color: var(--magenta);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .panel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .series-grid-section {
        padding: 40px 20px;
    }

    .series-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .panel-content {
        padding: 60px 20px 40px;
    }

    .panel-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .panel-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* 自定义滚动条 - 系列面板 - 极简风格 */
.series-panel::-webkit-scrollbar {
    width: 3px;
}

.series-panel::-webkit-scrollbar-track {
    background: transparent;
}

.series-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.series-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Lightbox 动画 - 性能优化 */
.lightbox {
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    transform: scale(0.95);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.3s ease-out, opacity 0.2s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

/* 系列面板进入动画 - 性能优化 */
.series-panel {
    display: none;
}

.series-panel.active {
    display: block;
    animation: panelFadeIn 0.25s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.panel-content {
    animation: contentSlideIn 0.3s ease-out;
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}
