﻿/* ===================================
   音频信息弹窗样式
=================================== */

/* 信息弹窗遮罩 */
.info-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.info-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗容器 */
.info-dialog {
    background: var(--color-bg-card, rgba(18, 18, 28, 0.98));
    border-radius: var(--radius-xl, 20px);
    padding: 1.5rem;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.info-dialog-overlay.active .info-dialog {
    transform: scale(1);
}

/* 弹窗头部 */
.info-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.info-dialog-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #f1f5f9);
    margin: 0;
}

.info-dialog-close {
    background: transparent;
    border: none;
    color: var(--color-text-soft, rgba(255, 255, 255, 0.6));
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.info-dialog-close:hover {
    color: var(--color-text, #f1f5f9);
}

/* 信息分组 */
.info-group {
    margin-bottom: 1.25rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent, #06b6d4);
    margin-bottom: 0.625rem;
    font-weight: 500;
}

/* 信息行 */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.375rem 0;
    gap: 1rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--color-text-soft, rgba(255, 255, 255, 0.6));
    flex-shrink: 0;
}

.info-value {
    font-size: 0.8rem;
    color: var(--color-text, #f1f5f9);
    text-align: right;
    word-break: break-word;
}

.info-value.highlight {
    color: var(--color-primary-soft, #a78bfa);
    font-weight: 500;
}

/* 加载状态 */
.info-loading {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-soft, rgba(255, 255, 255, 0.6));
}

.info-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* info 按钮样式已在 style.css 中统一定义 */

/* 滚动条 */
.info-dialog::-webkit-scrollbar {
    width: 4px;
}

.info-dialog::-webkit-scrollbar-track {
    background: transparent;
}

.info-dialog::-webkit-scrollbar-thumb {
    background: var(--color-primary-soft, #a78bfa);
    border-radius: 4px;
}

/* 响应式 */
@media (max-width: 480px) {
    .info-dialog {
        padding: 1.25rem;
        max-height: 85vh;
    }

    .info-row {
        flex-direction: column;
        gap: 0.125rem;
    }

    .info-value {
        text-align: left;
    }
}