/* ==================== 共享网易云听书助手 UI 样式 ==================== */

/* 登录状态标签 */
.badge-status-gray {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}
.badge-status-green {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}
.badge-status-red {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}

/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: neteaseFadeIn 0.25s ease-out;
}

/* 弹窗主体卡片 (玻璃拟态) */
.modal-card {
    background: rgba(20, 21, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    color: #ffffff;
    animation: neteaseScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes neteaseScaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 弹窗头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.close-btn:hover {
    color: #ffffff;
}

/* 二维码过期遮罩层 */
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.9);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.4rem;
    font-size: 0.72rem;
    z-index: 10;
}

/* 音频单曲同步网易云盘按钮 */
.netease-cloud-btn {
    background: rgba(230, 0, 38, 0.05);
    border: 1px solid rgba(230, 0, 38, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #e60026;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.netease-cloud-btn:hover {
    background: #e60026;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 0, 38, 0.4);
    border-color: transparent;
}

.netease-cloud-btn.synced,
button.synced,
button.synced i,
button.synced svg {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    cursor: pointer;
    box-shadow: none !important;
}
button.synced:hover,
button.synced:hover i,
button.synced:hover svg {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
}

.netease-cloud-btn.syncing {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* 进度环状或旋转 */
.spin {
    animation: fa-spin 1s infinite linear;
}

/* 网易云助手卡片 */
.netease-assistant-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1rem;
}

.netease-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}

.netease-user-info.hidden {
    display: none !important;
}

/* 强制隐藏弹窗遮罩层 */
.modal-overlay.hidden,
.qr-overlay.hidden,
.hidden {
    display: none !important;
}

/* 步频端大横幅同步按钮定制状态 */
.netease-cloud-sync-banner-btn.syncing {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.netease-cloud-sync-banner-btn.synced {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
    cursor: default;
    pointer-events: none;
}

