/* 
 * 账户列表专用样式
 */

/* 账户列表及样式定制 */
.account-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .account-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

.account-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* 改为垂直排列，按钮放下面 */
    align-items: flex-start;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.account-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.account-info {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.account-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.account-details {
    flex: 1;
    min-width: 0;
}

.account-details h4 {
    font-size: 15px;
    color: var(--title);
    font-weight: 600;
    margin-bottom: 4px;
    /* 处理超长邮箱截断 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-details p {
    font-size: 12px;
    color: var(--subtitle);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    flex-shrink: 0;
}

.status-indicator.offline {
    background-color: var(--danger);
}

.account-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    width: 100%;
    justify-content: flex-end;
}

.account-item:hover .account-actions {
    opacity: 1;
}