/* css/module4_showcase.css */

.showcase-section {
    padding: 120px 0;
    background-color: #030508;
    position: relative;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 (保持全站统一) */
.section-header { text-align: center; margin-bottom: 70px; }
.cyan-heading { font-family: 'Courier New', Courier, monospace; color: #00f3ff; font-size: 1rem; letter-spacing: 4px; margin-bottom: 10px; text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.main-title { font-size: 2.5rem; color: #ffffff; letter-spacing: 2px; margin-bottom: 20px; }
.heading-line { width: 60px; height: 3px; background: #00f3ff; margin: 0 auto; box-shadow: 0 0 15px #00f3ff; }

/* 画廊网格 */
.gallery-grid {
    display: grid;
    /* 采用响应式网格：大屏两列/三列，小屏单列 */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 画廊单体作品卡片 */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    background: #0a0f1e;
    border: 1px solid rgba(0, 243, 255, 0.2);
    /* 让整个卡片看起来像一块显示屏 */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: crosshair;
}

/* 图片预留位与占位效果 */
.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 默认状态下加一层暗色滤镜，显得比较神秘 */
    filter: grayscale(80%) brightness(0.6);
}

.placeholder-text {
    font-family: 'Courier New', monospace;
    color: #444;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* 悬停时图片变亮并轻微放大 */
.gallery-item:hover .img-placeholder {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* 覆盖层（默认在底部隐藏，悬停时浮现） */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3, 5, 8, 0.95) 0%, rgba(3, 5, 8, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 作品信息排版 */
.item-info h4 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.item-info p {
    color: #b0b8c1;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* 技术栈标签 */
.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-stack .tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 探索更多按钮 - 赛博朋克风 */
.more-btn-container { text-align: center; margin-top: 40px; }
.cyber-btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #030508;
    background-color: #00f3ff;
    border: 1px solid #00f3ff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cyber-btn:hover {
    background-color: transparent;
    color: #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.cyber-btn .arrow { transition: transform 0.3s ease; display: inline-block; }
.cyber-btn:hover .arrow { transform: translateX(5px); }

/* 滚动浮现动画 */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-item.active { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 280px; }
    .item-info h4 { font-size: 1.3rem; }
}