/* =========================================================
   05-media · 相册·灯箱·表单·提示
   承载范围：原 style.css 第 1679-1978 行
   本节包含：
     - 图库
     - 灯箱
     - 联系表单
     - Toast 提示
     - 文章页轻提示
     - 页脚
     - 兴趣爱好徽章
   ========================================================= */

/* ============= 图库 ============= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-light);
    background: var(--scrim-03);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--pink-400);
    box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 34px;
    color: var(--glass-90);
    text-shadow: 0 2px 8px var(--scrim-30);
    pointer-events: none;
}

.gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--scrim-50);
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
}

.gallery-item:hover .gallery-delete {
    opacity: 1;
}

/* ============= 灯箱 ============= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--scrim-92);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.music-volume::-moz-range-track {
    height: 4px;
    background: var(--accent-soft);
    border-radius: 2px;
}

.music-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: var(--pink-500);
    cursor: pointer;
}

.lightbox.show {
    display: flex;
}

.lightbox img,
.lightbox video {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 0 60px var(--accent-soft);
    cursor: default;
}

.lightbox video {
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 38px;
    color: var(--text-on-accent);
    cursor: pointer;
    z-index: 101;
    transition: 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.15);
    color: var(--pink-300);
}

/* ============= 联系表单 ============= */
.contact-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 220px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.contact-form {
    flex: 2;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    background: var(--surface-input);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--surface-input);
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============= Toast ============= */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 200;
    box-shadow: 0 8px 30px var(--accent-shadow-strong);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============= post page light toast ============= */
.post-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    box-shadow: 0 8px 30px var(--accent-shadow-strong);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.post-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}





/* ============= 页脚 ============= */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 24px 20px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    position: relative;
}

footer::before {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink-400), transparent);
    margin: 0 auto 16px;
    opacity: 0.5;
}

/* ============= 兴趣爱好徽章 ============= */
.hobby-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--surface-highlight), var(--surface-highlight-strong));
    border: 1px solid var(--accent-border);
    color: var(--pink-700);
    font-weight: 500;
    transition: all 0.25s;
    cursor: default;
    letter-spacing: 1px;
}

.hobby-badge:hover {
    background: linear-gradient(135deg, var(--pink-300), var(--pink-400));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
