/* =============== 媒体面板模块 =============== */
.media-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.media-panel.active {
    opacity: 1;
    visibility: visible;
}

.media-close {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1010;
}

.media-close:hover {
    color: #4facfe;
    transform: rotate(90deg);
    background: rgba(79, 172, 254, 0.2);
}

.media-title {
    color: #fff;
    font-size: 2.5rem;
    margin: 30px 0 20px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.8);
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px 80px;
    margin-top: 20px;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    text-align: center;
}

.media-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
}

.media-item .item-title {
    padding: 12px;
    color: white;
    font-size: 1rem;
}

.media-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.7);
}